Git - remove another usage of iconv (#243902)

This commit is contained in:
Ladislau Szomoru
2025-03-18 21:35:33 +01:00
committed by GitHub
parent 6191768413
commit 46a9b7e644
2 changed files with 4 additions and 4 deletions

View File

@@ -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]);