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.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts
index 4e6227c7..823670fd 100644
--- a/extension/src/activation/environmentSetup.ts
+++ b/extension/src/activation/environmentSetup.ts
@@ -274,7 +274,10 @@ export async function startContinuePythonServer() {
});
child.stderr.on("data", (data: any) => {
console.log(`stderr: ${data}`);
- if (data.includes("Uvicorn running on")) {
+ if (
+ data.includes("Uvicorn running on") || // Successfully started the server
+ data.includes("address already in use") // The server is already running (probably a simultaneously opened VS Code window)
+ ) {
console.log("Successfully started Continue python server");
resolve(null);
}