Skip to content

Commit fe44dd8

Browse files
committed
Changelog #106
1 parent a43f4a8 commit fe44dd8

File tree

2 files changed

+54
-5
lines changed

2 files changed

+54
-5
lines changed

generated_features.adoc

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ image::https://user-images.githubusercontent.com/48062697/113020673-b85be580-917
6868

6969

7070
=== 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]
7272

7373
When completing names in the current scope, proposes additional imports from other modules or crates,
7474
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:
610610
- For items:
611611
+
612612
[horizontal]
613+
attribute:: Emitted for attribute macros.
613614
enum:: Emitted for enums.
614615
function:: Emitted for free-standing functions.
615-
macro:: Emitted for macros.
616+
derive:: Emitted for derive macros.
617+
macro:: Emitted for function-like macros.
616618
method:: Emitted for associated functions, also knowns as methods.
617619
namespace:: Emitted for modules.
618620
struct:: Emitted for structs.
@@ -643,6 +645,7 @@ logical:: Emitted for the logical operators `||`, `&&`, `!`.
643645
+
644646
[horizontal]
645647
punctuation:: Emitted for general punctuation.
648+
attributeBracket:: Emitted for attribute invocation brackets, that is the `#[` and `]` tokens.
646649
angle:: Emitted for `<>` angle brackets.
647650
brace:: Emitted for `{}` braces.
648651
bracket:: Emitted for `[]` brackets.
@@ -655,7 +658,6 @@ Semi:: Emitted for the `;` token.
655658
//-
656659

657660
[horizontal]
658-
attribute:: Emitted for the `#[` `]` tokens.
659661
builtinAttribute:: Emitted for names to builtin attributes in attribute path, the `repr` in `#[repr(u8)]` for example.
660662
builtinType:: Emitted for builtin types like `u32`, `str` and `f32`.
661663
comment:: Emitted for comments.
@@ -668,6 +670,7 @@ lifetime:: Emitted for lifetimes.
668670
parameter:: Emitted for non-self function parameters.
669671
property:: Emitted for struct and union fields.
670672
selfKeyword:: Emitted for the self function parameter and self path-specifier.
673+
toolModule:: Emitted for tool modules.
671674
typeParameter:: Emitted for type parameters.
672675
unresolvedReference:: Emitted for unresolved references, names that rust-analyzer can't find the definition of.
673676
variable:: Emitted for locals, constants and statics.
@@ -720,7 +723,7 @@ image::https://user-images.githubusercontent.com/48062697/113065586-068bdb80-91b
720723

721724

722725
=== 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]
724727

725728
Shows internal statistic about memory usage of rust-analyzer.
726729

@@ -878,7 +881,7 @@ image::https://user-images.githubusercontent.com/48062697/113065588-068bdb80-91b
878881

879882

880883
=== 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]
882885

883886
Uses fuzzy-search to find types, modules and functions by name across your
884887
project and dependencies. This is **the** most useful feature, which improves code
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
= Changelog #106
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:7d6fcbc0be2151bfa85ec146545b42d8be2fb28c[] +
6+
Release: release:2021-12-06[]
7+
8+
== Sponsors
9+
10+
**Become a sponsor:** On https://opencollective.com/rust-analyzer/[OpenCollective] or
11+
https://github.com/sponsors/rust-analyzer[GitHub Sponsors].
12+
13+
== New Features
14+
15+
* pr:10915[] resolve built-in attributes and tools in `ide`:
16+
+
17+
image::https://user-images.githubusercontent.com/3757771/144661639-dbd324df-807c-4cc0-b860-4953a98b9fa5.png[]
18+
+
19+
image::https://user-images.githubusercontent.com/3757771/144661637-e9276cc8-e975-420e-ab32-29fa7732a21f.png[]
20+
* pr:10943[] enable completions for attributes:
21+
+
22+
image::https://user-images.githubusercontent.com/3757771/144752483-5dd868fb-b0f3-4f69-9db3-859f0414dc06.gif[]
23+
* pr:10916[] implement `while let ...` to `loop { if let ...}` conversion in the `convert_while_to_loop` assist.
24+
25+
== Fixes
26+
27+
* pr:10906[] (first contributation) "add return type" assist when missing whitespace before brace.
28+
* pr:10896[] resolve associated trait types in paths.
29+
* pr:10902[] handle multiple cargo check quick fix spans.
30+
* pr:10920[] shorten spans of `mismatched_arg_count` diagnostics.
31+
* pr:10930[] fix `self` highlighting in imports.
32+
* pr:10899[] add hack to highlight `self` properly with some proc macro crates.
33+
* pr:10937[] add back highlighting hack for unresolved attributes.
34+
* pr:10841[] emit moniker in LSIF.
35+
* pr:10891[] emit trait names in moniker identifier.
36+
* pr:10871[], pr:10905[], pr:10940[] try to respect `http.proxyStrictSSL`.
37+
38+
== Internal Improvements
39+
40+
* pr:10872[] build symbol index from crate def map
41+
* pr:10887[] update bug report template to include version info.
42+
* pr:10919[] add missing semantic tokens to `package.json`.
43+
* pr:10897[] make client-side tests actually work.
44+
* pr:10903[] replace `mocha` with a custom test runner.
45+
* pr:10929[] split up macro/attribute semantic tokens a bit more.
46+
* pr:10944[] prefer resolution of inert attributes.

0 commit comments

Comments
 (0)