提交 3bdfca7c 编写于 作者: J Johannes Rieken

rename changeLanguage to setTextDocumentLanguage, #1800

上级 363e6b69
......@@ -11,14 +11,18 @@ declare module 'vscode' {
export function sampleFunction(): Thenable<any>;
}
//#region Joh - https://github.com/Microsoft/vscode/issues/1800
export namespace languages {
/**
*
*/
export function changeLanguage(document: TextDocument, languageId: string): Thenable<TextDocument>;
export function setTextDocumentLanguage(document: TextDocument, languageId: string): Thenable<TextDocument>;
}
//#endregion
//#region Joh - read/write in chunks
export interface FileSystemProvider {
......
......@@ -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);
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册