WIP jump to definition with mouse

This commit is contained in:
Keith Simmons 2022-05-31 10:17:29 -07:00
parent 96cdf3b9dd
commit 0c4f798a2d
2 changed files with 25 additions and 5 deletions

View file

@ -113,6 +113,11 @@ pub struct ConfirmCodeAction {
pub item_ix: Option<usize>,
}
#[derive(Clone, Default)]
pub struct GoToDefinitionAt {
pub location: Option<DisplayPoint>,
}
actions!(
editor,
[
@ -173,10 +178,10 @@ actions!(
ToggleComments,
SelectLargerSyntaxNode,
SelectSmallerSyntaxNode,
GoToDefinition,
MoveToEnclosingBracket,
UndoSelection,
RedoSelection,
GoToDefinition,
FindAllReferences,
Rename,
ConfirmRename,
@ -204,7 +209,7 @@ impl_actions!(
]
);
impl_internal_actions!(editor, [Scroll, Select]);
impl_internal_actions!(editor, [Scroll, Select, GoToDefinitionAt]);
enum DocumentHighlightRead {}
enum DocumentHighlightWrite {}