Skip to content

Commit ab2c407

Browse files
committed
Changelog #267
1 parent 48f38ea commit ab2c407

5 files changed

+98
-6
lines changed

Diff for: generated_assists.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ fn main() {
962962

963963
[discrete]
964964
=== `destructure_tuple_binding`
965-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/destructure_tuple_binding.rs#L20[destructure_tuple_binding.rs]
965+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/destructure_tuple_binding.rs#L19[destructure_tuple_binding.rs]
966966

967967
Destructures a tuple binding in place.
968968

@@ -3346,7 +3346,7 @@ fn main() {
33463346
```rust
33473347
fn main() {
33483348
let x = Some(1);
3349-
if let Some(${0:x}) = x {}
3349+
if let Some(${0:x1}) = x {}
33503350
}
33513351
```
33523352

Diff for: generated_config.adoc

+50
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,35 @@ In `match` arms it completes a comma instead.
285285
--
286286
Toggles the additional completions that automatically add imports when completed.
287287
Note that your client must specify the `additionalTextEdits` LSP client capability to truly have this feature enabled.
288+
--
289+
[[rust-analyzer.completion.autoimport.exclude]]rust-analyzer.completion.autoimport.exclude::
290+
+
291+
--
292+
Default:
293+
----
294+
[
295+
{
296+
"path": "core::borrow::Borrow",
297+
"type": "methods"
298+
},
299+
{
300+
"path": "core::borrow::BorrowMut",
301+
"type": "methods"
302+
}
303+
]
304+
----
305+
A list of full paths to items to exclude from auto-importing completions.
306+
307+
Traits in this list won't have their methods suggested in completions unless the trait
308+
is in scope.
309+
310+
You can either specify a string path which defaults to type "always" or use the more verbose
311+
form `{ "path": "path::to::item", type: "always" }`.
312+
313+
For traits the type "methods" can be used to only exclude the methods but not the trait itself.
314+
315+
This setting also inherits `#rust-analyzer.completion.excludeTraits#`.
316+
288317
--
289318
[[rust-analyzer.completion.autoself.enable]]rust-analyzer.completion.autoself.enable (default: `true`)::
290319
+
@@ -297,6 +326,15 @@ with `self` prefixed to them when inside a method.
297326
--
298327
Whether to add parenthesis and argument snippets when completing function.
299328
--
329+
[[rust-analyzer.completion.excludeTraits]]rust-analyzer.completion.excludeTraits (default: `[]`)::
330+
+
331+
--
332+
A list of full paths to traits whose methods to exclude from completion.
333+
334+
Methods from these traits won't be completed, even if the trait is in scope. However, they will still be suggested on expressions whose type is `dyn Trait`, `impl Trait` or `T where T: Trait`.
335+
336+
Note that the trait themselves can still be completed.
337+
--
300338
[[rust-analyzer.completion.fullFunctionSignatures.enable]]rust-analyzer.completion.fullFunctionSignatures.enable (default: `false`)::
301339
+
302340
--
@@ -497,6 +535,12 @@ Whether to show `References` action. Only applies when
497535
Whether to show `Run` action. Only applies when
498536
`#rust-analyzer.hover.actions.enable#` is set.
499537
--
538+
[[rust-analyzer.hover.actions.updateTest.enable]]rust-analyzer.hover.actions.updateTest.enable (default: `true`)::
539+
+
540+
--
541+
Whether to show `Update Test` action. Only applies when
542+
`#rust-analyzer.hover.actions.enable#` and `#rust-analyzer.hover.actions.run.enable#` are set.
543+
--
500544
[[rust-analyzer.hover.documentation.enable]]rust-analyzer.hover.documentation.enable (default: `true`)::
501545
+
502546
--
@@ -808,6 +852,12 @@ Only applies when `#rust-analyzer.lens.enable#` is set.
808852
Whether to show `Run` lens. Only applies when
809853
`#rust-analyzer.lens.enable#` is set.
810854
--
855+
[[rust-analyzer.lens.updateTest.enable]]rust-analyzer.lens.updateTest.enable (default: `true`)::
856+
+
857+
--
858+
Whether to show `Update Test` lens. Only applies when
859+
`#rust-analyzer.lens.enable#` and `#rust-analyzer.lens.run.enable#` are set.
860+
--
811861
[[rust-analyzer.linkedProjects]]rust-analyzer.linkedProjects (default: `[]`)::
812862
+
813863
--

Diff for: generated_features.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ image::https://user-images.githubusercontent.com/48062697/113020673-b85be580-917
7070

7171

7272
=== Completion With Autoimport
73-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-completion/src/completions/flyimport.rs#L19[flyimport.rs]
73+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-completion/src/completions/flyimport.rs#L20[flyimport.rs]
7474

7575
When completing names in the current scope, proposes additional imports from other modules or crates,
7676
if they can be qualified in the scope, and their name contains all symbols from the completion input.
@@ -606,7 +606,7 @@ image::https://user-images.githubusercontent.com/48062697/113065580-04c21800-91b
606606

607607

608608
=== Related Tests
609-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L200[runnables.rs]
609+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L203[runnables.rs]
610610

611611
Provides a sneak peek of all tests where the current item is used.
612612

@@ -635,7 +635,7 @@ image::https://user-images.githubusercontent.com/48062697/113065582-055aae80-91b
635635

636636

637637
=== Run
638-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L113[runnables.rs]
638+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L116[runnables.rs]
639639

640640
Shows a popup suggesting to run a test/benchmark/binary **at the current cursor
641641
location**. Super useful for repeatedly running just a single test. Do bind this

Diff for: thisweek/_posts/2024-12-30-changelog-266.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ Release: release:2024-12-30[] (`v0.3.2237`)
2828
* pr:18761[] swallow `config value is not set` Cargo error.
2929
* pr:18754[] clean up target fetching for Cargo metadata.
3030
* pr:18785[] clean up toolchain info fetching.
31-
* pr:18750[] revert "disable `rustc` test metrics".
31+
* pr:18750[] revert "disable `rustc` test metrics".
3232
* pr:18787[] automatically cancel CI checks on new push to PR.

Diff for: thisweek/_posts/2025-01-06-changelog-267.adoc

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
= Changelog #267
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:3f2bbe9fed9aba5e34c33d3e44898a332df157b2[] +
7+
Release: release:2025-01-06[] (`v0.3.2249`)
8+
9+
== New Features
10+
11+
* pr:18757[] add support for updating `expect-test`, `insta` and `snapbox` snapshot tests.
12+
* pr:18179[] allow excluding specific traits from completion.
13+
* pr:18801[] show "Go to type definition" actions for generics substitutions on hover.
14+
* pr:18821[] add support for `CoercePointee`.
15+
16+
== Fixes
17+
18+
* pr:18806[] (first contribution) re-enable crate graph de-duplication.
19+
* pr:18797[] (first contribution) generate exhaustive `match` in "Replace `if-let` with ``match``".
20+
* pr:18758[] (first contribution) improve SCIP symbols.
21+
* pr:18835[] hide synthetic locals from completions.
22+
* pr:18791[] avoid generating colliding names in "Extract variable".
23+
* pr:18794[] fix "Fill match arm" producing an extra brace in some proc macros.
24+
* pr:18802[] use the correct `file_id` used for ranges for outgoing calls.
25+
* pr:18807[], pr:18841[] populate cargo config environment variables.
26+
* pr:18826[], pr:18848[], pr:18817[] properly clear flycheck diagnostics.
27+
* pr:18819[] fix overflow detection in MIR evaluation.
28+
* pr:18843[] correctly handle new-style `rustc_intrinsic` safety.
29+
* pr:18845[] check the right package in flycheck.
30+
* pr:18795[], pr:18820[] fix rendering of literals in code blocks.
31+
* pr:18836[] be more permissive with completion resolve data.
32+
* pr:18830[] fix custom snippet deserialization.
33+
34+
== Internal Improvements
35+
36+
* pr:18822[] (first contribution) allow `targetDir` to be an absolute path.
37+
* pr:18327[], pr:18852[] store token trees in contiguous `Vec` instead of as a tree.
38+
* pr:18809[] do not render closure ids in hover messages.
39+
* pr:18790[] define a quoting mechanism instead of textual AST `make`.
40+
* pr:18805[] implement `<RaSpanServer as SourceFile>::eq`.
41+
* pr:18792[] decouple proc macro server protocol from the server implementation.
42+
* pr:18829[], pr:18831[] revert 'revert "disable `rustc` test metrics"'.

0 commit comments

Comments
 (0)