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 f534ae6 commit 99f48aeCopy full SHA for 99f48ae
src/PowerShellEditorServices/Session/Host/EditorServicesPSHostUserInterface.cs
@@ -642,8 +642,8 @@ private async Task WritePromptStringToHost()
642
.OfType<string>()
643
.FirstOrDefault() ?? "PS> ";
644
645
- // Add the [DBG] prefix if we're stopped in the debugger
646
- if (this.powerShellContext.IsDebuggerStopped)
+ // Add the [DBG] prefix if we're stopped in the debugger and the prompt doesn't already have [DBG] in it
+ if (this.powerShellContext.IsDebuggerStopped && !promptString.Contains("[DBG]"))
647
{
648
promptString =
649
string.Format(
0 commit comments