mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-02 05:41:10 -08:00
parent
2a9104f22b
commit
197eaaa334
|
@ -359,7 +359,8 @@ Example:
|
||||||
# for details about the trick to detect a debugging context, see these comments:
|
# 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
|
# 1) https://github.com/JanDeDobbeleer/oh-my-posh/issues/2483#issuecomment-1175761456
|
||||||
# 2) https://github.com/JanDeDobbeleer/oh-my-posh/issues/2502#issuecomment-1179968052
|
# 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"
|
$script:PromptType = "debug"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue