Hide service's console on Windows

This commit is contained in:
kagami 2024-07-16 15:54:28 +08:00
parent 05be2b25db
commit ca507d7667

View File

@ -30,7 +30,8 @@ export async function startLocalService(extensionPath: string, workspacePath: st
DevChatConfig.getInstance().get("python_for_chat") || "python3"; DevChatConfig.getInstance().get("python_for_chat") || "python3";
serviceProcess = spawn(pythonApp, [mainPyPath], { serviceProcess = spawn(pythonApp, [mainPyPath], {
env: { ...process.env }, env: { ...process.env },
stdio: 'inherit' stdio: 'inherit',
windowsHide: true, // hide the console window on Windows
}); });
serviceProcess.on('error', (err) => { serviceProcess.on('error', (err) => {