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.

command_palette: Show scrollbar in command palette (#60239)

Xiaobo Liu78b6bf2fbe2a
diff --git a/crates/command_palette/src/command_palette.rs b/crates/command_palette/src/command_palette.rs
index 3b8a6e770e4..e1eddf01c28 100644
--- a/crates/command_palette/src/command_palette.rs
+++ b/crates/command_palette/src/command_palette.rs
@@ -126,7 +126,9 @@ impl CommandPalette {
let picker = cx.new(|cx| {
// One-shot action; there's nothing to reopen.
- let picker = Picker::uniform_list(delegate, window, cx).reopenable(false, cx);
+ let picker = Picker::uniform_list(delegate, window, cx)
+ .reopenable(false, cx)
+ .show_scrollbar(true);
picker.set_query(query, window, cx);
picker
});