multi_workspace: Move up action handler and modal rendering from workspace to multi workspace - #49995
Merged
Conversation
Co-authored-by: cameron <cameron.studdstreet@gmail.com>
Co-authored-by: cameron <cameron.studdstreet@gmail.com>
Anthony-Eid
enabled auto-merge (squash)
February 25, 2026 23:28
Anthony-Eid
added a commit
that referenced
this pull request
Feb 26, 2026
The bug occurred because we weren't setting the right text style on the root div anymore (Multiworkspace), which was introduce in #49995
3 tasks
Anthony-Eid
added a commit
that referenced
this pull request
Feb 26, 2026
The bug occurred because we weren't setting the right text style on the root div anymore (Multiworkspace), which was introduce in #49995 ### Before <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/eca71731-5009-4e47-a948-d80eb3f13938" /> ### After <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/75d8c591-f539-413e-a171-71e4fc847f13" /> Before you mark this PR as ready for review, make sure that you have: - [ ] Added a solid test coverage and/or screenshots from doing manual testing - [x] Done a self-review taking into account security and performance aspects - [x] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - N/A
rtfeldman
pushed a commit
that referenced
this pull request
Feb 27, 2026
…space to multi workspace (#49995) Now that MultiWorkspace is the root view, actions bound to the `Workspace` key context wouldn't be dispatched when `Workspace` is not in the key context stack (e.g. when the sidebar is focused). To fix this, the `Workspace` key context and action handlers are moved up to the MultiWorkspace rendering layer. This avoids introducing a new key context and the keymap migration that would require. This PR also moves modal rendering up a layer so modals are centered within the window (MultiWorkspace element) instead of the Workspace element. ### Before <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/233a0b75-47a1-423a-8394-c6a1b50fb991" /> ### After <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/9c51c839-e524-4ef8-afc9-9429b028def0" /> Before you mark this PR as ready for review, make sure that you have: - [x] Added a solid test coverage and/or screenshots from doing manual testing - [x] Done a self-review taking into account security and performance aspects - [x] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - N/A --------- Co-authored-by: cameron <cameron.studdstreet@gmail.com>
rtfeldman
pushed a commit
that referenced
this pull request
Feb 27, 2026
The bug occurred because we weren't setting the right text style on the root div anymore (Multiworkspace), which was introduce in #49995 ### Before <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/eca71731-5009-4e47-a948-d80eb3f13938" /> ### After <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/75d8c591-f539-413e-a171-71e4fc847f13" /> Before you mark this PR as ready for review, make sure that you have: - [ ] Added a solid test coverage and/or screenshots from doing manual testing - [x] Done a self-review taking into account security and performance aspects - [x] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - N/A
tahayvr
pushed a commit
to tahayvr/zed
that referenced
this pull request
Mar 4, 2026
…space to multi workspace (zed-industries#49995) Now that MultiWorkspace is the root view, actions bound to the `Workspace` key context wouldn't be dispatched when `Workspace` is not in the key context stack (e.g. when the sidebar is focused). To fix this, the `Workspace` key context and action handlers are moved up to the MultiWorkspace rendering layer. This avoids introducing a new key context and the keymap migration that would require. This PR also moves modal rendering up a layer so modals are centered within the window (MultiWorkspace element) instead of the Workspace element. ### Before <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/233a0b75-47a1-423a-8394-c6a1b50fb991" /> ### After <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/9c51c839-e524-4ef8-afc9-9429b028def0" /> Before you mark this PR as ready for review, make sure that you have: - [x] Added a solid test coverage and/or screenshots from doing manual testing - [x] Done a self-review taking into account security and performance aspects - [x] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - N/A --------- Co-authored-by: cameron <cameron.studdstreet@gmail.com>
tahayvr
pushed a commit
to tahayvr/zed
that referenced
this pull request
Mar 4, 2026
The bug occurred because we weren't setting the right text style on the root div anymore (Multiworkspace), which was introduce in zed-industries#49995 ### Before <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/eca71731-5009-4e47-a948-d80eb3f13938" /> ### After <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/75d8c591-f539-413e-a171-71e4fc847f13" /> Before you mark this PR as ready for review, make sure that you have: - [ ] Added a solid test coverage and/or screenshots from doing manual testing - [x] Done a self-review taking into account security and performance aspects - [x] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - N/A
naaiyy
pushed a commit
to Glass-HQ/Glass
that referenced
this pull request
Mar 6, 2026
The bug occurred because we weren't setting the right text style on the root div anymore (Multiworkspace), which was introduce in zed-industries#49995 <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/eca71731-5009-4e47-a948-d80eb3f13938" /> <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/75d8c591-f539-413e-a171-71e4fc847f13" /> Before you mark this PR as ready for review, make sure that you have: - [ ] Added a solid test coverage and/or screenshots from doing manual testing - [x] Done a self-review taking into account security and performance aspects - [x] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - N/A
jonx
pushed a commit
to jonx/zed-aros
that referenced
this pull request
Jul 17, 2026
…space to multi workspace (zed-industries#49995) Now that MultiWorkspace is the root view, actions bound to the `Workspace` key context wouldn't be dispatched when `Workspace` is not in the key context stack (e.g. when the sidebar is focused). To fix this, the `Workspace` key context and action handlers are moved up to the MultiWorkspace rendering layer. This avoids introducing a new key context and the keymap migration that would require. This PR also moves modal rendering up a layer so modals are centered within the window (MultiWorkspace element) instead of the Workspace element. ### Before <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/233a0b75-47a1-423a-8394-c6a1b50fb991" /> ### After <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/9c51c839-e524-4ef8-afc9-9429b028def0" /> Before you mark this PR as ready for review, make sure that you have: - [x] Added a solid test coverage and/or screenshots from doing manual testing - [x] Done a self-review taking into account security and performance aspects - [x] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - N/A --------- Co-authored-by: cameron <cameron.studdstreet@gmail.com>
jonx
pushed a commit
to jonx/zed-aros
that referenced
this pull request
Jul 17, 2026
The bug occurred because we weren't setting the right text style on the root div anymore (Multiworkspace), which was introduce in zed-industries#49995 ### Before <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/eca71731-5009-4e47-a948-d80eb3f13938" /> ### After <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/75d8c591-f539-413e-a171-71e4fc847f13" /> Before you mark this PR as ready for review, make sure that you have: - [ ] Added a solid test coverage and/or screenshots from doing manual testing - [x] Done a self-review taking into account security and performance aspects - [x] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - N/A
jolutz
pushed a commit
to jolutz/zed
that referenced
this pull request
Aug 8, 2026
…space to multi workspace (zed-industries#49995) Now that MultiWorkspace is the root view, actions bound to the `Workspace` key context wouldn't be dispatched when `Workspace` is not in the key context stack (e.g. when the sidebar is focused). To fix this, the `Workspace` key context and action handlers are moved up to the MultiWorkspace rendering layer. This avoids introducing a new key context and the keymap migration that would require. This PR also moves modal rendering up a layer so modals are centered within the window (MultiWorkspace element) instead of the Workspace element. ### Before <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/233a0b75-47a1-423a-8394-c6a1b50fb991" /> ### After <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/9c51c839-e524-4ef8-afc9-9429b028def0" /> Before you mark this PR as ready for review, make sure that you have: - [x] Added a solid test coverage and/or screenshots from doing manual testing - [x] Done a self-review taking into account security and performance aspects - [x] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - N/A --------- Co-authored-by: cameron <cameron.studdstreet@gmail.com>
jolutz
pushed a commit
to jolutz/zed
that referenced
this pull request
Aug 8, 2026
The bug occurred because we weren't setting the right text style on the root div anymore (Multiworkspace), which was introduce in zed-industries#49995 ### Before <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/eca71731-5009-4e47-a948-d80eb3f13938" /> ### After <img width="3248" height="2122" alt="image" src="https://github.com/user-attachments/assets/75d8c591-f539-413e-a171-71e4fc847f13" /> Before you mark this PR as ready for review, make sure that you have: - [ ] Added a solid test coverage and/or screenshots from doing manual testing - [x] Done a self-review taking into account security and performance aspects - [x] Aligned any UI changes with the [UI checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) Release Notes: - N/A
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Now that MultiWorkspace is the root view, actions bound to the
Workspacekey context wouldn't be dispatched whenWorkspaceis not in the key context stack (e.g. when the sidebar is focused). To fix this, theWorkspacekey context and action handlers are moved up to the MultiWorkspace rendering layer. This avoids introducing a new key context and the keymap migration that would require.This PR also moves modal rendering up a layer so modals are centered within the window (MultiWorkspace element) instead of the Workspace element.
Before
Before you mark this PR as ready for review, make sure that you have:
Release Notes: