Skip to content

Commit 0f00470

Browse files
committed
Changelog #165
1 parent c964f44 commit 0f00470

File tree

4 files changed

+62
-9
lines changed

4 files changed

+62
-9
lines changed

generated_assists.adoc

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

4545
[discrete]
4646
=== `add_impl_default_members`
47-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_missing_impl_members.rs#L57[add_missing_impl_members.rs]
47+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_missing_impl_members.rs#L55[add_missing_impl_members.rs]
4848

4949
Adds scaffold for overriding default impl members.
5050

@@ -81,7 +81,7 @@ impl Trait for () {
8181

8282
[discrete]
8383
=== `add_impl_missing_members`
84-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_missing_impl_members.rs#L16[add_missing_impl_members.rs]
84+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_missing_impl_members.rs#L14[add_missing_impl_members.rs]
8585

8686
Adds scaffold for required impl members.
8787

@@ -695,6 +695,25 @@ fn main() {
695695
```
696696

697697

698+
[discrete]
699+
=== `desugar_doc_comment`
700+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/desugar_doc_comment.rs#L14[desugar_doc_comment.rs]
701+
702+
Desugars doc-comments to the attribute form.
703+
704+
.Before
705+
```rust
706+
/// Multi-line┃
707+
/// comment
708+
```
709+
710+
.After
711+
```rust
712+
#[doc = r"Multi-line
713+
comment"]
714+
```
715+
716+
698717
[discrete]
699718
=== `expand_glob_import`
700719
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/expand_glob_import.rs#L18[expand_glob_import.rs]

generated_config.adoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -486,11 +486,6 @@ Whether to show inlay type hints for elided lifetimes in function signatures.
486486
--
487487
Whether to prefer using parameter names as the name for elided lifetime hints if possible.
488488
--
489-
[[rust-analyzer.inlayHints.locationLinks]]rust-analyzer.inlayHints.locationLinks (default: `true`)::
490-
+
491-
--
492-
Whether to use location links for parts of type mentioned in inlay hints.
493-
--
494489
[[rust-analyzer.inlayHints.maxLength]]rust-analyzer.inlayHints.maxLength (default: `25`)::
495490
+
496491
--

generated_features.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ Note: `?` and `->` do not currently trigger this behavior in the VSCode editor.
332332

333333

334334
=== Hover
335-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/hover.rs#L85[hover.rs]
335+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/hover.rs#L81[hover.rs]
336336

337337
Shows additional information, like the type of an expression or the documentation for a definition when "focusing" code.
338338
Focusing is usually hovering with a mouse, but can also be triggered with a shortcut.
@@ -341,7 +341,7 @@ image::https://user-images.githubusercontent.com/48062697/113020658-b5f98b80-917
341341

342342

343343
=== Inlay Hints
344-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L345[inlay_hints.rs]
344+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L336[inlay_hints.rs]
345345

346346
rust-analyzer shows additional information inline with the source code.
347347
Editors usually render this using read-only virtual text snippets interspersed with code.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
= Changelog #165
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:daa0138e4c159d5753e41a447201b6191437276e[] +
7+
Release: release:2023-01-23[] +
8+
VS Code extension: `0.3.1377`
9+
10+
== New Features
11+
12+
* pr:13935[] (first contribution) add assist to desugar doc-comments:
13+
+
14+
video::https://user-images.githubusercontent.com/308347/213989235-e20efab2-5e00-4e49-a81b-7adc30d54b9d.mp4[options=loop]
15+
* pr:13947[] add basic tooltips to adjustment hints:
16+
+
17+
image::https://user-images.githubusercontent.com/38225716/212681383-a60b60bb-a8e7-410d-8b24-f6b72c197311.png["Screenshot showing a `T → &T (borrow coercion)` tooltip over a `.&` adjustment hint"]
18+
* pr:13963[] unconditionally enable location links in inlay hints.
19+
20+
== Fixes
21+
22+
* pr:13983[] (first contribution) parse `const_closures` syntax.
23+
* pr:13993[] (first contribution) VS Code: substitute variables in `config.serverPath`.
24+
* pr:13981[] don't run flycheck on startup unless `checkOnSave` is enabled.
25+
* pr:13966[] don't compute layout if `TargetDataLayout` is not available.
26+
* pr:13971[] improve inference for binary operations more precise.
27+
* pr:13961[] don't generate `PartialEq`/`PartialOrd` methods body when types don't match.
28+
* pr:13984[] fix target data layout fetching incorrectly passing `rustc` to `rustc`.
29+
* pr:13978[] handle slice patterns in `Fill match arms`.
30+
* pr:13985[] don't respond with `ContentModified` while loading the workspace.
31+
* pr:13988[] fix whitespace handling in hover Markdown removal.
32+
* pr:13980[] fix `checkOnSave` config patching.
33+
34+
== Internal Improvements
35+
36+
* pr:13964[] specify `authors`, `edition`, `license` and `rust-version` via `workspace.package`.
37+
* pr:13969[] use `workspace.dependencies` to declare local dependencies.
38+
* pr:13989[] remove hover fallback in favor of ranged hover.
39+
* pr:14001[] replace `SmolStr` usage with enum for lang items.

0 commit comments

Comments
 (0)