Wrap back around in context menu properly (#34112)

When navigating back in the context menu, it was not possible to get
past first element, if it was not selectable.
The other way around works, hence the fix.

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2025-07-09 14:44:29 +03:00 committed by GitHub
parent 1569b662ff
commit 45d200f2f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 81 additions and 13 deletions

View file

@ -735,8 +735,6 @@ impl LspTool {
state.update(cx, |state, cx| state.fill_menu(menu, cx))
});
lsp_tool.lsp_menu = Some(menu.clone());
// TODO kb will this work?
// what about the selections?
lsp_tool.popover_menu_handle.refresh_menu(
window,
cx,