Skip to content

Commit f2f13ba

Browse files
author
Benjamin Pasero
committed
files2 - throw if deleting non existing file
1 parent dbdb424 commit f2f13ba

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/vs/workbench/services/files2/node/diskFileSystemProvider.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,6 @@ export class DiskFileSystemProvider extends Disposable implements IFileSystemPro
225225

226226
await this.doDelete(filePath, opts);
227227
} catch (error) {
228-
if (error.code === 'ENOENT') {
229-
return Promise.resolve(); // tolerate that the file might not exist
230-
}
231-
232228
throw this.toFileSystemProviderError(error);
233229
}
234230
}

0 commit comments

Comments
 (0)