mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-06 22:54:50 +01:00
improve doc about activeTextEditor being undefined from time to time, #5022
This commit is contained in:
Vendored
+3
-2
@@ -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<TextEditor>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user