rename changeLanguage to setTextDocumentLanguage, #1800

This commit is contained in:
Johannes Rieken
2018-09-19 10:17:36 +02:00
parent 363e6b696f
commit 3bdfca7c31
2 changed files with 6 additions and 2 deletions

View File

@@ -269,7 +269,7 @@ export function createApiFactory(
getLanguages(): Thenable<string[]> {
return extHostLanguages.getLanguages();
},
changeLanguage(document: vscode.TextDocument, languageId: string): Thenable<vscode.TextDocument> {
setTextDocumentLanguage(document: vscode.TextDocument, languageId: string): Thenable<vscode.TextDocument> {
checkProposedApiEnabled(extension);
return extHostLanguages.changeLanguage(document.uri, languageId);
},