summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CodeParserController.ts3
-rw-r--r--src/extension.ts5
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>;