Skip to content

Commit 3a817dd

Browse files
committed
Changelog #269
1 parent ef611a7 commit 3a817dd

File tree

4 files changed

+49
-6
lines changed

4 files changed

+49
-6
lines changed

generated_config.adoc

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ avoid checking unnecessary things.
9595
Default:
9696
----
9797
[
98-
"debug_assertion",
98+
"debug_assertions",
9999
"miri"
100100
]
101101
----
@@ -1051,10 +1051,18 @@ Show full signature of the callable. Only shows parameters if disabled.
10511051
--
10521052
Show documentation.
10531053
--
1054-
[[rust-analyzer.typing.excludeChars]]rust-analyzer.typing.excludeChars (default: `"|<"`)::
1054+
[[rust-analyzer.typing.triggerChars]]rust-analyzer.typing.triggerChars (default: `"=."`)::
10551055
+
10561056
--
1057-
Specify the characters to exclude from triggering typing assists. The default trigger characters are `.`, `=`, `<`, `>`, `{`, and `(`.
1057+
Specify the characters allowed to invoke special on typing triggers.
1058+
- typing `=` after `let` tries to smartly add `;` if `=` is followed by an existing expression
1059+
- typing `=` between two expressions adds `;` when in statement position
1060+
- typing `=` to turn an assignment into an equality comparison removes `;` when in expression position
1061+
- typing `.` in a chain method call auto-indents
1062+
- typing `{` or `(` in front of an expression inserts a closing `}` or `)` after the expression
1063+
- typing `{` in a use item adds a closing `}` in the right place
1064+
- typing `>` to complete a return type `->` will insert a whitespace after it
1065+
- typing `<` in a path or type position inserts a closing `>` after the path or type.
10581066
--
10591067
[[rust-analyzer.vfs.extraIncludes]]rust-analyzer.vfs.extraIncludes (default: `[]`)::
10601068
+

generated_features.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ Note: `?`, `|` and `->` do not currently trigger this behavior in the VSCode edi
334334

335335

336336
=== Hover
337-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/hover.rs#L114[hover.rs]
337+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/hover.rs#L116[hover.rs]
338338

339339
Shows additional information, like the type of an expression or the documentation for a definition when "focusing" code.
340340
Focusing is usually hovering with a mouse, but can also be triggered with a shortcut.
@@ -411,7 +411,7 @@ image::https://user-images.githubusercontent.com/48062697/113020661-b6922200-917
411411

412412

413413
=== Magic Completions
414-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-completion/src/lib.rs#L81[lib.rs]
414+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-completion/src/lib.rs#L82[lib.rs]
415415

416416
In addition to usual reference completion, rust-analyzer provides some ✨magic✨
417417
completions as well:

thisweek/_posts/2024-10-14-changelog-255.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Release: release:2024-10-14[] (`v0.3.2146`)
88

99
== Fixes
1010

11+
* pr:18245[] (first contribution) fix detail label in completions.
1112
* pr:18246[] fix crash in `prettify_macro_expansion()` when the node isn't the whole file.
12-
* pr:18245[] fix detail label in completions.
1313
* pr:18247[] fix `something_to_resolve` sometimes being reset in `completion_item`
1414
* pr:18269[] display constructor types in a nicer way.
1515
* pr:18289[] fix panic on JSON projects with relative buildfile paths.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
= Changelog #269
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:248bd511aee2c1c1cb2d5314649521d6d93b854a[] +
7+
Release: release:2025-01-20[] (`v0.3.2273`)
8+
9+
== New Features
10+
11+
* pr:18917[] add dereferencing completions.
12+
* pr:18927[] automatically include `await`, `iter()` and `into_iter()` in completions.
13+
* pr:18925[] render type parameter projection target bounds in inlay hints.
14+
* pr:18946[], pr:18950[] show "Go to type definition" actions for type bounds in functions.
15+
* pr:18952[] complete `raw` and `const` keywords.
16+
* pr:18939[] flip `rust-analyzer.typing.excludeChars` to be opt-in, with better defaults.
17+
18+
== Fixes
19+
20+
* pr:18908[] (first contribution) report errors blocks before `else` in `let`-`else`.
21+
* pr:18953[] (first contribution) fix broken `#[cfg(debug_assertions)]`.
22+
* pr:18933[] (first contribution) bump update `notify` to fix a Windows crash.
23+
* pr:18944[] update `chalk`, to fix trait upcasting.
24+
* pr:18949[] partially back out "fix source root construction for virtual manifests".
25+
* pr:18929[] avoid stack overflow when reaching macro expansion limit.
26+
* pr:18940[] fix `Semantics` not always caching file roots correctly.
27+
* pr:18922[] don't return inlay hints outside requested range.
28+
* pr:18897[] make `test_runner::TestState::stdout` optional to fix parsing `cargo test` JSON output.
29+
* pr:18968[] enable `unstable-options` for `cargo rustc --print`.
30+
* pr:18937[] hide syntax tree view by default.
31+
32+
== Internal Improvements
33+
34+
* pr:18957[] update syntax tree viewer docs.
35+
* pr:18951[] add missing `#[rust_analyzer::rust_fixture]` annotations.

0 commit comments

Comments
 (0)