summaryrefslogtreecommitdiff
path: root/extension/src/activation/environmentSetup.ts
diff options
context:
space:
mode:
authorsestinj <sestinj@gmail.com>2023-07-15 16:42:58 -0700
committersestinj <sestinj@gmail.com>2023-07-15 16:42:58 -0700
commit4d5f33e8984f3a62a13fbe262fead0a8632eaf27 (patch)
tree6425e619efaa957de7ae6c605eb31ddfe50bfce8 /extension/src/activation/environmentSetup.ts
parentc8ca794c0504304e41b5d7b310939b54bbe96099 (diff)
downloadsncontinue-4d5f33e8984f3a62a13fbe262fead0a8632eaf27.tar.gz
sncontinue-4d5f33e8984f3a62a13fbe262fead0a8632eaf27.tar.bz2
sncontinue-4d5f33e8984f3a62a13fbe262fead0a8632eaf27.zip
Change to remote signed in order to setup python venv
Diffstat (limited to 'extension/src/activation/environmentSetup.ts')
-rw-r--r--extension/src/activation/environmentSetup.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts
index 6a66532e..43e7832c 100644
--- a/extension/src/activation/environmentSetup.ts
+++ b/extension/src/activation/environmentSetup.ts
@@ -20,6 +20,10 @@ async function retryThenFail(
retries: number = MAX_RETRIES
): Promise<any> {
try {
+ if (retries < MAX_RETRIES && process.platform === "win32") {
+ const [stdout, stderr] = await runCommand("Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser");
+ }
+
return await fn();
} catch (e: any) {
if (retries > 0) {