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.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts
index 2067f0fb..6b434756 100644
--- a/extension/src/activation/environmentSetup.ts
+++ b/extension/src/activation/environmentSetup.ts
@@ -330,8 +330,11 @@ export async function startContinuePythonServer(redownload: boolean = true) {
child.unref();
}
} catch (e: any) {
- console.log("Error starting server:", e);
- retry(e);
+ if (attempts < maxAttempts) {
+ retry(e);
+ } else {
+ throw e;
+ }
}
};