Skip to content

Commit 99f48ae

Browse files
authored
Eliminate duplicate dgb prompt (#627)
1 parent f534ae6 commit 99f48ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PowerShellEditorServices/Session/Host/EditorServicesPSHostUserInterface.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,8 +642,8 @@ private async Task WritePromptStringToHost()
642642
.OfType<string>()
643643
.FirstOrDefault() ?? "PS> ";
644644

645-
// Add the [DBG] prefix if we're stopped in the debugger
646-
if (this.powerShellContext.IsDebuggerStopped)
645+
// Add the [DBG] prefix if we're stopped in the debugger and the prompt doesn't already have [DBG] in it
646+
if (this.powerShellContext.IsDebuggerStopped && !promptString.Contains("[DBG]"))
647647
{
648648
promptString =
649649
string.Format(

0 commit comments

Comments
 (0)