Skip to content

Fix: git toolbar icon causing exceptions at boot#2904

Merged
abose merged 2 commits into
mainfrom
ai
May 14, 2026
Merged

Fix: git toolbar icon causing exceptions at boot#2904
abose merged 2 commits into
mainfrom
ai

Conversation

@abose
Copy link
Copy Markdown
Member

@abose abose commented May 14, 2026

No description provided.

abose added 2 commits May 14, 2026 09:34
…l events

WorkspaceManager.EVENT_WORKSPACE_PANEL_SHOWN/HIDDEN can fire during
project-open before the Git extension's init flow has registered
CMD_GIT_TOGGLE_PANEL. CommandManager.get(...) then returns undefined
and the .setChecked(...) call throws TypeError, which surfaced as
"Exception in 'panelShown' listener" in the Git main.js stack.

Wrap the lookup + setChecked in a small _setTogglePanelChecked helper
that no-ops when the command isn't registered yet — init will sync
the checked state on its own once it runs. Apply at the three call
sites (panel-shown listener, panel-hidden listener, and toggle()).
@sonarqubecloud
Copy link
Copy Markdown

@abose abose merged commit 45cc670 into main May 14, 2026
13 of 21 checks passed
@abose abose deleted the ai branch May 14, 2026 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant