Skip to content

Commit 90268b4

Browse files
committed
Changelog #132
1 parent 0293779 commit 90268b4

File tree

4 files changed

+51
-7
lines changed

4 files changed

+51
-7
lines changed

generated_assists.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ fn main() {
236236

237237
[discrete]
238238
=== `auto_import`
239-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-assists/src/handlers/auto_import.rs#L68[auto_import.rs]
239+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-assists/src/handlers/auto_import.rs#L71[auto_import.rs]
240240

241241
If the name is unresolved, provides all possible imports for it.
242242

@@ -1673,7 +1673,7 @@ fn main() {
16731673

16741674
[discrete]
16751675
=== `merge_imports`
1676-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-assists/src/handlers/merge_imports.rs#L10[merge_imports.rs]
1676+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-assists/src/handlers/merge_imports.rs#L13[merge_imports.rs]
16771677

16781678
Merges two imports with a common prefix.
16791679

generated_config.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,10 @@ Whether to show inlay hints after a closing `}` to indicate what item it belongs
366366
Minimum number of lines required before the `}` until the hint is shown (set to 0 or 1
367367
to always show them).
368368
--
369-
[[rust-analyzer.inlayHints.closureReturnTypeHints.enable]]rust-analyzer.inlayHints.closureReturnTypeHints.enable (default: `false`)::
369+
[[rust-analyzer.inlayHints.closureReturnTypeHints.enable]]rust-analyzer.inlayHints.closureReturnTypeHints.enable (default: `"never"`)::
370370
+
371371
--
372-
Whether to show inlay type hints for return types of closures with blocks.
372+
Whether to show inlay type hints for return types of closures.
373373
--
374374
[[rust-analyzer.inlayHints.lifetimeElisionHints.enable]]rust-analyzer.inlayHints.lifetimeElisionHints.enable (default: `"never"`)::
375375
+

generated_features.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ image::https://user-images.githubusercontent.com/48062697/113020672-b7c34f00-917
1010

1111

1212
=== Auto Import
13-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-assists/src/handlers/auto_import.rs#L12[auto_import.rs]
13+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-assists/src/handlers/auto_import.rs#L15[auto_import.rs]
1414

1515
Using the `auto-import` assist it is possible to insert missing imports for unresolved items.
1616
When inserting an import it will do so in a structured manner by keeping imports grouped,
@@ -338,7 +338,7 @@ image::https://user-images.githubusercontent.com/48062697/113020658-b5f98b80-917
338338

339339

340340
=== Inlay Hints
341-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L76[inlay_hints.rs]
341+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L83[inlay_hints.rs]
342342

343343
rust-analyzer shows additional information inline with the source code.
344344
Editors usually render this using read-only virtual text snippets interspersed with code.
@@ -351,7 +351,7 @@ rust-analyzer by default shows hints for
351351

352352
Optionally, one can enable additional hints for
353353

354-
* return types of closure expressions with blocks
354+
* return types of closure expressions
355355
* elided lifetimes
356356
* compiler inserted reborrows
357357

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
= Changelog #132
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:ad6810e90bf89a4ef0ae21349d077050bc2a4fa2[] +
6+
Release: release:2022-06-06[]
7+
8+
== New Features
9+
10+
* pr:12451[] (first contribution) support `$$` in macros.
11+
* pr:12333[] (first contribution) order auto-imports by relevance.
12+
* pr:12452[] support merging multiple imports in `Merge imports`.
13+
* pr:12416[] add implicit static lifetime hints:
14+
+
15+
image::https://user-images.githubusercontent.com/308347/172144439-cf0f987f-4e8d-4e16-80fc-f4be7589b9af.png[]
16+
17+
== Fixes
18+
19+
* pr:12387[] (first contribution) fix module rename to not try to edit directories instead of files.
20+
* pr:12440[] don't remove diagnostics with empty message:
21+
+
22+
image::https://user-images.githubusercontent.com/49202620/171412661-9b9575e9-e71b-4b84-a5c0-00271548d50c.png[]
23+
* pr:12406[] add option to show return inlay hints for closures without a block.
24+
* pr:12412[] retrigger visibility completion after opening bracket.
25+
* pr:12347[] fix panic in `Extract module` and improve import resolution.
26+
* pr:12425[] fix float display in hover.
27+
* pr:12336[] fix a type mismatch with associated types.
28+
* pr:12427[] fix VSCode config patching incorrectly patching some configs.
29+
* pr:12431[] fix completions disappearing when typing quickly.
30+
* pr:12444[] implement parsing of `?` opt-out trait bounds.
31+
* pr:12467[] fix `Match to if-let` assist for wildcard patterns.
32+
* pr:12470[], pr:12472[] avoid duplicating output channels when restarting the server.
33+
* pr:12471[] restart the server instead of reloading the window when config changes.
34+
* pr:12475[] fix insert position in trait impl completions.
35+
* pr:12435[] Code: clear status bar color, command when server status is ok.
36+
37+
== Internal Improvements
38+
39+
* pr:12418[] improve completion filtering with existing item qualifiers.
40+
* pr:12461[] move trait impl completion analysis into `CompletionContext`.
41+
* pr:12459[] clean up keyword completion handling.
42+
* pr:12456[] shorten main thread names.
43+
* pr:12457[], pr:12465[] don't log default build script output.
44+
* pr:12466[] increase worker thread stack and give them names.

0 commit comments

Comments
 (0)