@@ -176,7 +176,7 @@ Displays the ItemTree of the currently open file, for debugging.
176
176
177
177
178
178
=== Expand Macro Recursively
179
- **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/expand_macro.rs#L15 [expand_macro.rs]
179
+ **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/expand_macro.rs#L16 [expand_macro.rs]
180
180
181
181
Shows the full macro expansion of the macro at the current caret position.
182
182
@@ -223,7 +223,7 @@ image::https://user-images.githubusercontent.com/48062697/113020654-b42fc800-917
223
223
224
224
225
225
=== Find All References
226
- **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/references.rs#L41 [references.rs]
226
+ **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/references.rs#L42 [references.rs]
227
227
228
228
Shows all references of the item at the cursor location
229
229
@@ -334,7 +334,7 @@ Note: `?`, `|` and `->` do not currently trigger this behavior in the VSCode edi
334
334
335
335
336
336
=== Hover
337
- **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/hover.rs#L100 [hover.rs]
337
+ **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/hover.rs#L106 [hover.rs]
338
338
339
339
Shows additional information, like the type of an expression or the documentation for a definition when "focusing" code.
340
340
Focusing is usually hovering with a mouse, but can also be triggered with a shortcut.
@@ -343,7 +343,7 @@ image::https://user-images.githubusercontent.com/48062697/113020658-b5f98b80-917
343
343
344
344
345
345
=== Inlay Hints
346
- **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L452 [inlay_hints.rs]
346
+ **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L454 [inlay_hints.rs]
347
347
348
348
rust-analyzer shows additional information inline with the source code.
349
349
Editors usually render this using read-only virtual text snippets interspersed with code.
@@ -605,7 +605,7 @@ image::https://user-images.githubusercontent.com/48062697/113065580-04c21800-91b
605
605
606
606
607
607
=== Related Tests
608
- **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L212 [runnables.rs]
608
+ **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L213 [runnables.rs]
609
609
610
610
Provides a sneak peek of all tests where the current item is used.
611
611
@@ -620,7 +620,7 @@ the selected item. The context menu opens. Select **Peek Related Tests**.
620
620
621
621
622
622
=== Rename
623
- **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/rename.rs#L74 [rename.rs]
623
+ **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/rename.rs#L70 [rename.rs]
624
624
625
625
Renames the item below the cursor and all of its references
626
626
@@ -634,7 +634,7 @@ image::https://user-images.githubusercontent.com/48062697/113065582-055aae80-91b
634
634
635
635
636
636
=== Run
637
- **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L112 [runnables.rs]
637
+ **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L113 [runnables.rs]
638
638
639
639
Shows a popup suggesting to run a test/benchmark/binary **at the current cursor
640
640
location**. Super useful for repeatedly running just a single test. Do bind this
@@ -1003,7 +1003,7 @@ image::https://user-images.githubusercontent.com/48062697/113065588-068bdb80-91b
1003
1003
1004
1004
1005
1005
=== View Memory Layout
1006
- **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/view_memory_layout.rs#L73 [view_memory_layout.rs]
1006
+ **Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/view_memory_layout.rs#L74 [view_memory_layout.rs]
1007
1007
1008
1008
Displays the recursive memory layout of a datatype.
1009
1009
0 commit comments