aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/hover.rs
Commit message (Collapse)AuthorAgeFilesLines
* Apply suggestions from code reviewvsrs2020-06-081-4/+8
|
* Disable runnables lookup in macro-generated code.vsrs2020-06-061-1/+10
|
* Add Run|Debug hover actionsvsrs2020-06-061-4/+125
|
* Fix type parameter defaultsFlorian Diebold2020-06-051-1/+1
| | | | | They should not be applied in expression or pattern contexts, unless there are other explicitly given type args.
* Add enum hover action test.vsrs2020-06-051-0/+15
|
* Rebase on the latest master.vsrs2020-06-051-3/+3
|
* Code formattingvsrs2020-06-051-3/+2
|
* Add hover actions as LSP extensionvsrs2020-06-051-12/+122
|
* Consolidate documentation expansion and mergingAaron Loucks2020-06-031-53/+7
| | | | | | Removes the duplicated `expand_doc_attrs` and `merge_doc_comments_and_attrs` functions from `ra_ide` and exposes the same functionality via `ra_hir::Documentation::from_ast`.
* Add basic hover and completion doc tests for macro generated itemsAaron Loucks2020-06-031-1/+103
|
* Enable hover and autocomplete docs on macro generated itemsAaron Loucks2020-06-031-5/+50
|
* 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
|