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:
Xiaobo Liu 2026-07-02 21:23:17 +08:00 committed by GitHub
parent 7eb4cb2bfa
commit 78b6bf2fbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
});