diff options
author | sestinj <sestinj@gmail.com> | 2023-07-15 16:42:58 -0700 |
---|---|---|
committer | sestinj <sestinj@gmail.com> | 2023-07-15 16:42:58 -0700 |
commit | 2e52eb4cc50f7c6fffcf7687ecd15d80073b07c6 (patch) | |
tree | fbeb2416a55c42ddb5b6e339c31d6d9997e256c4 /extension/src | |
parent | 3a39b979c55b005d9bb18b88b43ca7293ee5410d (diff) | |
download | sncontinue-2e52eb4cc50f7c6fffcf7687ecd15d80073b07c6.tar.gz sncontinue-2e52eb4cc50f7c6fffcf7687ecd15d80073b07c6.tar.bz2 sncontinue-2e52eb4cc50f7c6fffcf7687ecd15d80073b07c6.zip |
Change to remote signed in order to setup python venv
Diffstat (limited to 'extension/src')
-rw-r--r-- | extension/src/activation/environmentSetup.ts | 4 |
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) { |