This commit is contained in:
Antonio Scandurra
2022-03-18 18:07:03 +01:00
parent 7d7e10598a
commit f4520d4184
3 changed files with 18 additions and 9 deletions
+1 -1
View File
@@ -341,7 +341,7 @@ pub fn init(cx: &mut MutableAppContext) {
cx.add_async_action(Editor::find_all_references);
workspace::register_project_item::<Editor>(cx);
workspace::register_followed_item::<Editor>(cx);
workspace::register_followable_item::<Editor>(cx);
}
trait SelectionExt {
+2 -2
View File
@@ -11,10 +11,10 @@ use std::{fmt::Write, path::PathBuf};
use text::{Point, Selection};
use util::ResultExt;
use workspace::{
FollowedItem, Item, ItemHandle, ItemNavHistory, ProjectItem, Settings, StatusItemView,
FollowableItem, Item, ItemHandle, ItemNavHistory, ProjectItem, Settings, StatusItemView,
};
impl FollowedItem for Editor {
impl FollowableItem for Editor {
fn for_state_message(
pane: ViewHandle<workspace::Pane>,
project: ModelHandle<Project>,