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
isAdminPromise=import('native-is-elevated').then(isElevated=>isElevated());// not using async here due to https://github.com/microsoft/vscode/issues/74321
321
321
}else{
322
-
isAdmin=isRootUser();
322
+
isAdminPromise=Promise.resolve(isRootUser());
323
323
}
324
324
325
-
// Update title
326
-
this.titleService.updateProperties({ isAdmin });
325
+
returnisAdminPromise.then(isAdmin=>{
327
326
328
-
// Show warning message (unix only)
329
-
if(isAdmin&&!isWindows){
330
-
this.notificationService.warn(nls.localize('runningAsRoot',"It is not recommended to run {0} as root user.",product.nameShort));
331
-
}
327
+
// Update title
328
+
this.titleService.updateProperties({ isAdmin });
329
+
330
+
// Show warning message (unix only)
331
+
if(isAdmin&&!isWindows){
332
+
this.notificationService.warn(nls.localize('runningAsRoot',"It is not recommended to run {0} as root user.",product.nameShort));
0 commit comments