We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb9898a commit 15a9afaCopy full SHA for 15a9afa
src/PowerShellEditorServices/Server/PsesDebugServer.cs
@@ -76,7 +76,8 @@ public async Task StartAsync()
76
_powerShellContextService.IsDebugServerActive = true;
77
78
// Needed to make sure PSReadLine's static properties are initialized in the pipeline thread.
79
- if (_usePSReadLine && Interlocked.Exchange(ref s_hasRunPsrlStaticCtor, 1) == 0)
+ // This is only needed for Temp sessions who only have a debug server.
80
+ if (_usePSReadLine && _useTempSession && Interlocked.Exchange(ref s_hasRunPsrlStaticCtor, 1) == 0)
81
{
82
// This must be run synchronously to ensure debugging works
83
_powerShellContextService
0 commit comments