From 2d4e76cda2fbc332166fdf8915aef538c9daa2c4 Mon Sep 17 00:00:00 2001 From: Evan Date: Thu, 30 Jan 2025 11:37:22 -0800 Subject: [PATCH] wip --- src/integrations/editor/DiffViewProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/integrations/editor/DiffViewProvider.ts b/src/integrations/editor/DiffViewProvider.ts index e416f99de6..645d4f9005 100644 --- a/src/integrations/editor/DiffViewProvider.ts +++ b/src/integrations/editor/DiffViewProvider.ts @@ -51,7 +51,7 @@ export class DiffViewProvider { this.createdDirs = await createDirectoriesForFile(absolutePath) // make sure the file exists before we open it if (!fileExists) { - await fs.writeFile(absolutePath, "") + await vscode.workspace.fs.writeFile(vscode.Uri.file(absolutePath), new Uint8Array()) } // if the file was already open, close it (must happen after showing the diff view since if it's the only tab the column will close) this.documentWasOpen = false