message=nls.localize('dirtyMessageFilesDelete',"You are deleting files with unsaved changes. Do you want to continue?");
}elseif(this.elements[0].isDirectory){
}elseif(distinctElements[0].isDirectory){
if(dirty.length===1){
message=nls.localize('dirtyMessageFolderOneDelete',"You are deleting a folder with unsaved changes in 1 file. Do you want to continue?");
}else{
...
...
@@ -706,9 +709,9 @@ class BaseDeleteFileAction extends BaseFileAction {
// Confirm for moving to trash
elseif(this.useTrash){
constmessage=this.elements.length>1?getConfirmMessage(nls.localize('confirmMoveTrashMessageMultiple',"Are you sure you want to delete the following {0} files?",this.elements.length),this.elements.map(e=>e.resource))
:this.elements[0].isDirectory?nls.localize('confirmMoveTrashMessageFolder',"Are you sure you want to delete '{0}' and its contents?",this.elements[0].name)
:nls.localize('confirmMoveTrashMessageFile',"Are you sure you want to delete '{0}'?",this.elements[0].name);
constmessage=distinctElements.length>1?getConfirmMessage(nls.localize('confirmMoveTrashMessageMultiple',"Are you sure you want to delete the following {0} files?",distinctElements.length),distinctElements.map(e=>e.resource))
:distinctElements[0].isDirectory?nls.localize('confirmMoveTrashMessageFolder',"Are you sure you want to delete '{0}' and its contents?",distinctElements[0].name)
:nls.localize('confirmMoveTrashMessageFile',"Are you sure you want to delete '{0}'?",distinctElements[0].name);
detail:isWindows?nls.localize('undoBin',"You can restore from the recycle bin."):nls.localize('undoTrash',"You can restore from the trash."),
...
...
@@ -722,9 +725,9 @@ class BaseDeleteFileAction extends BaseFileAction {
// Confirm for deleting permanently
else{
constmessage=this.elements.length>1?getConfirmMessage(nls.localize('confirmDeleteMessageMultiple',"Are you sure you want to permanently delete the following {0} files?",this.elements.length),this.elements.map(e=>e.resource))
:this.elements[0].isDirectory?nls.localize('confirmDeleteMessageFolder',"Are you sure you want to permanently delete '{0}' and its contents?",this.elements[0].name)
:nls.localize('confirmDeleteMessageFile',"Are you sure you want to permanently delete '{0}'?",this.elements[0].name);
constmessage=distinctElements.length>1?getConfirmMessage(nls.localize('confirmDeleteMessageMultiple',"Are you sure you want to permanently delete the following {0} files?",distinctElements.length),distinctElements.map(e=>e.resource))
:distinctElements[0].isDirectory?nls.localize('confirmDeleteMessageFolder',"Are you sure you want to permanently delete '{0}' and its contents?",distinctElements[0].name)
:nls.localize('confirmDeleteMessageFile',"Are you sure you want to permanently delete '{0}'?",distinctElements[0].name);