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.
RaiseDebuggerStoppedEvent()
1 parent 07a4241 commit fa7f647Copy full SHA for fa7f647
src/PowerShellEditorServices/Services/PowerShell/Debugging/PowerShellDebugContext.cs
@@ -167,7 +167,9 @@ private void RaiseDebuggerStoppedEvent()
167
{
168
if (!IsDebugServerActive)
169
170
- _languageServer.SendNotification("powerShell/startDebugger");
+ // NOTE: The language server is not necessarily connected, so this must be
171
+ // conditional access. This shows up in unit tests.
172
+ _languageServer?.SendNotification("powerShell/startDebugger");
173
}
174
175
DebuggerStopped?.Invoke(this, LastStopEventArgs);
0 commit comments