Skip to content

Commit 4d6f100

Browse files
author
Jonas Schievink
committed
Changelog #129.5
1 parent 4319a6f commit 4d6f100

4 files changed

Lines changed: 60 additions & 7 deletions

File tree

generated_assists.adoc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ impl Person {
931931

932932
[discrete]
933933
=== `generate_deref`
934-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_deref.rs#L15[generate_deref.rs]
934+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_deref.rs#L16[generate_deref.rs]
935935

936936
Generate `Deref` impl using the given struct field.
937937

@@ -950,7 +950,7 @@ struct B {
950950
a: A
951951
}
952952

953-
impl std::ops::Deref for B {
953+
impl core::ops::Deref for B {
954954
type Target = A;
955955

956956
fn deref(&self) -> &Self::Target {
@@ -1193,7 +1193,6 @@ struct Person {
11931193
}
11941194

11951195
impl Person {
1196-
/// Get a reference to the person's name.
11971196
#[must_use]
11981197
fn ┃name(&self) -> &str {
11991198
self.name.as_ref()
@@ -1204,7 +1203,7 @@ impl Person {
12041203

12051204
[discrete]
12061205
=== `generate_getter_mut`
1207-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_getter.rs#L52[generate_getter.rs]
1206+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_getter.rs#L51[generate_getter.rs]
12081207

12091208
Generate a mut getter method.
12101209

@@ -1222,7 +1221,6 @@ struct Person {
12221221
}
12231222

12241223
impl Person {
1225-
/// Get a mutable reference to the person's name.
12261224
#[must_use]
12271225
fn ┃name_mut(&mut self) -> &mut String {
12281226
&mut self.name
@@ -1337,7 +1335,6 @@ struct Person {
13371335
}
13381336

13391337
impl Person {
1340-
/// Set the person's name.
13411338
fn set_name(&mut self, name: String) {
13421339
self.name = name;
13431340
}

generated_config.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,11 +345,27 @@ Whether to allow import insertion to merge new imports into single path glob imp
345345
--
346346
The path structure for newly inserted paths to use.
347347
--
348+
[[rust-analyzer.inlayHints.bindingModeHints.enable]]rust-analyzer.inlayHints.bindingModeHints.enable (default: `false`)::
349+
+
350+
--
351+
Whether to show inlay type hints for binding modes.
352+
--
348353
[[rust-analyzer.inlayHints.chainingHints.enable]]rust-analyzer.inlayHints.chainingHints.enable (default: `true`)::
349354
+
350355
--
351356
Whether to show inlay type hints for method chains.
352357
--
358+
[[rust-analyzer.inlayHints.closingBraceHints.enable]]rust-analyzer.inlayHints.closingBraceHints.enable (default: `true`)::
359+
+
360+
--
361+
Whether to show inlay hints after a closing `}` to indicate what item it belongs to.
362+
--
363+
[[rust-analyzer.inlayHints.closingBraceHints.minLines]]rust-analyzer.inlayHints.closingBraceHints.minLines (default: `25`)::
364+
+
365+
--
366+
Minimum number of lines required before the `}` until the hint is shown (set to 0 or 1
367+
to always show them).
368+
--
353369
[[rust-analyzer.inlayHints.closureReturnTypeHints.enable]]rust-analyzer.inlayHints.closureReturnTypeHints.enable (default: `false`)::
354370
+
355371
--

generated_features.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ image::https://user-images.githubusercontent.com/48062697/113020658-b5f98b80-917
333333

334334

335335
=== Inlay Hints
336-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L62[inlay_hints.rs]
336+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L75[inlay_hints.rs]
337337

338338
rust-analyzer shows additional information inline with the source code.
339339
Editors usually render this using read-only virtual text snippets interspersed with code.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
= Changelog #129.5
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:7e95c14ea730c6b06f5760c8c92e69b9a6def828[] +
6+
Release: release:2022-05-17[]
7+
8+
Bonus Release 🎉
9+
10+
This release increments the VS Code extension version to fix installation problems on the stable channel.
11+
12+
The VS Code extension version of this release is `v0.3.1059`.
13+
It corresponds to the nightly release `v0.4.1058`.
14+
15+
== New Features
16+
17+
* pr:12253[] Add binding mode inlay hints
18+
+
19+
image::https://user-images.githubusercontent.com/3757771/168427387-2f299438-a0cc-496b-a9a5-d689ef6a2b55.png[]
20+
* pr:12244[] Show inlay hints after a `}` to indicate the closed item
21+
+
22+
image::https://user-images.githubusercontent.com/1786438/168338713-4cedef50-3611-4667-aa6a-49e154ec16a7.png[]
23+
* pr:12274[] pr:12275[] Handle getters and setters in documentation template assist
24+
* pr:12276[] Improve Generate `Deref` impl assist
25+
* pr:12285[] Implement inlay hint tooltips
26+
+
27+
image::https://user-images.githubusercontent.com/1786438/168842815-0c814163-25ab-4a63-aae6-bd63e3562857.gif[]
28+
29+
== Fixes
30+
31+
* pr:12272[] Fix signature help LSP offset conversion
32+
* pr:12289[] Fix incorrect config key in client config update
33+
* pr:12271[] Fix type mismatch error with `Box`
34+
35+
== Internal Improvements
36+
37+
* pr:12284[] Cleanup lifetime elision hints
38+
* pr:12292[] Bump extension version
39+
40+

0 commit comments

Comments
 (0)