From 137384035d2ccc0beee2abe5f9d6b35567cd260e Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Wed, 6 Apr 2016 15:18:34 +0200 Subject: [PATCH] improve doc about activeTextEditor being undefined from time to time, #5022 --- src/vs/vscode.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/vs/vscode.d.ts b/src/vs/vscode.d.ts index c8fbd682abf..22624af0d6b 100644 --- a/src/vs/vscode.d.ts +++ b/src/vs/vscode.d.ts @@ -2901,7 +2901,7 @@ declare namespace vscode { export namespace window { /** - * The currently active editor or undefined. The active editor is the one + * The currently active editor or `undefined`. The active editor is the one * that currently has focus or, when none has focus, the one that has changed * input most recently. */ @@ -2914,7 +2914,8 @@ declare namespace vscode { /** * An [event](#Event) which fires when the [active editor](#window.activeTextEditor) - * has changed. + * has changed. *Note* that the event also fires when the activ editor changes + * to `undefined`. */ export const onDidChangeActiveTextEditor: Event; -- GitLab