Skip to content

Commit 8e9d5be

Browse files
committed
some jsdoc for #1800
1 parent 948c258 commit 8e9d5be

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/vs/vscode.proposed.d.ts

+8
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,15 @@ declare module 'vscode' {
1616
export namespace languages {
1717

1818
/**
19+
* Set (and change) the [language](#TextDocument.languageId) that is associated
20+
* with the given document.
1921
*
22+
* *Note* that calling this function will trigger the [`onDidCloseTextDocument`](#languages.onDidCloseTextDocument) event
23+
* followed by the [`onDidOpenTextDocument`](#languages.onDidOpenTextDocument) event.
24+
*
25+
* @param document The document which language is to be changed
26+
* @param languageId The new language identifier.
27+
* @returns A thenable that resolves with the updated document.
2028
*/
2129
export function setTextDocumentLanguage(document: TextDocument, languageId: string): Thenable<TextDocument>;
2230
}

0 commit comments

Comments
 (0)