Skip to content

Commit

Permalink
setEncoding return Promise
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarrowren committed Dec 8, 2023
1 parent fe87303 commit b8aef29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/api/common/extHostTextEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,8 @@ export class ExtHostTextEditor {
getEncoding(): Promise<string | undefined> {
return _proxy.$tryGetEncoding(id);
},
setEncoding(encoding: string): void {
_proxy.$trySetEncoding(id, encoding);
setEncoding(encoding: string): Promise<void> {
return _proxy.$trySetEncoding(id, encoding);
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/vscode-dts/vscode.proposed.editorEncoding.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ declare module 'vscode' {
* Set the text editor encoding.
* @param encoding
*/
setEncoding(encoding: string): void;
setEncoding(encoding: string): Thenable<void>;
}
}

0 comments on commit b8aef29

Please sign in to comment.