summaryrefslogtreecommitdiff
path: root/extension/src
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-15 18:47:28 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-15 18:47:28 -0700
commit07809c6717856e854d9005f77d51d274dec0fcc4 (patch)
tree3502bebad1e7b6afde2b58f94fd06ba04f9b2e36 /extension/src
parent1c41fb0a803c886841dbea9fa5e4129059a32e5d (diff)
downloadsncontinue-07809c6717856e854d9005f77d51d274dec0fcc4.tar.gz
sncontinue-07809c6717856e854d9005f77d51d274dec0fcc4.tar.bz2
sncontinue-07809c6717856e854d9005f77d51d274dec0fcc4.zip
5s timeout on websocket connections
Diffstat (limited to 'extension/src')
-rw-r--r--extension/src/activation/environmentSetup.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts
index be1c220c..7a0d24d4 100644
--- a/extension/src/activation/environmentSetup.ts
+++ b/extension/src/activation/environmentSetup.ts
@@ -28,8 +28,6 @@ async function retryThenFail(
);
console.log("Execution policy stdout: ", stdout);
console.log("Execution policy stderr: ", stderr);
- // Then reload the window for this to take effect
- await vscode.commands.executeCommand("workbench.action.reloadWindow");
}
}
@@ -447,7 +445,8 @@ export async function startContinuePythonServer() {
console.log(`stdout: ${data}`);
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)
+ data.includes("only one usage of each socket address") || // [windows] The server is already running (probably a simultaneously opened VS Code window)
+ data.includes("address already in use") // [mac/linux] The server is already running (probably a simultaneously opened VS Code window)
) {
console.log("Successfully started Continue python server");
resolve(null);