aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/goto_definition.rs
Commit message (Collapse)AuthorAgeFilesLines
* Don't bother with focus range for navigation to localsAleksey Kladov2019-12-181-0/+41
|
* Refactor goto tests to always specify textsAleksey Kladov2019-12-181-50/+74
|
* Add blank lines for readabilityAleksey Kladov2019-12-181-0/+4
|
* Merge #2562bors[bot]2019-12-171-8/+26
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2562: Fix NavigationTarget ranges r=matklad a=edwin0cheng Fix the issue described in https://github.com/rust-analyzer/rust-analyzer/pull/2544#issuecomment-565572553 This PR change the order for finding `full_range` of `focus_range` in following orders: 1. map both ranges to macro_call 2. map focus range to a token inside macro call, and full range to the whole of macro call 3. map both ranges to the whole of macro call And fix the corresponding tests and make these tests easily to follow. Co-authored-by: Edwin Cheng <[email protected]>
| * Fix original_source find orderEdwin Cheng2019-12-141-8/+26
| |
* | for goto and hover pick the token based on a prioritysucccubbus2019-12-131-3/+15
| |
* | add tests for goto on tuple fieldssucccubbus2019-12-131-0/+16
| |
* | fix goto definition when inbetween tokenssucccubbus2019-12-131-2/+14
|/ | | | | | | | 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. now only IDENTs will be searched for in goto actions.
* Report correct original range in goto_definitionAleksey Kladov2019-12-091-9/+7
|
* Fix range in goto_through_format testFlorian Diebold2019-12-081-1/+1
|
* Fix expansion of format_argsFlorian Diebold2019-12-081-1/+0
|
* Rename GenericParam -> TypeParamAleksey Kladov2019-12-071-1/+1
| | | | We don't have LifetimeParam yet, but they are planned!
* Gotodef for TypeParametersAleksey Kladov2019-12-071-7/+18
|
* Make the goto_through_format test actually fail :(Florian Diebold2019-12-061-0/+3
|
* Try to make go to definition work in format!Florian Diebold2019-12-061-0/+27
| | | | | | | SourceAnalyzer didn't work properly within expression macro expansions because it didn't find the enclosing function. Fix this by going up the expansion chain to find ancestors. This makes the test work, but apparently in real usage it's still not working.
* Rename Source -> InFileAleksey Kladov2019-11-281-4/+4
|
* rename ra_ide_api -> ra_ideAleksey Kladov2019-11-271-0/+696