@@ -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#L17 [flyimport.rs]
71
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_completion/src/completions/flyimport.rs#L18 [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.
@@ -610,9 +610,11 @@ Rust-analyzer currently emits the following token tags:
610
610
- For items:
611
611
+
612
612
[horizontal]
613
+ attribute:: Emitted for attribute macros.
613
614
enum:: Emitted for enums.
614
615
function:: Emitted for free-standing functions.
615
- macro:: Emitted for macros.
616
+ derive:: Emitted for derive macros.
617
+ macro:: Emitted for function-like macros.
616
618
method:: Emitted for associated functions, also knowns as methods.
617
619
namespace:: Emitted for modules.
618
620
struct:: Emitted for structs.
@@ -643,6 +645,7 @@ logical:: Emitted for the logical operators `||`, `&&`, `!`.
643
645
+
644
646
[horizontal]
645
647
punctuation:: Emitted for general punctuation.
648
+ attributeBracket:: Emitted for attribute invocation brackets, that is the `#[` and `]` tokens.
646
649
angle:: Emitted for `<>` angle brackets.
647
650
brace:: Emitted for `{}` braces.
648
651
bracket:: Emitted for `[]` brackets.
@@ -655,7 +658,6 @@ Semi:: Emitted for the `;` token.
655
658
//-
656
659
657
660
[horizontal]
658
- attribute:: Emitted for the `#[` `]` tokens.
659
661
builtinAttribute:: Emitted for names to builtin attributes in attribute path, the `repr` in `#[repr(u8)]` for example.
660
662
builtinType:: Emitted for builtin types like `u32`, `str` and `f32`.
661
663
comment:: Emitted for comments.
@@ -668,6 +670,7 @@ lifetime:: Emitted for lifetimes.
668
670
parameter:: Emitted for non-self function parameters.
669
671
property:: Emitted for struct and union fields.
670
672
selfKeyword:: Emitted for the self function parameter and self path-specifier.
673
+ toolModule:: Emitted for tool modules.
671
674
typeParameter:: Emitted for type parameters.
672
675
unresolvedReference:: Emitted for unresolved references, names that rust-analyzer can't find the definition of.
673
676
variable:: Emitted for locals, constants and statics.
@@ -720,7 +723,7 @@ image::https://user-images.githubusercontent.com/48062697/113065586-068bdb80-91b
720
723
721
724
722
725
=== Status
723
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/status.rs#L26 [status.rs]
726
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/status.rs#L25 [status.rs]
724
727
725
728
Shows internal statistic about memory usage of rust-analyzer.
726
729
@@ -878,7 +881,7 @@ image::https://user-images.githubusercontent.com/48062697/113065588-068bdb80-91b
878
881
879
882
880
883
=== Workspace Symbol
881
- **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_db/src/symbol_index.rs#L148 [symbol_index.rs]
884
+ **Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_db/src/symbol_index.rs#L159 [symbol_index.rs]
882
885
883
886
Uses fuzzy-search to find types, modules and functions by name across your
884
887
project and dependencies. This is **the** most useful feature, which improves code
0 commit comments