Skip to content

Add back individual language server controls to status bar menu#45882

Merged
danilo-leal merged 2 commits intomainfrom
lsp-individual-controls
Jan 2, 2026
Merged

Add back individual language server controls to status bar menu#45882
danilo-leal merged 2 commits intomainfrom
lsp-individual-controls

Conversation

@danilo-leal
Copy link
Member

When we first introduced this menu to the status bar, we had it with individual controls per language server but ended up taking them out mainly because the keyboard navigation story wasn't great. Now that we have submenus, I think we can bring them back with a better UX, both for pointer and keyboard.

Screenshot.2025-12-30.at.6.42.mp4

cc @SomeoneToIgnore for any thoughts and review! I brought most of the code we had (around 6 months ago!) back and adapted what was needed for this to work now.

Release Notes:

  • Added the ability to restart and stop individual language servers from the UI as opposed to just them all.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 30, 2025
@SomeoneToIgnore
Copy link
Contributor

Superb!

If I've understood the code correctly, any error message (e.g. spoiled Cargo.toml) will add another submenu item?
That solves a bunch of odd conflicts with both message and logs available, thank you.

The only note I have is stylistic: at some point we might want to split that fill_menu method into a couple.

@danilo-leal danilo-leal merged commit 5120e63 into main Jan 2, 2026
24 checks passed
@danilo-leal danilo-leal deleted the lsp-individual-controls branch January 2, 2026 10:13
@SomeoneToIgnore
Copy link
Contributor

Have been using this and it's great, one functional caveat I see: enter does not open the submenu but hides the menu?
This seems not very intuitive when I select a server and press enter.

danilo-leal added a commit that referenced this pull request Jan 4, 2026
This PR makes hitting `enter`/`return` in a submenu trigger also open
and focus the submenu instead of closing the parent menu. Building on
feedback from @SomeoneToIgnore:
#45882 (comment).

Release Notes:

- N/A
rtfeldman pushed a commit that referenced this pull request Jan 5, 2026
This PR makes hitting `enter`/`return` in a submenu trigger also open
and focus the submenu instead of closing the parent menu. Building on
feedback from @SomeoneToIgnore:
#45882 (comment).

Release Notes:

- N/A
@libondev
Copy link
Contributor

libondev commented Jan 8, 2026

Doesn't seem to work very well when the error message is too long

2026-01-08.141241.mp4

LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
…ries#46032)

This PR makes hitting `enter`/`return` in a submenu trigger also open
and focus the submenu instead of closing the parent menu. Building on
feedback from @SomeoneToIgnore:
zed-industries#45882 (comment).

Release Notes:

- N/A
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
…ries#46032)

This PR makes hitting `enter`/`return` in a submenu trigger also open
and focus the submenu instead of closing the parent menu. Building on
feedback from @SomeoneToIgnore:
zed-industries#45882 (comment).

Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants