summaryrefslogtreecommitdiff
path: root/extension/src/activation/environmentSetup.ts
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-08-03 22:15:06 -0700
committerNate Sesti <sestinj@gmail.com>2023-08-03 22:15:06 -0700
commit0181d6236d8b74c80adb62648fd6571431cf3210 (patch)
tree44c6d4a94c692f5e3eb7f83c323ea91c48e30eba /extension/src/activation/environmentSetup.ts
parentf4051a73b4961de26e7b8c4bf297de8eda57e39a (diff)
downloadsncontinue-0181d6236d8b74c80adb62648fd6571431cf3210.tar.gz
sncontinue-0181d6236d8b74c80adb62648fd6571431cf3210.tar.bz2
sncontinue-0181d6236d8b74c80adb62648fd6571431cf3210.zip
feat: :lipstick: small ui tweaks, detached child process
Diffstat (limited to 'extension/src/activation/environmentSetup.ts')
-rw-r--r--extension/src/activation/environmentSetup.ts19
1 files changed, 3 insertions, 16 deletions
diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts
index 10a9f75f..d6fe4261 100644
--- a/extension/src/activation/environmentSetup.ts
+++ b/extension/src/activation/environmentSetup.ts
@@ -219,23 +219,10 @@ export async function startContinuePythonServer() {
// Run the executable
console.log("Starting Continue server...");
const child = spawn(destination, {
- shell: true,
- });
- child.stderr.on("data", (data: any) => {
- console.log(data.toString());
- });
-
- child.on("error", (error: any) => {
- console.log(`error: ${error.message}`);
- });
-
- child.on("close", (code: any) => {
- console.log(`child process exited with code ${code}`);
- });
-
- child.stdout.on("data", (data: any) => {
- console.log(`stdout: ${data.toString()}`);
+ detached: true,
+ stdio: "ignore",
});
+ child.unref();
// Write the current version of vscode extension to a file called server_version.txt
fs.writeFileSync(serverVersionPath(), getExtensionVersion());