diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-28 19:43:08 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-28 19:43:08 -0700 |
commit | 14f779412c086d569d6f86b9c3e871cbeb45c95a (patch) | |
tree | 8b1b38e032405d851e313e8045e26125a04c8d8c /extension/src/activation | |
parent | 04d591d0b2447abc9ed76ff588f2ae405001810e (diff) | |
download | sncontinue-14f779412c086d569d6f86b9c3e871cbeb45c95a.tar.gz sncontinue-14f779412c086d569d6f86b9c3e871cbeb45c95a.tar.bz2 sncontinue-14f779412c086d569d6f86b9c3e871cbeb45c95a.zip |
fixed error when two windows open simultaneously
Diffstat (limited to 'extension/src/activation')
-rw-r--r-- | extension/src/activation/environmentSetup.ts | 5 |
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); } |