Skip to content

Commit ef611a7

Browse files
committed
Changelog #268
1 parent ab2c407 commit ef611a7

7 files changed

+80
-33
lines changed

generated_assists.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3298,7 +3298,7 @@ impl Debug for S {
32983298

32993299
[discrete]
33003300
=== `replace_if_let_with_match`
3301-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/replace_if_let_with_match.rs#L24[replace_if_let_with_match.rs]
3301+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/replace_if_let_with_match.rs#L20[replace_if_let_with_match.rs]
33023302

33033303
Replaces a `if let` expression with a `match` expression.
33043304

@@ -3353,7 +3353,7 @@ fn main() {
33533353

33543354
[discrete]
33553355
=== `replace_let_with_if_let`
3356-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/replace_let_with_if_let.rs#L15[replace_let_with_if_let.rs]
3356+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/replace_let_with_if_let.rs#L9[replace_let_with_if_let.rs]
33573357

33583358
Replaces `let` with an `if let`.
33593359

@@ -3381,7 +3381,7 @@ fn compute() -> Option<i32> { None }
33813381

33823382
[discrete]
33833383
=== `replace_match_with_if_let`
3384-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/replace_if_let_with_match.rs#L187[replace_if_let_with_match.rs]
3384+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/replace_if_let_with_match.rs#L188[replace_if_let_with_match.rs]
33853385

33863386
Replaces a binary `match` with a wildcard pattern and no guards with an `if let` expression.
33873387

@@ -3914,7 +3914,7 @@ fn main() {
39143914

39153915
[discrete]
39163916
=== `wrap_return_type_in_option`
3917-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/wrap_return_type.rs#L17[wrap_return_type.rs]
3917+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/wrap_return_type.rs#L16[wrap_return_type.rs]
39183918

39193919
Wrap the function's return type into Option.
39203920

@@ -3931,7 +3931,7 @@ fn foo() -> Option<i32> { Some(42i32) }
39313931

39323932
[discrete]
39333933
=== `wrap_return_type_in_result`
3934-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/wrap_return_type.rs#L30[wrap_return_type.rs]
3934+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/wrap_return_type.rs#L29[wrap_return_type.rs]
39353935

39363936
Wrap the function's return type into Result.
39373937

generated_config.adoc

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ avoid checking unnecessary things.
9494
--
9595
Default:
9696
----
97-
{
98-
"miri": null,
99-
"debug_assertions": null
100-
}
97+
[
98+
"debug_assertion",
99+
"miri"
100+
]
101101
----
102102
List of cfg options to enable with the given values.
103103

@@ -135,12 +135,6 @@ Unsetting this disables sysroot loading.
135135

136136
This option does not take effect until rust-analyzer is restarted.
137137
--
138-
[[rust-analyzer.cargo.sysrootQueryMetadata]]rust-analyzer.cargo.sysrootQueryMetadata (default: `"cargo_metadata"`)::
139-
+
140-
--
141-
How to query metadata for the sysroot crate. Using cargo metadata allows rust-analyzer
142-
to analyze third-party dependencies of the standard libraries.
143-
--
144138
[[rust-analyzer.cargo.sysrootSrc]]rust-analyzer.cargo.sysrootSrc (default: `null`)::
145139
+
146140
--
@@ -152,7 +146,7 @@ This option does not take effect until rust-analyzer is restarted.
152146
[[rust-analyzer.cargo.target]]rust-analyzer.cargo.target (default: `null`)::
153147
+
154148
--
155-
Compilation target override (target triple).
149+
Compilation target override (target tuple).
156150
--
157151
[[rust-analyzer.cargo.targetDir]]rust-analyzer.cargo.targetDir (default: `null`)::
158152
+
@@ -722,6 +716,11 @@ Whether to show generic type parameter name inlay hints.
722716
--
723717
Whether to show implicit drop hints.
724718
--
719+
[[rust-analyzer.inlayHints.implicitSizedBoundHints.enable]]rust-analyzer.inlayHints.implicitSizedBoundHints.enable (default: `false`)::
720+
+
721+
--
722+
Whether to show inlay hints for the implied type parameter `Sized` bound.
723+
--
725724
[[rust-analyzer.inlayHints.lifetimeElisionHints.enable]]rust-analyzer.inlayHints.lifetimeElisionHints.enable (default: `"never"`)::
726725
+
727726
--
@@ -1057,6 +1056,13 @@ Show documentation.
10571056
--
10581057
Specify the characters to exclude from triggering typing assists. The default trigger characters are `.`, `=`, `<`, `>`, `{`, and `(`.
10591058
--
1059+
[[rust-analyzer.vfs.extraIncludes]]rust-analyzer.vfs.extraIncludes (default: `[]`)::
1060+
+
1061+
--
1062+
Additional paths to include in the VFS. Generally for code that is
1063+
generated or otherwise managed by a build system outside of Cargo,
1064+
though Cargo might be the eventual consumer.
1065+
--
10601066
[[rust-analyzer.workspace.discoverConfig]]rust-analyzer.workspace.discoverConfig (default: `null`)::
10611067
+
10621068
--

generated_diagnostic.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
//! Generated by `cargo codegen diagnostics-docs`, do not edit by hand.
22

3+
=== attribute-expansion-disabled
4+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/macro_error.rs#L7[macro_error.rs]
5+
6+
This diagnostic is shown for attribute proc macros when attribute expansions have been disabled.
7+
8+
39
=== await-outside-of-async
410
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/await_outside_of_async.rs#L3[await_outside_of_async.rs]
511

@@ -159,13 +165,7 @@ This diagnostic is triggered if the accessed field is not visible from the curre
159165
=== proc-macro-disabled
160166
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/macro_error.rs#L11[macro_error.rs]
161167

162-
This diagnostic is shown for proc macros that has been specifically disabled via `rust-analyzer.procMacro.ignored`.
163-
164-
165-
=== proc-macros-disabled
166-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/macro_error.rs#L7[macro_error.rs]
167-
168-
This diagnostic is shown for proc macros where proc macros have been disabled.
168+
This diagnostic is shown for proc macros that have been specifically disabled via `rust-analyzer.procMacro.ignored`.
169169

170170

171171
=== remove-trailing-return

generated_features.adoc

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ image::https://user-images.githubusercontent.com/48062697/113020658-b5f98b80-917
343343

344344

345345
=== Inlay Hints
346-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L40[inlay_hints.rs]
346+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L41[inlay_hints.rs]
347347

348348
rust-analyzer shows additional information inline with the source code.
349349
Editors usually render this using read-only virtual text snippets interspersed with code.
@@ -785,17 +785,15 @@ image::https://user-images.githubusercontent.com/5748995/229394139-2625beab-f4c9
785785

786786

787787
=== Show Syntax Tree
788-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/syntax_tree.rs#L7[syntax_tree.rs]
788+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/view_syntax_tree.rs#L10[view_syntax_tree.rs]
789789

790-
Shows the parse tree of the current file. It exists mostly for debugging
791-
rust-analyzer itself.
790+
Shows a tree view with the syntax tree of the current file
792791

793792
|===
794-
| Editor | Action Name
793+
| Editor | Panel Name
795794

796-
| VS Code | **rust-analyzer: Show Syntax Tree**
795+
| VS Code | **Rust Syntax Tree**
797796
|===
798-
image::https://user-images.githubusercontent.com/48062697/113065586-068bdb80-91b1-11eb-9507-fee67f9f45a0.gif[]
799797

800798

801799
=== Status

manual.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ interface Crate {
769769
/// The set of cfgs activated for a given crate, like
770770
/// `["unix", "feature=\"foo\"", "feature=\"bar\""]`.
771771
cfg: string[];
772-
/// Target triple for this Crate.
772+
/// Target tuple for this Crate.
773773
///
774774
/// Used when running `rustc --print cfg`
775775
/// to get target-specific cfgs.

thisweek/_posts/2023-12-11-changelog-211.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Release: release:2023-12-11[] (`v0.3.1766`)
88

99
== New Features
1010

11-
* pr:15959[] replace TokenMap with an abstraction that matches reality.
11+
* pr:15959[] replace `TokenMap` with an abstraction that matches reality.
1212
* pr:16027[] add support for implicit format args:
1313
+
1414
video::https://user-images.githubusercontent.com/308347/289476161-20bcb7f6-cfa2-4550-a2ba-a524ab52cba3.mp4[options=loop]
@@ -40,7 +40,7 @@ image::https://user-images.githubusercontent.com/71162630/288081867-bb18707f-327
4040
* pr:16035[] fix diagnostics panicking when resolving to different files due to macros.
4141
* pr:16037[] don't print proc-macro panic backtraces in the logs.
4242
* pr:15486[] fix item tree lowering `pub(self)` to `pub()`.
43-
* pr:15705[] resolve Self type references in delegate method assist.
43+
* pr:15705[] resolve `Self` type references in delegate method assist.
4444
* pr:16048[] fix `concat_bytes!` expansion emitting an identifier.
4545
* pr:16058[] reduce spans for unresolved field and method diagnostics.
4646
* pr:16060[] fix completion in `format_args!` with invalid template.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
= Changelog #268
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:8364ef299790cb6ec22b9e09e873c97dbe9f2cb5[] +
7+
Release: release:2025-01-13[] (`v0.3.2264`)
8+
9+
== New Features
10+
11+
* pr:18880[] (first contribution) add config to include additional paths in the VFS.
12+
* pr:18885[] (first contribution) change `rust-analyzer.cargo.cfgs` from a map to a list.
13+
* pr:18907[] implement `#[rust_analyzer::skip]` for bodies.
14+
* pr:18903[] implement implicit sized bound inlay hints.
15+
* pr:18813[] reimplement the syntax tree view as a sidebar.
16+
* pr:18906[] reimplement Rust string highlighting using a tool attribute.
17+
* pr:18788[] re-remove `rust-analyzer.cargo.sysrootQueryMetadata`.
18+
19+
== Fixes
20+
21+
* pr:18832[] (first contribution) do not offer completions within strings in macro calls.
22+
* pr:18866[] (first contribution) fix JSON project buildfile inclusion.
23+
* pr:18858[] clear diagnostics on cancel unconditionally.
24+
* pr:18853[] fix case where completion inside macro that expands to `#[test]` was unavailable.
25+
* pr:18864[] fix diagnostics not clearing between flychecks.
26+
* pr:18877[] fix performance issue on missing MBE bindings.
27+
* pr:18884[] fix `env!` completions.
28+
* pr:18900[] do not call `prettify_macro_expansion` unless "Inline macro" has actually been invoked.
29+
* pr:18904[] improve module path rendering in hover.
30+
* pr:18861[] make edition per-token, not file.
31+
* pr:18920[] fix `ref` text edit for binding mode hints.
32+
* pr:18889[] fix token lookup in macro call completions.
33+
* pr:18899[] fix another panic in fixup reversing.
34+
35+
== Internal Improvements
36+
37+
* pr:18855[] migrate `if-let` replacement assists to `SyntaxEditor`.
38+
* pr:18524[] migrate `(un)wrap_return_type` assists to `SyntaxEditor`.
39+
* pr:18902[] add `Definition::Crate`.
40+
* pr:18921[] compute inlay hint text edits lazily.
41+
* pr:18923[] compute inlay hint tooltips lazily.
42+
* pr:18867[] support `target-tuple` (vs. `target-triple`) and clean up version fetching.
43+
* pr:18887[] refactor test helpers within `ide-completions`.

0 commit comments

Comments
 (0)