ZIm/crates/editor/src
Congyu 21022f1644
Fix cmd+click find all references fallback not working in Vim mode (#10684)
Exclude go-to-definition links returned by LSP that points to the
current cursor position. This fixes #10392 . Related PR #9243 .

The previous implementation first performs go-to-definition, and if the
selected text covers the clicked position, it figures out that it is
already clicking on a definition, and should instead look for
references.

However, the selected range does not necessarily cover the clicked
position after clicking on a definition, as in VIM mode.

After the PR, if cmd+click on definitions, the definition links would be
an empty list, so no go-to-definition is performed, and
find-all-references is performed instead.

Release Notes:

- Fixed #10392 , now `cmd+click`ing to find all references works in vim
mode.
2024-04-25 09:07:14 -06:00
..
display_map Merge ElementContext into WindowContext (#10979) 2024-04-25 12:54:39 +02:00
git Add pull requests to git blame tooltip (#10784) 2024-04-19 18:54:20 +02:00
scroll Introduce autoscroll support for elements (#10889) 2024-04-23 15:14:22 +02:00
test Improve the ergonomics of creating local buffers (#10347) 2024-04-10 08:32:51 -06:00
actions.rs Add a command to expand the context for a multibuffer (#10300) 2024-04-19 14:27:56 -07:00
blame_entry_tooltip.rs Merge ElementContext into WindowContext (#10979) 2024-04-25 12:54:39 +02:00
blink_manager.rs Remove 2 suffix for editor 2024-01-03 10:58:57 -08:00
debounced_delay.rs Add debounce for re-querying completion documentation 2024-01-31 09:50:26 -05:00
display_map.rs Improve the ergonomics of creating local buffers (#10347) 2024-04-10 08:32:51 -06:00
editor.rs Fix cmd+click find all references fallback not working in Vim mode (#10684) 2024-04-25 09:07:14 -06:00
editor_settings.rs Fix scrollbar marker settings (#10530) 2024-04-16 09:21:22 +02:00
editor_tests.rs Improve the ergonomics of creating local buffers (#10347) 2024-04-10 08:32:51 -06:00
element.rs Fix single-line editors not working anymore (#10994) 2024-04-25 17:04:20 +02:00
git.rs Add git blame (#8889) 2024-03-28 18:32:11 +01:00
highlight_matching_bracket.rs Compute scrollbar markers asynchronously (#10080) 2024-04-03 12:21:17 +02:00
hover_links.rs Fix cmd+click find all references fallback not working in Vim mode (#10684) 2024-04-25 09:07:14 -06:00
hover_popover.rs Remove if-not-else patterns (#10402) 2024-04-11 03:48:06 -04:00
inlay_hint_cache.rs Add a setting for custom associations between languages and files (#9290) 2024-03-13 10:23:30 -07:00
inline_completion_provider.rs Introduce InlineCompletionProvider (#9777) 2024-03-26 13:28:06 +01:00
items.rs remote projects per user (#10594) 2024-04-23 15:33:09 -06:00
mouse_context_menu.rs Add "Open in Terminal" context menu entries for project panel, editor and tab context menus (#10741) 2024-04-19 01:43:46 +03:00
movement.rs Adjust left movement when soft_wrap mode is used (#10464) 2024-04-12 10:36:31 -06:00
persistence.rs wip 2023-01-25 11:32:19 -08:00
rust_analyzer_ext.rs Enable clippy::useless_conversion (#8767) 2024-03-03 10:22:55 -05:00
scroll.rs Introduce autoscroll support for elements (#10889) 2024-04-23 15:14:22 +02:00
selections_collection.rs Enable clippy::clone_on_copy (#8728) 2024-03-02 17:37:48 -05:00
test.rs Fix flickering (#9012) 2024-03-11 10:45:57 +01:00