rust/crates
bors[bot] 202ad1e2d9
Merge #2552
2552: fix goto definition when inbetween tokens r=matklad a=succcubbus

fixes both goto_definition and goto_type_definition.
before, when running goto between some non-trivia token and an
identifier, goto would be attempted for the non-trivia token.
but this does not make sense for e.g. L_PAREN or COLONCOLON only for
IDENTs.

this resulted in goto actions not working when running them on the first
character of some identifier e.g. for `module::<|>method()` or
`method(<|>parameter)`.

now only IDENTs will be searched for in goto actions, though i'm not sure
if this is correct or if goto should also work for some other token types.  

Co-authored-by: succcubbus <16743652+succcubbus@users.noreply.github.com>
2019-12-14 17:20:18 +00:00
..
ra_arena
ra_assists Remove some unwraps in add_new 2019-12-13 18:28:01 -05:00
ra_batch Support setting cargo features 2019-12-13 18:16:34 +08:00
ra_cfg
ra_cli Remove ty from code_model 2019-12-08 12:44:14 +01:00
ra_db Run rustfmt with respect to Cargo.toml edition 2019-12-04 23:05:01 +01:00
ra_fmt
ra_hir Use path macro 2019-12-13 22:33:38 +01:00
ra_hir_def Use path macro 2019-12-13 22:33:38 +01:00
ra_hir_expand Rename N! to name! 2019-12-13 22:33:38 +01:00
ra_hir_ty Use path macro 2019-12-13 22:33:38 +01:00
ra_ide for goto and hover pick the token based on a priority 2019-12-13 22:00:05 +01:00
ra_lsp_server Merge #2548 2019-12-14 11:57:49 +00:00
ra_mbe Refactor tt::Delimiter 2019-12-13 21:53:34 +08:00
ra_parser Fix hir for ast::UnionDef 2019-11-25 17:50:49 +03:00
ra_prof
ra_project_model Support setting cargo features 2019-12-13 18:16:34 +08:00
ra_syntax Avoid recompiling serde 2019-12-12 14:11:06 +01:00
ra_text_edit
ra_tt Refactor tt::Delimiter 2019-12-13 21:53:34 +08:00
ra_vfs_glob
test_utils Skip slow tests by default 2019-12-07 13:19:42 +01:00