提交 e3dc5a33 编写于 作者: B Benjamin Pasero

Startup error dialog closes immediately (fix #104493)

上级 ef569d3b
......@@ -289,7 +289,8 @@ class CodeMain {
// Process Info
if (args.status) {
return instantiationService.invokeFunction(async accessor => {
return instantiationService.invokeFunction(async () => {
// Create a diagnostic service connected to the existing shared process
const sharedProcessClient = await connect(environmentService.sharedIPCHandle, 'main');
const diagnosticsChannel = sharedProcessClient.getChannel('diagnostics');
......@@ -357,7 +358,10 @@ class CodeMain {
}
private showStartupWarningDialog(message: string, detail: string): void {
dialog.showMessageBox({
// use sync variant here because we likely exit after this method
// due to startup issues and otherwise the dialog seems to disappear
// https://github.com/microsoft/vscode/issues/104493
dialog.showMessageBoxSync({
title: product.nameLong,
type: 'warning',
buttons: [mnemonicButtonLabel(localize({ key: 'close', comment: ['&& denotes a mnemonic'] }, "&&Close"))],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册