primaryButton=isWindows?nls.localize('deleteButtonLabelRecycleBin',"&&Move to Recycle Bin"):nls.localize({key:'deleteButtonLabelTrash',comment:['&& denotes a mnemonic']},"&&Move to Trash");
...
...
@@ -155,16 +155,16 @@ async function deleteFiles(textFileService: ITextFileService, dialogService: IDi
message=nls.localize('dirtyMessageFilesDelete',"You are deleting files with unsaved changes. Do you want to continue?");
}elseif(distinctElements[0].isDirectory){
if(dirty.length===1){
if(dirtyWorkingCopies.length===1){
message=nls.localize('dirtyMessageFolderOneDelete',"You are deleting a folder with unsaved changes in 1 file. Do you want to continue?");
}else{
message=nls.localize('dirtyMessageFolderDelete',"You are deleting a folder with unsaved changes in {0} files. Do you want to continue?",dirty.length);
message=nls.localize('dirtyMessageFolderDelete',"You are deleting a folder with unsaved changes in {0} files. Do you want to continue?",dirtyWorkingCopies.length);
}
}else{
message=nls.localize('dirtyMessageFileDelete',"You are deleting a file with unsaved changes. Do you want to continue?");
...
...
@@ -181,7 +181,7 @@ async function deleteFiles(textFileService: ITextFileService, dialogService: IDi
@@ -207,7 +207,7 @@ async function deleteFiles(textFileService: ITextFileService, dialogService: IDi
detail+=distinctElements.length>1?nls.localize('undoTrashFiles',"You can restore these files from the Trash."):nls.localize('undoTrash',"You can restore this file from the Trash.");
}
confirmDeletePromise=dialogService.confirm({
confirmation=awaitdialogService.confirm({
message,
detail,
primaryButton,
...
...
@@ -223,7 +223,7 @@ async function deleteFiles(textFileService: ITextFileService, dialogService: IDi
// Handle error to delete file(s) from a modal confirmation dialog
leterrorMessage:string;
letdetailMessage:string|undefined;
letprimaryButton:string;
if(useTrash){
errorMessage=isWindows?nls.localize('binFailed',"Failed to delete using the Recycle Bin. Do you want to permanently delete instead?"):nls.localize('trashFailed',"Failed to delete using the Trash. Do you want to permanently delete instead?");
detailMessage=nls.localize('irreversible',"This action is irreversible!");
primaryButton=nls.localize({key:'deletePermanentlyButtonLabel',comment:['&& denotes a mnemonic']},"&&Delete Permanently");
}else{
errorMessage=toErrorMessage(error,false);
primaryButton=nls.localize({key:'retryButtonLabel',comment:['&& denotes a mnemonic']},"&&Retry");
// Handle error to delete file(s) from a modal confirmation dialog
leterrorMessage:string;
letdetailMessage:string|undefined;
letprimaryButton:string;
if(useTrash){
errorMessage=isWindows?nls.localize('binFailed',"Failed to delete using the Recycle Bin. Do you want to permanently delete instead?"):nls.localize('trashFailed',"Failed to delete using the Trash. Do you want to permanently delete instead?");
detailMessage=nls.localize('irreversible',"This action is irreversible!");
primaryButton=nls.localize({key:'deletePermanentlyButtonLabel',comment:['&& denotes a mnemonic']},"&&Delete Permanently");
}else{
errorMessage=toErrorMessage(error,false);
primaryButton=nls.localize({key:'retryButtonLabel',comment:['&& denotes a mnemonic']},"&&Retry");