fixed error when two windows open simultaneously

This commit is contained in:
Nate Sesti 2023-06-28 19:43:08 -07:00
parent 784d649f1f
commit 9a1641c097
3 changed files with 7 additions and 4 deletions

View file

@ -1,12 +1,12 @@
{
"name": "continue",
"version": "0.0.85",
"version": "0.0.86",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "continue",
"version": "0.0.85",
"version": "0.0.86",
"license": "Apache-2.0",
"dependencies": {
"@electron/rebuild": "^3.2.10",

View file

@ -14,7 +14,7 @@
"displayName": "Continue",
"pricing": "Free",
"description": "Accelerating software development with language models",
"version": "0.0.85",
"version": "0.0.86",
"publisher": "Continue",
"engines": {
"vscode": "^1.74.0"

View file

@ -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);
}