Closed sba923 closed 3 months ago
This is a bug in vscode. They're working on it.
Oh, good to know. Would you happen to have the VScode issue reference, by any chance?
Thanks for the link.
For those affected by the same issue: this workaround works for me: https://github.com/microsoft/vscode/issues/212130#issuecomment-2156087746
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Code of Conduct
What happened?
A recent update has introduced the following issue: the prompt generated by
oh-my-posh
isn't rendered properly by the VScode v2024.3.2 (pre-release) PowerShell extension:Theme
{ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "shell_integration": true, "blocks": [ { "alignment": "left", "segments": [ { "background": "#86e2f1", "foreground": "#2b2b2b", "leading_diamond": "\ue0b6", "style": "diamond", "type": "session" }, { "background": "#ff8c00", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { "style": "folder" }, "style": "powerline", "type": "path" }, { "background": "#0077c2", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { "mapped_shell_names": { "pwsh": "PS" } }, "style": "powerline", "type": "shell", "template": "{{ if ne .Shell \"pwsh\" }} {{ .Name }} {{ end }}" }, { "background": "#cf9e11", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "style": "powerline", "type": "text", "template": "{{ if .WSL }} {{ \"WSL\" }} {{ end }}" }, { "background": "#fffb38", "background_templates": [ "{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}", "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}", "{{ if gt .Ahead 0 }}#B388FF{{ end }}", "{{ if gt .Behind 0 }}#B388FF{{ end }}" ], "foreground": "#193549", "powerline_symbol": "\ue0b0", "properties": { "branch_max_length": 25, "fetch_stash_count": true, "fetch_status": true, "fetch_upstream_icon": true }, "style": "powerline", "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", "trailing_diamond": "\ue0b4", "type": "git" }, { "background": "#6CA35E", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { "fetch_version": true }, "style": "powerline", "template": " \uf898 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", "type": "node" }, { "background": "#6CA35E", "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { "fetch_version": true }, "style": "powerline", "type": "dotnet" }, { "background_templates": [ "{{if contains \"default\" .Profile}}#FFA400{{end}}", "{{if contains \"jan\" .Profile}}#f1184c{{end}}" ], "foreground": "#ffffff", "background": "#ff2222", "powerline_symbol": "\ue0b0", "properties": { "display_default": false }, "style": "powerline", "template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ", "type": "aws" }, { "background": "#ff0000", "foreground": "#ffff66", "powerline_symbol": "\ue0b0", "style": "powerline", "type": "root" }, { "background": "#83769c", "foreground": "#ffffff", "properties": { "always_enabled": true }, "template": "\u231b{{ .FormattedMs }}\u2800", "powerline_symbol": "\ue0b0", "style":"powerline", "type": "executiontime" }, { "background": "#2e9599", "background_templates": [ "{{ if (ne .Code 0) }}#f1184c{{ end }}" ], "foreground": "#ffffff", "powerline_symbol": "\ue0b0", "properties": { "always_enabled": true, "status_template": "{{ if ne .Code 0 }}\uf071 ({{ if or (gt .Code 255) (lt .Code 0) }}{{ .Code | hresult }}{{ else }}{{.Code}}{{ end }}){{ else }}\uf00c{{ end }}", "status_separator": " " }, "style": "diamond", "trailing_diamond": "\ue0b4", "type": "status" } ], "type": "prompt" }, { "alignment": "right", "segments": [ { "background": "#f36943", "background_templates": [ "{{if eq \"Charging\" .State.String}}#40c4ff{{end}}", "{{if eq \"Discharging\" .State.String}}#ff5722{{end}}", "{{if eq \"Full\" .State.String}}#4caf50{{end}}" ], "foreground": "#ffffff", "leading_diamond": "\ue0b6", "properties": { "charged_icon": "\ue22f ", "charging_icon": "\ue234 ", "discharging_icon": "\ue231 " }, "style": "diamond", "template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 ", "type": "battery" }, { "background": "#2e9599", "foreground": "#111111", "powerline_symbol": "\ue0b0", "style": "plain", "template": "<background,parentBackground>{{ if .Segments.Contains \"Battery\" }}\ue0b2{{ else }}\ue0b6{{ end }}</> {{ .CurrentDate | date .Format }} <background,transparent>\ue0b4</>", "type": "time" } ], "type": "rprompt" } ], "final_space": true, "version": 2, "console_title": true, "console_title_template": "{{ .Folder }}", "console_title_style": "template" }
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output