Remove Select internal action

This commit is contained in:
Antonio Scandurra 2023-04-28 12:33:22 +02:00
parent 5215adbd3f
commit a978f3fe4f
3 changed files with 54 additions and 45 deletions

View file

@ -8,8 +8,7 @@ use util::TryFutureExt;
use workspace::Workspace;
use crate::{
Anchor, DisplayPoint, Editor, EditorSnapshot, GoToDefinition, GoToTypeDefinition, Select,
SelectPhase,
Anchor, DisplayPoint, Editor, EditorSnapshot, GoToDefinition, GoToTypeDefinition, SelectPhase,
};
#[derive(Clone, PartialEq)]
@ -334,11 +333,11 @@ fn go_to_fetched_definition_of_kind(
} else {
editor_handle.update(cx, |editor, cx| {
editor.select(
&Select(SelectPhase::Begin {
SelectPhase::Begin {
position: point,
add: false,
click_count: 1,
}),
},
cx,
);
});