diff --git a/src/vs/workbench/electron-browser/window.ts b/src/vs/workbench/electron-browser/window.ts index 4919828d54f8655528f3530e102de2d5faba6d0e..af6824b61a3176832517a7aa579da98fdf45a86c 100644 --- a/src/vs/workbench/electron-browser/window.ts +++ b/src/vs/workbench/electron-browser/window.ts @@ -338,13 +338,9 @@ export class ElectronWindow extends Themable { // Update title this.titleService.updateProperties({ isAdmin }); - // Show warning message - if (isAdmin) { - if (isWindows) { - this.messageService.show(Severity.Warning, nls.localize('runningAsAdmin', "It is not recommended to run {0} as Administrator.", product.nameShort)); - } else { - this.messageService.show(Severity.Warning, nls.localize('runningAsRoot', "It is not recommended to run {0} as root user.", product.nameShort)); - } + // Show warning message (unix only) + if (isAdmin && !isWindows) { + this.messageService.show(Severity.Warning, nls.localize('runningAsRoot', "It is not recommended to run {0} as root user.", product.nameShort)); } }); });