mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 14:01:38 +01:00
Git - remove another usage of iconv (#243902)
This commit is contained in:
@@ -1222,7 +1222,8 @@ export class Repository implements Disposable {
|
||||
|
||||
async stage(resource: Uri, contents: string, encoding: string): Promise<void> {
|
||||
await this.run(Operation.Stage, async () => {
|
||||
await this.repository.stage(resource.fsPath, contents, encoding);
|
||||
const data = await workspace.encode(contents, resource, { encoding });
|
||||
await this.repository.stage(resource.fsPath, data);
|
||||
|
||||
this._onDidChangeOriginalResource.fire(resource);
|
||||
this.closeDiffEditors([], [...resource.fsPath]);
|
||||
|
||||
Reference in New Issue
Block a user