mirror of
https://github.com/zed-industries/zed.git
synced 2026-07-09 16:00:35 +00:00
command_palette: Show scrollbar in command palette (#60239)
Enable the command palette picker scrollbar while preserving the one-shot reopen behavior. --- Release Notes: - N/A or Added/Fixed/Improved ... Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
This commit is contained in:
parent
7eb4cb2bfa
commit
78b6bf2fbe
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue