You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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=>{
105
-
switch(choice){
104
+
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(result=>{
this.dialogService.show(Severity.Info,nls.localize('warnEscalationUninstall',"Code will now prompt with 'osascript' for Administrator privileges to uninstall the shell command."),buttons,{cancelId: 1}).then(choice=>{
172
-
switch(choice){
173
-
case0/* OK */:
174
-
constcommand='osascript -e "do shell script \\"rm \''+this.target+'\'\\" with administrator privileges"';
175
-
176
-
promisify(cp.exec)(command,{})
177
-
.then(undefined,_=>Promise.reject(newError(nls.localize('cantUninstall',"Unable to uninstall the shell command '{0}'.",this.target))))
const{ choice }=awaitthis.dialogService.show(Severity.Info,nls.localize('warnEscalationUninstall',"Code will now prompt with 'osascript' for Administrator privileges to uninstall the shell command."),buttons,{cancelId: 1});
172
+
switch(choice){
173
+
case0/* OK */:
174
+
constcommand='osascript -e "do shell script \\"rm \''+this.target+'\'\\" with administrator privileges"';
175
+
176
+
promisify(cp.exec)(command,{})
177
+
.then(undefined,_=>Promise.reject(newError(nls.localize('cantUninstall',"Unable to uninstall the shell command '{0}'.",this.target))))
0 commit comments