@@ -68,7 +68,7 @@ image::https://user-images.githubusercontent.com/48062697/113020673-b85be580-917
68
68
69
69
70
70
=== Completion With Autoimport
71
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-completion/src/completions/flyimport.rs#L18 [flyimport.rs]
71
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-completion/src/completions/flyimport.rs#L20 [flyimport.rs]
72
72
73
73
When completing names in the current scope, proposes additional imports from other modules or crates,
74
74
if they can be qualified in the scope, and their name contains all symbols from the completion input.
@@ -237,7 +237,7 @@ image::https://user-images.githubusercontent.com/48062697/113020670-b7c34f00-917
237
237
238
238
239
239
=== Folding
240
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/folding_ranges.rs#L35 [folding_ranges.rs]
240
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/folding_ranges.rs#L36 [folding_ranges.rs]
241
241
242
242
Defines folding regions for curly braced blocks, runs of consecutive use, mod, const or static
243
243
items, and `region` / `endregion` comment markers.
@@ -320,10 +320,11 @@ image::https://user-images.githubusercontent.com/48062697/113020657-b560f500-917
320
320
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/highlight_related.rs#L36[highlight_related.rs]
321
321
322
322
Highlights constructs related to the thing under the cursor:
323
- - if on an identifier, highlights all references to that identifier in the current file
324
- - if on an `async` or `await token, highlights all yield points for that async context
325
- - if on a `return` or `fn` keyword, `?` character or `->` return type arrow, highlights all exit points for that context
326
- - if on a `break`, `loop`, `while` or `for` token, highlights all break points for that loop or block context
323
+
324
+ . if on an identifier, highlights all references to that identifier in the current file
325
+ . if on an `async` or `await token, highlights all yield points for that async context
326
+ . if on a `return` or `fn` keyword, `?` character or `->` return type arrow, highlights all exit points for that context
327
+ . if on a `break`, `loop`, `while` or `for` token, highlights all break points for that loop or block context
327
328
328
329
Note: `?` and `->` do not currently trigger this behavior in the VSCode editor.
329
330
@@ -383,7 +384,7 @@ image::https://user-images.githubusercontent.com/48062697/113020661-b6922200-917
383
384
384
385
385
386
=== Magic Completions
386
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-completion/src/lib.rs#L39 [lib.rs]
387
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-completion/src/lib.rs#L40 [lib.rs]
387
388
388
389
In addition to usual reference completion, rust-analyzer provides some ✨magic✨
389
390
completions as well:
0 commit comments