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
|
@ -279,7 +279,17 @@ impl AssistantPanel {
|
|||
});
|
||||
pane.toolbar().update(cx, |toolbar, cx| {
|
||||
toolbar.add_item(context_editor_toolbar.clone(), window, cx);
|
||||
toolbar.add_item(cx.new(|cx| BufferSearchBar::new(window, cx)), window, cx)
|
||||
toolbar.add_item(
|
||||
cx.new(|cx| {
|
||||
BufferSearchBar::new(
|
||||
Some(workspace.project().read(cx).languages().clone()),
|
||||
window,
|
||||
cx,
|
||||
)
|
||||
}),
|
||||
window,
|
||||
cx,
|
||||
)
|
||||
});
|
||||
pane
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue