From ca507d7667f423a6678d58b03eaa67c3533eeba5 Mon Sep 17 00:00:00 2001 From: kagami Date: Tue, 16 Jul 2024 15:54:28 +0800 Subject: [PATCH] Hide service's console on Windows --- src/util/localService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/localService.ts b/src/util/localService.ts index 7f43ec1..6b5ee53 100644 --- a/src/util/localService.ts +++ b/src/util/localService.ts @@ -30,7 +30,8 @@ export async function startLocalService(extensionPath: string, workspacePath: st DevChatConfig.getInstance().get("python_for_chat") || "python3"; serviceProcess = spawn(pythonApp, [mainPyPath], { env: { ...process.env }, - stdio: 'inherit' + stdio: 'inherit', + windowsHide: true, // hide the console window on Windows }); serviceProcess.on('error', (err) => {