提交 6baa9e48 编写于 作者: B Benjamin Pasero

💄

上级 25ee5b3a
...@@ -1204,15 +1204,20 @@ export class CodeMenu { ...@@ -1204,15 +1204,20 @@ export class CodeMenu {
process.arch process.arch
); );
const buttons = [nls.localize('okButton', "OK")];
if (isWindows) {
buttons.push(nls.localize('copyButton', "Copy")); // https://github.com/Microsoft/vscode/issues/37608
}
dialog.showMessageBox(lastActiveWindow && lastActiveWindow.win, { dialog.showMessageBox(lastActiveWindow && lastActiveWindow.win, {
title: product.nameLong, title: product.nameLong,
type: 'info', type: 'info',
message: product.nameLong, message: product.nameLong,
detail: `\n${detail}`, detail: `\n${detail}`,
buttons: [nls.localize('okButton', "OK"), nls.localize('copyButton', "Copy")], buttons,
noLink: true noLink: true
}, result => { }, result => {
if (result === 1) { if (isWindows && result === 1) {
clipboard.writeText(detail); clipboard.writeText(detail);
} }
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册