aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/hover.rs
Commit message (Collapse)AuthorAgeFilesLines
* Move the rest of the features to generated docsAleksey Kladov2020-05-311-57/+59
|
* Hover tooltip module name is monospace once againAaron Loucks2020-05-261-7/+9
| | | | | | | | | | The line separator is moved below the function signature to split regions between the docs. This is very similar to how IntelliJ displays tooltips. Adding an additional separator between the module name and function signature currently has rendering issues. Fixes #4594 Alternative to #4615
* Update tests to accept new hover formattingGalilée 'Bill' Enguehard2020-05-221-4/+13
|
* Fix completion and hover for module and function of same nameHasan Ali2020-05-161-0/+17
|
* do not truncate display for hoverBenjamin Coenen2020-05-061-2/+2
| | | | Signed-off-by: Benjamin Coenen <[email protected]>
* do not truncate display for hoverBenjamin Coenen2020-05-061-1/+42
| | | | Signed-off-by: Benjamin Coenen <[email protected]>
* do not truncate display for hover #4311Benjamin Coenen2020-05-051-1/+1
| | | | Signed-off-by: Benjamin Coenen <[email protected]>
* Test for unsafe traitDiana2020-05-011-0/+11
|
* Add tests of showing function qualifiersoxalica2020-04-301-0/+25
|
* Rename StructField -> FieldAleksey Kladov2020-04-251-2/+2
|
* Convert code to text-sizeAleksey Kladov2020-04-251-1/+1
|
* Remove dat fixmeVeetaha2020-03-161-1/+1
|
* Use Display instead of a custom methodKirill Bulatov2020-03-161-16/+11
|
* Fix crate display name dashesKirill Bulatov2020-03-161-11/+16
|
* ra_ide: refactor readonly String -> &strveetaha2020-03-161-9/+7
|
* ra_ide: remove dead code in HoverResultveetaha2020-03-151-41/+5
|
* Add test on hoverEdwin Cheng2020-03-111-0/+19
|
* Implement dummy assert macroEdwin Cheng2020-03-111-6/+2
|
* Use `Index` for CrateGraphAleksey Kladov2020-03-091-1/+1
|
* Less abstract CrateData apiKirill Bulatov2020-03-091-2/+2
|
* Consider crate declaration namesKirill Bulatov2020-03-081-30/+13
|
* Show mod path in hover tooltipKirill Bulatov2020-03-071-25/+94
|
* Fix importsAleksey Kladov2020-03-031-2/+1
|
* Rename NameDefinition -> DefinitionAleksey Kladov2020-03-031-7/+7
|
* 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
|