this.dialogService.show(Severity.Info,nls.localize('warnEscalation',"Code will now prompt with 'osascript' for Administrator privileges to install the shell command."),buttons,1).then(choice=>{
this.dialogService.show(Severity.Info,nls.localize('warnEscalation',"Code will now prompt with 'osascript' for Administrator privileges to install the shell command."),buttons,{cancelId:1}).then(choice=>{
@@ -84,39 +85,22 @@ export class TextFileService extends AbstractTextFileService {
constmessage=resourcesToConfirm.length===1?nls.localize('saveChangesMessage',"Do you want to save the changes you made to {0}?",paths.basename(resourcesToConfirm[0].fsPath))
:getConfirmMessage(nls.localize('saveChangesMessages',"Do you want to save the changes to the following {0} files?",resourcesToConfirm.length),resourcesToConfirm);
// Button order
// Windows: Save | Don't Save | Cancel
// Mac: Save | Cancel | Don't Save
// Linux: Don't Save | Cancel | Save
constsave={label:resourcesToConfirm.length>1?mnemonicButtonLabel(nls.localize({key:'saveAll',comment:['&& denotes a mnemonic']},"&&Save All")):mnemonicButtonLabel(nls.localize({key:'save',comment:['&& denotes a mnemonic']},"&&Save")),result:ConfirmResult.SAVE};
constdontSave={label:mnemonicButtonLabel(nls.localize({key:'dontSave',comment:['&& denotes a mnemonic']},"Do&&n't Save")),result:ConfirmResult.DONT_SAVE};
resourcesToConfirm.length>1?mnemonicButtonLabel(nls.localize({key:'saveAll',comment:['&& denotes a mnemonic']},"&&Save All")):mnemonicButtonLabel(nls.localize({key:'save',comment:['&& denotes a mnemonic']},"&&Save")),
mnemonicButtonLabel(nls.localize({key:'dontSave',comment:['&& denotes a mnemonic']},"Do&&n't Save")),