From 0f3e84bcc727481fda9fab30d8584a264c9e8f9f Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Mon, 31 Aug 2026 14:56:12 +0200 Subject: [PATCH] fix(windows): call 'Show Console' twice to make the console actually show on first use The underlying issue may be in the node-hide-console-window component. This fix is adequate in my view, for a low-use code path. Fixes: #9694 Test-bot: skip --- developer/src/server/src/win32-tray.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/developer/src/server/src/win32-tray.ts b/developer/src/server/src/win32-tray.ts index a71771f3de..a248f9b669 100644 --- a/developer/src/server/src/win32-tray.ts +++ b/developer/src/server/src/win32-tray.ts @@ -71,6 +71,11 @@ export class Win32Tray { open(ngrokAddress); break; case 'item-id-show-console': + // #9694 - the first time, this has to be called twice for the console + // window to appear. This could probably be fixed in the source + // node-hide-console-window component, but this works well enough and + // has little in the way of side-effects. + WindowsConsole.showConsole(); WindowsConsole.showConsole(); break; case 'item-id-hide-console':