mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
Add two alternative language-changing interface functions
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
import { TPromise } from 'vs/base/common/winjs.base';
|
||||
import { MainContext, MainThreadLanguagesShape, IMainContext } from './extHost.protocol';
|
||||
import * as vscode from 'vscode';
|
||||
|
||||
export class ExtHostLanguages {
|
||||
|
||||
@@ -20,4 +21,7 @@ export class ExtHostLanguages {
|
||||
getLanguages(): TPromise<string[]> {
|
||||
return this._proxy.$getLanguages();
|
||||
}
|
||||
setLanguageById(documentUri: vscode.Uri, languageId: string): TPromise<void> {
|
||||
return this._proxy.$setLanguageById(documentUri, languageId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user