summaryrefslogtreecommitdiff
path: root/extension/src/activation/environmentSetup.ts
diff options
context:
space:
mode:
Diffstat (limited to 'extension/src/activation/environmentSetup.ts')
-rw-r--r--extension/src/activation/environmentSetup.ts16
1 files changed, 13 insertions, 3 deletions
diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts
index 81d58afe..f0e41ca9 100644
--- a/extension/src/activation/environmentSetup.ts
+++ b/extension/src/activation/environmentSetup.ts
@@ -237,8 +237,13 @@ export async function startContinuePythonServer() {
};
try {
const child = spawn(destination, {
- detached: true,
- stdio: "ignore",
+ windowsHide: true,
+ });
+ child.stdout.on("data", (data: any) => {
+ console.log(`stdout: ${data}`);
+ });
+ child.stderr.on("data", (data: any) => {
+ console.log(`stderr: ${data}`);
});
child.on("error", (err: any) => {
if (attempts < maxAttempts) {
@@ -247,7 +252,12 @@ export async function startContinuePythonServer() {
console.error("Failed to start subprocess.", err);
}
});
- child.unref();
+ child.on("exit", (code: any, signal: any) => {
+ console.log("Subprocess exited with code", code, signal);
+ });
+ child.on("close", (code: any, signal: any) => {
+ console.log("Subprocess closed with code", code, signal);
+ });
} catch (e: any) {
console.log("Error starting server:", e);
retry();