From 05d51fa7fb6ccfd3932be801ae58a21bde4e7c80 Mon Sep 17 00:00:00 2001 From: Keith Hill Date: Tue, 20 Feb 2018 23:06:36 -0700 Subject: [PATCH] Eliminate duplicate dgb prompt --- .../Session/Host/EditorServicesPSHostUserInterface.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PowerShellEditorServices/Session/Host/EditorServicesPSHostUserInterface.cs b/src/PowerShellEditorServices/Session/Host/EditorServicesPSHostUserInterface.cs index 0935c9406..e5006f0f7 100644 --- a/src/PowerShellEditorServices/Session/Host/EditorServicesPSHostUserInterface.cs +++ b/src/PowerShellEditorServices/Session/Host/EditorServicesPSHostUserInterface.cs @@ -642,8 +642,8 @@ private async Task WritePromptStringToHost() .OfType() .FirstOrDefault() ?? "PS> "; - // Add the [DBG] prefix if we're stopped in the debugger - 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]")) { promptString = string.Format(