From e0b1ed722ba2decc92d7112f5b95e4182a4ced19 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Mon, 17 Sep 2018 17:46:01 +0200 Subject: [PATCH] fix #58801 --- .../platform/windows/electron-main/windowsService.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/vs/platform/windows/electron-main/windowsService.ts b/src/vs/platform/windows/electron-main/windowsService.ts index 0869cf26629..077542554f2 100644 --- a/src/vs/platform/windows/electron-main/windowsService.ts +++ b/src/vs/platform/windows/electron-main/windowsService.ts @@ -23,7 +23,7 @@ import { IWorkspaceIdentifier, IWorkspaceFolderCreationData, ISingleFolderWorksp import { ISerializableCommandAction } from 'vs/platform/actions/common/actions'; import { Schemas } from 'vs/base/common/network'; import { mnemonicButtonLabel } from 'vs/base/common/labels'; -import { isWindows, isMacintosh } from 'vs/base/common/platform'; +import { isMacintosh } from 'vs/base/common/platform'; import { ILogService } from 'vs/platform/log/common/log'; export class WindowsService implements IWindowsService, IURLHandler, IDisposable { @@ -522,20 +522,15 @@ export class WindowsService implements IWindowsService, IURLHandler, IDisposable process.arch ); - const buttons = [nls.localize('okButton', "OK")]; - if (isWindows) { - buttons.push(mnemonicButtonLabel(nls.localize({ key: 'copy', comment: ['&& denotes a mnemonic'] }, "&&Copy"))); // https://github.com/Microsoft/vscode/issues/37608 - } - this.windowsMainService.showMessageBox({ title: product.nameLong, type: 'info', message: product.nameLong, detail: `\n${detail}`, - buttons, + buttons: [nls.localize('okButton', "OK"), mnemonicButtonLabel(nls.localize({ key: 'copy', comment: ['&& denotes a mnemonic'] }, "&&Copy"))], noLink: true }, lastActiveWindow).then(result => { - if (isWindows && result.button === 1) { + if (result.button === 1) { clipboard.writeText(detail); } });