mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-31 13:57:26 -08:00
fix(pwsh): support additional debug prompt scenarios
This commit is contained in:
parent
54672cefdf
commit
a17ea7b989
|
@ -292,7 +292,7 @@ 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 (-not ((Get-PSCallStack).Location -join "").StartsWith("<")) {
|
if ($null -ne $PSDebugContext -or -not ((Get-PSCallStack).Location -join "").StartsWith("<")) {
|
||||||
$script:PromptType = "debug"
|
$script:PromptType = "debug"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue