Skip to content

agent sessions - fix endless loop with maximising 2nd sidebar#290286

Merged
bpasero merged 1 commit intomainfrom
ben/enthusiastic-grouse
Jan 25, 2026
Merged

agent sessions - fix endless loop with maximising 2nd sidebar#290286
bpasero merged 1 commit intomainfrom
ben/enthusiastic-grouse

Conversation

@bpasero
Copy link
Copy Markdown
Member

@bpasero bpasero commented Jan 25, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 25, 2026 19:33
@bpasero bpasero enabled auto-merge (squash) January 25, 2026 19:33
@bpasero bpasero self-assigned this Jan 25, 2026
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 25, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an endless loop bug that occurred when maximizing the auxiliary bar (2nd sidebar). The fix enhances the onDidChangePartVisibility event to include information about which part changed visibility and whether it became visible or hidden, allowing listeners to react more precisely and avoid triggering unnecessary cascading visibility changes.

Changes:

  • Enhanced onDidChangePartVisibility event to pass IPartVisibilityChangeEvent with partId and visible information
  • Updated the auxiliary bar maximization logic to only trigger when the sidebar or panel specifically hides (not on all visibility changes)
  • Updated the test service mock to match the new event signature

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/vs/workbench/services/layout/browser/layoutService.ts Added IPartVisibilityChangeEvent interface and updated onDidChangePartVisibility event signature to use it
src/vs/workbench/browser/layout.ts Updated emitter type and listener to use the new event payload, fixing the endless loop by only calling maybeMaximizeAuxiliaryBar() when sidebar/panel hides
src/vs/workbench/test/browser/workbenchTestServices.ts Updated test service mock to match the new event signature

@bpasero bpasero merged commit b3e1fad into main Jan 25, 2026
27 of 28 checks passed
@bpasero bpasero deleted the ben/enthusiastic-grouse branch January 25, 2026 20:28
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Mar 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants