Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Track scroll in editor's context menu

Antonio Scandurra8aaa46a1b68e
diff --git a/crates/editor2/src/editor.rs b/crates/editor2/src/editor.rs
index 690f6c2278f..fa5f4dfa429 100644
--- a/crates/editor2/src/editor.rs
+++ b/crates/editor2/src/editor.rs
@@ -1370,6 +1370,7 @@ impl CompletionsMenu {
.collect()
},
)
+ .track_scroll(self.scroll_handle.clone())
.with_width_from_item(widest_completion_ix);
list.render_into_any()
@@ -1587,6 +1588,7 @@ impl CodeActionsMenu {
.elevation_1(cx)
.px_2()
.py_1()
+ .track_scroll(self.scroll_handle.clone())
.with_width_from_item(
self.actions
.iter()