fixed error when two windows open simultaneously
This commit is contained in:
parent
784d649f1f
commit
9a1641c097
3 changed files with 7 additions and 4 deletions
4
extension/package-lock.json
generated
4
extension/package-lock.json
generated
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue