returnTPromise.wrapError<void>(newError(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))));
}
returnnewTPromise((resolve,reject)=>{
(import('electron')).then(electron=>{// workaround for https://github.com/Microsoft/vscode/issues/48205
reject(newError(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))));