diff --git a/src/vs/workbench/services/files/electron-browser/fileService.ts b/src/vs/workbench/services/files/electron-browser/fileService.ts index 56cbb5ec49a..b79030bd583 100644 --- a/src/vs/workbench/services/files/electron-browser/fileService.ts +++ b/src/vs/workbench/services/files/electron-browser/fileService.ts @@ -929,7 +929,7 @@ export class FileService implements IFileService { private doMoveItemToTrash(resource: uri): TPromise { const absolutePath = resource.fsPath; - const shell = (require.__$__nodeRequire('electron') as Electron.RendererInterface).shell; // workaround for being able to run tests out of VSCode debugger + const shell = (require('electron') as Electron.RendererInterface).shell; // workaround for being able to run tests out of VSCode debugger const result = shell.moveItemToTrash(absolutePath); if (!result) { return TPromise.wrapError(new Error(isWindows ? nls.localize('binFailed', "Failed to move '{0}' to the recycle bin", paths.basename(absolutePath)) : nls.localize('trashFailed', "Failed to move '{0}' to the trash", paths.basename(absolutePath))));