diff options
| author | Christoph Schlosser <christophschlosser@users.noreply.github.com> | 2018-07-06 19:52:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-06 19:52:24 +0200 |
| commit | 534158f43af43dd2580172d52e38a543a2b2fedf (patch) | |
| tree | d683d45085230737e596de4d8227230ae68224d0 /src | |
| parent | d438622d71b94789b7ccc672cdd9d81f77570f87 (diff) | |
| parent | e281cee46f5efc972d1ae4c36edcf1eb31763280 (diff) | |
| download | doxdocgen-534158f43af43dd2580172d52e38a543a2b2fedf.tar.gz | |
Merge branch 'master' into memberpointer
Diffstat (limited to 'src')
| -rw-r--r-- | src/CodeParserController.ts | 3 | ||||
| -rw-r--r-- | src/extension.ts | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/CodeParserController.ts b/src/CodeParserController.ts index 04928e8..8be7034 100644 --- a/src/CodeParserController.ts +++ b/src/CodeParserController.ts @@ -57,7 +57,8 @@ export default class CodeParserController { ***************************************************************************/ private check(activeEditor: TextEditor, event: TextDocumentContentChangeEvent): boolean { - if (activeEditor == null || event.text == null) { + if (activeEditor === undefined || activeEditor == null || + event === undefined || event.text == null) { return false; } const activeSelection: Position = activeEditor.selection.active; diff --git a/src/extension.ts b/src/extension.ts index 73be843..5ac1b01 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -12,8 +12,8 @@ enum ConfigChangedNotificationOptions { } enum Version { - CURRENT = "0.3.1", - PREVIOUS = "0.3.0", + CURRENT = "0.3.2", + PREVIOUS = "0.3.1", KEY = "doxdocgen_version", } @@ -31,6 +31,7 @@ export function activate(context: vscode.ExtensionContext) { context.globalState.update(Version.KEY, Version.CURRENT); } else if (version !== Version.CURRENT) { change = true; + context.globalState.update(Version.KEY, Version.CURRENT); } let notificationHideThenable: Thenable<string>; |