Skip to content

Commit 0c1a69f

Browse files
committed
Changelog #134
1 parent d89e29c commit 0c1a69f

File tree

3 files changed

+44
-8
lines changed

3 files changed

+44
-8
lines changed

generated_diagnostic.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ This diagnostic is triggered if rust-analyzer is unable to discover referred mod
134134

135135

136136
=== unresolved-proc-macro
137-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/unresolved_proc_macro.rs#L3[unresolved_proc_macro.rs]
137+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/unresolved_proc_macro.rs#L5[unresolved_proc_macro.rs]
138138

139139
This diagnostic is shown when a procedural macro can not be found. This usually means that
140140
procedural macro support is simply disabled (and hence is only a weak hint instead of an error),

generated_features.adoc

Lines changed: 8 additions & 7 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#L18[flyimport.rs]
71+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-completion/src/completions/flyimport.rs#L20[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.
@@ -237,7 +237,7 @@ image::https://user-images.githubusercontent.com/48062697/113020670-b7c34f00-917
237237

238238

239239
=== 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]
241241

242242
Defines folding regions for curly braced blocks, runs of consecutive use, mod, const or static
243243
items, and `region` / `endregion` comment markers.
@@ -320,10 +320,11 @@ image::https://user-images.githubusercontent.com/48062697/113020657-b560f500-917
320320
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/highlight_related.rs#L36[highlight_related.rs]
321321

322322
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
327328

328329
Note: `?` and `->` do not currently trigger this behavior in the VSCode editor.
329330

@@ -383,7 +384,7 @@ image::https://user-images.githubusercontent.com/48062697/113020661-b6922200-917
383384

384385

385386
=== 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]
387388

388389
In addition to usual reference completion, rust-analyzer provides some ✨magic✨
389390
completions as well:
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
= Changelog #134
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:427061da19723f2206fe4dcb175c9c43b9a6193d[] +
6+
Release: release:2022-06-20[]
7+
8+
== New Features
9+
10+
* pr:12519[] render docs from trait declaration when hovering associated items:
11+
+
12+
image::https://user-images.githubusercontent.com/308347/174536149-4ea778dc-1d9f-4384-8e7e-4789cad17072.png[]
13+
* pr:12576[] add folding ranges for multi-line match arm list.
14+
15+
== Fixes
16+
17+
* pr:12517[] (first contribution) fix completion for methods in trait generated by macro.
18+
* pr:12545[] (first contribution) insert imports after the shebang if present.
19+
* pr:12528[] check the correct proc-macro settings in missing proc-macro diagnostics.
20+
* pr:12544[] show proc-macro loading errors in `unresolved-proc-macro` diagnostics.
21+
* pr:12584[] fix attribute macro diagnostics.
22+
* pr:12529[] ask the user to reload the vscode window when changing server settings.
23+
* pr:12541[] clear proc-macro changed flag when reloading workspace.
24+
* pr:12554[] don't complete local items should not be completed in parent.
25+
26+
== Internal Improvements
27+
28+
* pr:12560[], pr:12563[], pr:12565[] more completions refactoring.
29+
* pr:12562[] split completion context module into definitions and analysis parts.
30+
* pr:12564[] collapse completion ctx path `qualifier` and `is_absolute_path` into enum.
31+
* pr:12570[] only run completion functions if their corresponding context is active.
32+
* pr:12573[] split flyimport into its three applicable contexts.
33+
* pr:12577[] make `NameRefKind` classification mandatory.
34+
* pr:12580[] move things out of `CompletionContext::function_def` into more specific parts.
35+
* pr:12581[] handle fractional release numbers in changelog naming.

0 commit comments

Comments
 (0)