diff options
Diffstat (limited to 'extension')
-rw-r--r-- | extension/src/activation/activate.ts | 8 | ||||
-rw-r--r-- | extension/src/activation/environmentSetup.ts | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/extension/src/activation/activate.ts b/extension/src/activation/activate.ts index d07719a8..560b970c 100644 --- a/extension/src/activation/activate.ts +++ b/extension/src/activation/activate.ts @@ -56,12 +56,8 @@ export async function activateExtension(context: vscode.ExtensionContext) { // Start the server and display loader if taking > 2 seconds const sessionIdPromise = (async () => { - await new Promise((resolve) => { - // Start the server and set serverStarted to true when done - startContinuePythonServer().then(() => { - resolve(null); - }); - }); + // Start the server and set serverStarted to true when done + await startContinuePythonServer(); console.log("Continue server started"); // Initialize IDE Protocol Client diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts index ff6fdd66..8818c949 100644 --- a/extension/src/activation/environmentSetup.ts +++ b/extension/src/activation/environmentSetup.ts @@ -230,6 +230,10 @@ export async function startContinuePythonServer() { detached: true, stdio: "ignore", }); + child.on("error", (err: any) => { + console.error("Failed to start subprocess.", err); + }); + child.unref(); // Write the current version of vscode extension to a file called server_version.txt |