Add regex highlights in the query input (#25005)
Closes https://github.com/zed-industries/zed/discussions/24994 Release Notes: - Added regex highlights in the query input
This commit is contained in:
parent
91c99baaf2
commit
b5d85b638a
6 changed files with 117 additions and 35 deletions
|
@ -885,7 +885,13 @@ fn initialize_pane(
|
|||
toolbar.add_item(multibuffer_hint, window, cx);
|
||||
let breadcrumbs = cx.new(|_| Breadcrumbs::new());
|
||||
toolbar.add_item(breadcrumbs, window, cx);
|
||||
let buffer_search_bar = cx.new(|cx| search::BufferSearchBar::new(window, cx));
|
||||
let buffer_search_bar = cx.new(|cx| {
|
||||
search::BufferSearchBar::new(
|
||||
Some(workspace.project().read(cx).languages().clone()),
|
||||
window,
|
||||
cx,
|
||||
)
|
||||
});
|
||||
toolbar.add_item(buffer_search_bar.clone(), window, cx);
|
||||
let proposed_change_bar = cx.new(|_| ProposedChangesEditorToolbar::new());
|
||||
toolbar.add_item(proposed_change_bar, window, cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue