Skip to content

Commit 7fe5a24

Browse files
committed
Launch powershell.exe with -ExecutionPolicy Bypass
This change causes our PowerShell sessions to be launched with an ExecutionPolicy of Bypass to fix some of the extension loading failures that users have been reporting. This setting avoids the prompt which asks the user to accept running the signed Start-EditorServices.ps1 script before the extension can be loaded.
1 parent 659cd0d commit 7fe5a24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/process.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class PowerShellProcess {
6161

6262
// Only add ExecutionPolicy param on Windows
6363
if (utils.isWindowsOS()) {
64-
powerShellArgs.push("-ExecutionPolicy", "Unrestricted")
64+
powerShellArgs.push("-ExecutionPolicy", "Bypass")
6565
}
6666

6767
powerShellArgs.push(

0 commit comments

Comments
 (0)