Enable search within diagnostics pane (#22213)
Closes #16033 Addresses one part of #4475 Release Notes: - Added support for find and replace in diagnostics. Also causes keybindings that use search to now work (such as `*` and `#` vim bindings).
This commit is contained in:
parent
6bb21b1e5e
commit
3f40d76be4
1 changed files with 5 additions and 0 deletions
|
@ -41,6 +41,7 @@ use ui::{h_flex, prelude::*, Icon, IconName, Label};
|
||||||
use util::ResultExt;
|
use util::ResultExt;
|
||||||
use workspace::{
|
use workspace::{
|
||||||
item::{BreadcrumbText, Item, ItemEvent, ItemHandle, TabContentParams},
|
item::{BreadcrumbText, Item, ItemEvent, ItemHandle, TabContentParams},
|
||||||
|
searchable::SearchableItemHandle,
|
||||||
ItemNavHistory, ToolbarItemLocation, Workspace,
|
ItemNavHistory, ToolbarItemLocation, Workspace,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -810,6 +811,10 @@ impl Item for ProjectDiagnosticsEditor {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn as_searchable(&self, _: &View<Self>) -> Option<Box<dyn SearchableItemHandle>> {
|
||||||
|
Some(Box::new(self.editor.clone()))
|
||||||
|
}
|
||||||
|
|
||||||
fn breadcrumb_location(&self, _: &AppContext) -> ToolbarItemLocation {
|
fn breadcrumb_location(&self, _: &AppContext) -> ToolbarItemLocation {
|
||||||
ToolbarItemLocation::PrimaryLeft
|
ToolbarItemLocation::PrimaryLeft
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue