From fbda6e3b2b54da6d32a93eda7794d5554f1eacf2 Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Mon, 25 Jun 2018 11:21:41 +0200 Subject: Check if editor and event are undefined --- src/CodeParserController.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3 From e281cee46f5efc972d1ae4c36edcf1eb31763280 Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Tue, 26 Jun 2018 18:05:29 +0200 Subject: Release 0.3.2 --- src/extension.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3