There was an error while loading. Please reload this page.
1 parent 1307112 commit a2065ecCopy full SHA for a2065ec
1 file changed
src/OneWare.Terminal/ShellIntegration.cs
@@ -63,9 +63,11 @@ private static SpawnConfig CreatePowerShellConfig(string shellExecutable)
63
64
// The arguments string must contain the full command line because the ConPTY
65
// provider uses it verbatim when it is not empty.
66
+ // -ExecutionPolicy Bypass is required so the integration script can be dot-sourced
67
+ // regardless of the system execution policy (matches VS Code behaviour).
68
var exe = Path.GetFileName(shellExecutable);
69
return new SpawnConfig(
- $"{exe} -NoLogo -NoProfile -NoExit -Command \". '{escaped}'\"", null);
70
+ $"{exe} -NoLogo -NoProfile -NoExit -ExecutionPolicy Bypass -Command \". '{escaped}'\"", null);
71
}
72
73
private static readonly Lock WriteLock = new();
0 commit comments