summaryrefslogtreecommitdiff
path: root/extension/src/activation/environmentSetup.ts
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-06 22:36:41 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-06 22:36:41 -0700
commitc31d8e003ac08f31e02ca647095b19b4267a47cf (patch)
tree65876f415cf76b66b34fba1f35f73de3345dd668 /extension/src/activation/environmentSetup.ts
parent0898746aa76deae2fcaaf9ee7fa81fdcd7e5add1 (diff)
parentbd20d3430f9b83d58e54627c23ebb05f5db3fd1a (diff)
downloadsncontinue-c31d8e003ac08f31e02ca647095b19b4267a47cf.tar.gz
sncontinue-c31d8e003ac08f31e02ca647095b19b4267a47cf.tar.bz2
sncontinue-c31d8e003ac08f31e02ca647095b19b4267a47cf.zip
Merge branch 'main' of https://github.com/continuedev/continue
Diffstat (limited to 'extension/src/activation/environmentSetup.ts')
-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 d6c9241b..f6cc129e 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 = 5;
+const MAX_RETRIES = 0;
async function retryThenFail(
fn: () => Promise<any>,
retries: number = MAX_RETRIES
@@ -195,7 +195,7 @@ async function setupPythonEnv() {
if (checkEnvExists()) {
break;
} else if (stderr) {
- if (stderr.includes("Running Scripts is Disabled on this System")) {
+ 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."
);