From 8dc209901640fd80835dd5329ec31c86155c3c78 Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Thu, 20 Sep 2018 17:27:44 +0200 Subject: [PATCH] more jsdoc related to #1800 --- src/vs/vscode.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vs/vscode.d.ts b/src/vs/vscode.d.ts index b8c43215ddd..891ffe7d8d5 100644 --- a/src/vs/vscode.d.ts +++ b/src/vs/vscode.d.ts @@ -7333,7 +7333,8 @@ declare module 'vscode' { export function registerTextDocumentContentProvider(scheme: string, provider: TextDocumentContentProvider): Disposable; /** - * An event that is emitted when a [text document](#TextDocument) is opened. + * An event that is emitted when a [text document](#TextDocument) is opened or when the language id + * of a text document [has been changed](#languages.setTextDocumentLanguage). * * To add an event listener when a visible text document is opened, use the [TextEditor](#TextEditor) events in the * [window](#window) namespace. Note that: @@ -7346,7 +7347,8 @@ declare module 'vscode' { export const onDidOpenTextDocument: Event; /** - * An event that is emitted when a [text document](#TextDocument) is disposed. + * An event that is emitted when a [text document](#TextDocument) is disposed or when the language id + * of a text document [has been changed](#languages.setTextDocumentLanguage). * * To add an event listener when a visible text document is closed, use the [TextEditor](#TextEditor) events in the * [window](#window) namespace. Note that this event is not emitted when a [TextEditor](#TextEditor) is closed -- GitLab