Skip to content

Commit

Permalink
fix(pwsh): use correct dbg prompt logic
Browse files Browse the repository at this point in the history
resolves #5153
  • Loading branch information
JanDeDobbeleer committed Jun 24, 2024
1 parent 2a9104f commit 197eaaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shell/scripts/omp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ Example:
# for details about the trick to detect a debugging context, see these comments:
# 1) https://github.com/JanDeDobbeleer/oh-my-posh/issues/2483#issuecomment-1175761456
# 2) https://github.com/JanDeDobbeleer/oh-my-posh/issues/2502#issuecomment-1179968052
if ($null -ne $PSDebugContext -or -not ((Get-PSCallStack).Location -join "").StartsWith("<")) {
# 3) https://github.com/JanDeDobbeleer/oh-my-posh/issues/5153
if ($Host.Runspace.Debugger.InBreakpoint) {
$script:PromptType = "debug"
return
}
Expand Down

0 comments on commit 197eaaa

Please sign in to comment.