summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTy Dunn <ty@tydunn.com>2023-07-06 22:26:31 -0700
committerTy Dunn <ty@tydunn.com>2023-07-06 22:26:31 -0700
commita57853c2aa9d38f91cfb5a802f2fab2442cc29f4 (patch)
tree71fb28105999e6caf5cb6e38093b604e923962f1
parent9fc831e7587cce99c8a6f2e56905c25068c8cab6 (diff)
downloadsncontinue-a57853c2aa9d38f91cfb5a802f2fab2442cc29f4.tar.gz
sncontinue-a57853c2aa9d38f91cfb5a802f2fab2442cc29f4.tar.bz2
sncontinue-a57853c2aa9d38f91cfb5a802f2fab2442cc29f4.zip
fixing retries
-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."
);