diff --git a/src/background/PatchFile/PatchFile.base.ts b/src/background/PatchFile/PatchFile.base.ts index f7d30fa..ac8afa0 100644 --- a/src/background/PatchFile/PatchFile.base.ts +++ b/src/background/PatchFile/PatchFile.base.ts @@ -135,7 +135,7 @@ export abstract class AbsPatchFile { await vscode.window.showErrorMessage(e.message); return false; } finally { - await fs.promises.rm(tempFilePath); + await fs.promises.rm(tempFilePath, { force: true }); } } }