primaryButton=isWindows?nls.localize('deleteButtonLabelRecycleBin',"&&Move to Recycle Bin"):nls.localize({key:'deleteButtonLabelTrash',comment:['&& denotes a mnemonic']},"&&Move to Trash");
...
...
@@ -152,7 +152,7 @@ function deleteFiles(textFileService: ITextFileService, dialogService: IDialogSe
// 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");
message:items.length>1&&items.every(s=>s.isRoot)?localize('confirmRootsMove',"Are you sure you want to change the order of multiple root folders in your workspace?")
:items.length>1?getConfirmMessage(localize('confirmMultiMove',"Are you sure you want to move the following {0} files?",items.length),items.map(s=>s.resource))
:items[0].isRoot?localize('confirmRootMove',"Are you sure you want to change the order of root folder '{0}' in your workspace?",items[0].name)
...
...
@@ -739,27 +724,19 @@ export class FileDragAndDrop implements ITreeDragAndDrop<ExplorerItem> {
type:'question',
primaryButton:localize({key:'moveButtonLabel',comment:['&& denotes a mnemonic']},"&&Move")