@@ -701,23 +702,25 @@ export class BaseDeleteFileAction extends BaseFileAction {
...
@@ -701,23 +702,25 @@ export class BaseDeleteFileAction extends BaseFileAction {
}
}
// Ask for Confirm
// Ask for Confirm
letconfirm:IConfirmation;
if(!this.skipConfirm){
if(this.useTrash){
letconfirm:IConfirmation;
confirm={
if(this.useTrash){
message:this.element.isDirectory?nls.localize('confirmMoveTrashMessageFolder',"Are you sure you want to delete '{0}' and its contents?",this.element.name):nls.localize('confirmMoveTrashMessageFile',"Are you sure you want to delete '{0}'?",this.element.name),
confirm={
detail:isWindows?nls.localize('undoBin',"You can restore from the recycle bin."):nls.localize('undoTrash',"You can restore from the trash."),
message:this.element.isDirectory?nls.localize('confirmMoveTrashMessageFolder',"Are you sure you want to delete '{0}' and its contents?",this.element.name):nls.localize('confirmMoveTrashMessageFile',"Are you sure you want to delete '{0}'?",this.element.name),
primaryButton:isWindows?nls.localize('deleteButtonLabelRecycleBin',"&&Move to Recycle Bin"):nls.localize('deleteButtonLabelTrash',"&&Move to Trash")
detail:isWindows?nls.localize('undoBin',"You can restore from the recycle bin."):nls.localize('undoTrash',"You can restore from the trash."),
};
primaryButton:isWindows?nls.localize('deleteButtonLabelRecycleBin',"&&Move to Recycle Bin"):nls.localize('deleteButtonLabelTrash',"&&Move to Trash")
}else{
};
confirm={
}else{
message:this.element.isDirectory?nls.localize('confirmDeleteMessageFolder',"Are you sure you want to permanently delete '{0}' and its contents?",this.element.name):nls.localize('confirmDeleteMessageFile',"Are you sure you want to permanently delete '{0}'?",this.element.name),
confirm={
detail:nls.localize('irreversible',"This action is irreversible!"),
message:this.element.isDirectory?nls.localize('confirmDeleteMessageFolder',"Are you sure you want to permanently delete '{0}' and its contents?",this.element.name):nls.localize('confirmDeleteMessageFile',"Are you sure you want to permanently delete '{0}'?",this.element.name),