Commit 3bdfca7 1 parent 363e6b6 commit 3bdfca7 Copy full SHA for 3bdfca7
File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,18 @@ declare module 'vscode' {
11
11
export function sampleFunction ( ) : Thenable < any > ;
12
12
}
13
13
14
+ //#region Joh - https://github.com/Microsoft/vscode/issues/1800
15
+
14
16
export namespace languages {
15
17
16
18
/**
17
19
*
18
20
*/
19
- export function changeLanguage ( document : TextDocument , languageId : string ) : Thenable < TextDocument > ;
21
+ export function setTextDocumentLanguage ( document : TextDocument , languageId : string ) : Thenable < TextDocument > ;
20
22
}
21
23
24
+ //#endregion
25
+
22
26
//#region Joh - read/write in chunks
23
27
24
28
export interface FileSystemProvider {
Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ export function createApiFactory(
269
269
getLanguages ( ) : Thenable < string [ ] > {
270
270
return extHostLanguages . getLanguages ( ) ;
271
271
} ,
272
- changeLanguage ( document : vscode . TextDocument , languageId : string ) : Thenable < vscode . TextDocument > {
272
+ setTextDocumentLanguage ( document : vscode . TextDocument , languageId : string ) : Thenable < vscode . TextDocument > {
273
273
checkProposedApiEnabled ( extension ) ;
274
274
return extHostLanguages . changeLanguage ( document . uri , languageId ) ;
275
275
} ,
You can’t perform that action at this time.
0 commit comments