summaryrefslogtreecommitdiff
path: root/extension
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-07 14:48:18 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-07 14:48:18 -0700
commite096a3e769e0b506cfb8e98c0f1930e85d701a38 (patch)
tree6cf5df907c1995a3570bf1469206d5e9a8726993 /extension
parentf9a06f3eed89b9d89cda3060be1deb9de93299d7 (diff)
downloadsncontinue-e096a3e769e0b506cfb8e98c0f1930e85d701a38.tar.gz
sncontinue-e096a3e769e0b506cfb8e98c0f1930e85d701a38.tar.bz2
sncontinue-e096a3e769e0b506cfb8e98c0f1930e85d701a38.zip
max_retries = 3
Diffstat (limited to 'extension')
-rw-r--r--extension/src/activation/environmentSetup.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts
index f6cc129e..bbf93f65 100644
--- a/extension/src/activation/environmentSetup.ts
+++ b/extension/src/activation/environmentSetup.ts
@@ -10,7 +10,7 @@ import * as vscode from "vscode";
import fkill from "fkill";
import { sendTelemetryEvent, TelemetryEvent } from "../telemetry";
-const MAX_RETRIES = 0;
+const MAX_RETRIES = 3;
async function retryThenFail(
fn: () => Promise<any>,
retries: number = MAX_RETRIES
@@ -197,7 +197,7 @@ async function setupPythonEnv() {
} else if (stderr) {
if (stderr.includes("running scripts is disabled on this system")) {
vscode.window.showErrorMessage(
- "A Python virtual enviroment cannot be activated because running scripts is disabled for this user. Please enable signed scripts to run with this command in PowerShell: `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser`, reload VS Code, and then try again."
+ "A Python virtual enviroment cannot be activated because running scripts is disabled for this user. Please enable signed scripts to run with this command in PowerShell: `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser`, reload VS Code, and then try again."
);
}
throw new Error(stderr);