This commit is contained in:
Nate Sesti 2023-07-06 22:36:41 -07:00
commit c31d8e003a

View file

@ -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."
);