File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
packages/core/src/shared/fs Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -304,12 +304,6 @@ export class FileSystem {
304304 }
305305
306306 await write ( uri )
307- if ( isWin ( ) ) {
308- const success = await waitUntil ( async ( ) => await fs . exists ( uri ) , { timeout : 5000 , truthy : true } )
309- if ( ! success ) {
310- throw new ToolkitError ( `Failed to write file ${ uri . toString ( ) } ` )
311- }
312- }
313307 }
314308
315309 /**
@@ -434,7 +428,7 @@ export class FileSystem {
434428 } )
435429 }
436430
437- vfs . delete ( uri , opt ) . then ( undefined , async ( err ) => {
431+ return vfs . delete ( uri , opt ) . then ( undefined , async ( err ) => {
438432 const notFound = isFileNotFoundError ( err )
439433
440434 if ( notFound && opt . force ) {
@@ -467,14 +461,6 @@ export class FileSystem {
467461
468462 throw err
469463 } )
470-
471- // Windows race condition
472- if ( isWin ( ) ) {
473- const success = await waitUntil ( async ( ) => ! ( await fs . exists ( fileOrDir ) ) , { timeout : 5000 , truthy : true } )
474- if ( ! success ) {
475- throw new ToolkitError ( `Failed to delete file ${ uri . toString ( ) } ` )
476- }
477- }
478464 }
479465
480466 async readdir ( uri : vscode . Uri | string ) : Promise < [ string , vscode . FileType ] [ ] > {
You can’t perform that action at this time.
0 commit comments