aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/hover.rs
Commit message (Collapse)AuthorAgeFilesLines
* More principled approach for gotodef for field shorhandAleksey Kladov2020-03-021-1/+1
| | | | | Callers can now decide for themselves if they should prefer field or local definition. By default, it's the local.
* Merge #3367bors[bot]2020-02-281-3/+3
|\ | | | | | | | | | | | | | | | | | | | | 3367: Fix highlighting of const patterns r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * Classify name takes const patterns into accountAleksey Kladov2020-02-281-3/+3
| |
* | Simpilfy origin_range logicEdwin Cheng2020-02-281-0/+24
|/
* Fix typoEdwin Cheng2020-02-281-1/+1
|
* Remove hover::type_ofEdwin Cheng2020-02-281-74/+24
|
* Ignore hover on builtin macroEdwin Cheng2020-02-271-0/+25
|
* Skip trival token in original_rangeEdwin Cheng2020-02-261-0/+27
|
* Add recursive support in original_rangeEdwin Cheng2020-02-261-0/+21
|
* Refactor primary IDE APIAleksey Kladov2020-02-261-23/+22
| | | | | | | | | | This introduces the new type -- Semantics. Semantics maps SyntaxNodes to various semantic info, such as type, name resolution or macro expansions. To do so, Semantics maintains a HashMap which maps every node it saw to the file from which the node originated. This is enough to get all the necessary hir bits just from syntax.
* Merge NameDefinition and NameKindAleksey Kladov2020-02-191-11/+13
|
* Merge #3228bors[bot]2020-02-191-9/+17
|\ | | | | | | | | | | | | | | | | | | | | | | 3228: Use proper range for hover on macro arguments r=matklad a=edwin0cheng This PR use `original_range` to remap the range of found syntax node in `hover` and thus it should return the proper text range now. fixed #3000 fixed #3135 Co-authored-by: Edwin Cheng <[email protected]>
| * Use proper range for hover on macro argumentsEdwin Cheng2020-02-191-9/+17
| |
* | Fix a crash with non-ascii whitespace in doc-commentsShotaro Yamada2020-02-191-0/+17
|/
* RenameAleksey Kladov2020-02-071-2/+2
|
* Remove irrelevant distinctionAleksey Kladov2020-02-071-5/+0
|
* cleanup importsAleksey Kladov2020-02-061-1/+1
|
* Only new-style classificationAleksey Kladov2020-01-151-4/+5
|
* Proper handling local in hoverEdwin Cheng2020-01-101-1/+19
|
* Remove the index resolution from hoverkjeremy2019-12-201-58/+22
| | | | We are reasonably precise now to do this.
* Omit default types for hover pop-upsKirill Bulatov2019-12-191-3/+3
|
* Ensure hover shows full type declarationKirill Bulatov2019-12-191-0/+17
|
* for goto and hover pick the token based on a prioritysucccubbus2019-12-131-12/+18
|
* try both surrounding tokens for hoversucccubbus2019-12-131-4/+12
|
* add failing testsucccubbus2019-12-131-0/+7
|
* use find() instead of filter().next()succcubbus2019-12-131-1/+1
|
* Rename GenericParam -> TypeParamAleksey Kladov2019-12-071-1/+1
| | | | We don't have LifetimeParam yet, but they are planned!
* Rename Source -> InFileAleksey Kladov2019-11-281-1/+1
|
* rename ra_ide_api -> ra_ideAleksey Kladov2019-11-271-0/+730