mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-29 20:10:56 -08:00
parent
2a9104f22b
commit
197eaaa334
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue