summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristoph Schlosser <christophschlosser@users.noreply.github.com>2018-07-06 19:52:24 +0200
committerGitHub <noreply@github.com>2018-07-06 19:52:24 +0200
commit534158f43af43dd2580172d52e38a543a2b2fedf (patch)
treed683d45085230737e596de4d8227230ae68224d0 /src
parentd438622d71b94789b7ccc672cdd9d81f77570f87 (diff)
parente281cee46f5efc972d1ae4c36edcf1eb31763280 (diff)
downloaddoxdocgen-534158f43af43dd2580172d52e38a543a2b2fedf.tar.gz
Merge branch 'master' into memberpointer
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>;