Commit 38edd23 1 parent e141a23 commit 38edd23 Copy full SHA for 38edd23
File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,15 @@ declare module 'vscode' {
16
16
export namespace languages {
17
17
18
18
/**
19
+ * Set (and change) the [language](#TextDocument.languageId) that is associated
20
+ * with the given document.
19
21
*
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.
20
28
*/
21
29
export function setTextDocumentLanguage ( document : TextDocument , languageId : string ) : Thenable < TextDocument > ;
22
30
}
You can’t perform that action at this time.
0 commit comments