Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aux window: add barrier waiting for styles to load #199882

Merged
merged 5 commits into from Dec 4, 2023

Conversation

connor4312
Copy link
Member

The debug toolbar needs to compute its size and positioning, which without this fails if executed in onDidChangeActiveContainer. The result of these changes is a new property on the ILayoutService.

@connor4312 connor4312 self-assigned this Dec 3, 2023
@connor4312 connor4312 enabled auto-merge (squash) December 3, 2023 07:05
The debug toolbar needs to compute its size and positioning, which without this fails if executed in onDidChangeActiveContainer. The result of these changes is a new property on the ILayoutService.
@bpasero bpasero added the workbench-auxwindow Issues related to use of auxiliary ("floating") windows. label Dec 3, 2023
this._onDidAddContainer.fire({ container: window.container, disposables: eventDisposables });

disposables.add(window.onDidLayout(dimension => this.handleContainerDidLayout(window.container, dimension)));
disposables.add(window.onWillClose(() => this.auxWindowStylesLoaded.delete(window.container)));
Copy link
Member

Choose a reason for hiding this comment

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

You can just add a toDisposable here, no need to listen to the close event. The idea is that the passed disposables share the same lifecycle as the window.

Copy link
Member

@bpasero bpasero left a comment

Choose a reason for hiding this comment

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

🆒

@bpasero bpasero added this to the December 2023 milestone Dec 4, 2023
@connor4312 connor4312 merged commit 7bc7686 into main Dec 4, 2023
6 checks passed
@connor4312 connor4312 deleted the connor4312/aux-window-css branch December 4, 2023 18:33
@github-actions github-actions bot locked and limited conversation to collaborators Jan 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
workbench-auxwindow Issues related to use of auxiliary ("floating") windows.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants