summaryrefslogtreecommitdiff
path: root/extension/src
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-07-05 23:49:40 -0700
committerNate Sesti <sestinj@gmail.com>2023-07-05 23:49:40 -0700
commit9371b7da2122ad3525b00f377ecf829b0d904b47 (patch)
treea2f3b2a75ee983af317ff8dc22f86d2895db27d0 /extension/src
parent5c03dd4775845c559a1f6298f7577609ba907bb1 (diff)
parent1f28a09fa8af14e09e85f0407e219c9cade5b4de (diff)
downloadsncontinue-9371b7da2122ad3525b00f377ecf829b0d904b47.tar.gz
sncontinue-9371b7da2122ad3525b00f377ecf829b0d904b47.tar.bz2
sncontinue-9371b7da2122ad3525b00f377ecf829b0d904b47.zip
Merge branch 'main' of https://github.com/continuedev/continue
Diffstat (limited to 'extension/src')
-rw-r--r--extension/src/activation/environmentSetup.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts
index 71b774d9..d6c9241b 100644
--- a/extension/src/activation/environmentSetup.ts
+++ b/extension/src/activation/environmentSetup.ts
@@ -195,6 +195,11 @@ async function setupPythonEnv() {
if (checkEnvExists()) {
break;
} 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."
+ );
+ }
throw new Error(stderr);
} else {
// Remove the env and try again