From 41e8a445cad1b0bc156f40b2df7a09dc690acb7f Mon Sep 17 00:00:00 2001 From: beyondkmp Date: Mon, 4 Aug 2025 18:45:17 +0800 Subject: [PATCH] feat: enable additional GPU channel features and improve crash reportdetails in renderer (#8819) feat: enable additional GPU channel features and improve crash report details in renderer --- src/main/index.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/index.ts b/src/main/index.ts index 5f933bee3d..e35f7cebfe 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -56,8 +56,14 @@ if (isLinux && process.env.XDG_SESSION_TYPE === 'wayland') { app.commandLine.appendSwitch('enable-features', 'GlobalShortcutsPortal') } -// Enable features for unresponsive renderer js call stacks -app.commandLine.appendSwitch('enable-features', 'DocumentPolicyIncludeJSCallStacksInCrashReports') +// DocumentPolicyIncludeJSCallStacksInCrashReports: Enable features for unresponsive renderer js call stacks +// EarlyEstablishGpuChannel,EstablishGpuChannelAsync: Enable features for early establish gpu channel +// speed up the startup time +// https://github.com/microsoft/vscode/pull/241640/files +app.commandLine.appendSwitch( + 'enable-features', + 'DocumentPolicyIncludeJSCallStacksInCrashReports,EarlyEstablishGpuChannel,EstablishGpuChannelAsync' +) app.on('web-contents-created', (_, webContents) => { webContents.session.webRequest.onHeadersReceived((details, callback) => { callback({