use getOrCreateMode and move api to proposed-stage first

This commit is contained in:
Johannes Rieken
2018-08-27 14:08:44 +02:00
parent bd02bdbc5a
commit 5ef859f6fc
7 changed files with 16 additions and 20 deletions

View File

@@ -259,6 +259,7 @@ export function createApiFactory(
return extHostLanguages.getLanguages();
},
changeLanguage(document: vscode.TextDocument, languageId: string): TPromise<void> {
checkProposedApiEnabled(extension);
return extHostLanguages.changeLanguage(document.uri, languageId);
},
match(selector: vscode.DocumentSelector, document: vscode.TextDocument): number {