Skip to content

Commit aadfde8

Browse files
committed
Changelog #219
1 parent 889dfba commit aadfde8

File tree

6 files changed

+58
-4
lines changed

6 files changed

+58
-4
lines changed

generated_assists.adoc

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2330,7 +2330,7 @@ fn main() {
23302330

23312331
[discrete]
23322332
=== `merge_imports`
2333-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/merge_imports.rs#L20[merge_imports.rs]
2333+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/merge_imports.rs#L21[merge_imports.rs]
23342334

23352335
Merges neighbor imports with a common prefix.
23362336

@@ -2576,6 +2576,23 @@ fn t() {}
25762576
```
25772577

25782578

2579+
[discrete]
2580+
=== `normalize_import`
2581+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/normalize_import.rs#L9[normalize_import.rs]
2582+
2583+
Normalizes an import.
2584+
2585+
.Before
2586+
```rust
2587+
use┃ std::{io, {fmt::Formatter}};
2588+
```
2589+
2590+
.After
2591+
```rust
2592+
use std::{fmt::Formatter, io};
2593+
```
2594+
2595+
25792596
[discrete]
25802597
=== `promote_local_to_const`
25812598
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/promote_local_to_const.rs#L19[promote_local_to_const.rs]

generated_config.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,11 @@ Internal config, path to proc-macro server executable.
777777
--
778778
Exclude imports from find-all-references.
779779
--
780+
[[rust-analyzer.references.excludeTests]]rust-analyzer.references.excludeTests (default: `false`)::
781+
+
782+
--
783+
Exclude tests from find-all-references.
784+
--
780785
[[rust-analyzer.rename.allowExternalItems]]rust-analyzer.rename.allowExternalItems (default: `false`)::
781786
+
782787
--

generated_diagnostic.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Diagnoses redundant trait items in a trait impl.
155155

156156

157157
=== type-mismatch
158-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/type_mismatch.rs#L11[type_mismatch.rs]
158+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/type_mismatch.rs#L12[type_mismatch.rs]
159159

160160
This diagnostic is triggered when the type of an expression or pattern does not match
161161
the expected type.

generated_features.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ image::https://user-images.githubusercontent.com/48062697/113065573-04298180-91b
463463

464464

465465
=== Memory Usage
466-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-db/src/apply_change.rs#L43[apply_change.rs]
466+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-db/src/apply_change.rs#L44[apply_change.rs]
467467

468468
Clears rust-analyzer's internal database and prints memory usage statistics.
469469

manual.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ EOF
369369

370370
See https://sharksforarms.dev/posts/neovim-rust/ for more tips on getting started.
371371

372-
Check out https://github.com/simrat39/rust-tools.nvim for a batteries included rust-analyzer setup for Neovim.
372+
Check out https://github.com/mrcjkb/rustaceanvim for a batteries included rust-analyzer setup for Neovim.
373373

374374
==== vim-lsp
375375

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
= Changelog #219
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:39ad79bec5202fda903893034918cb5526bb834c[] +
7+
Release: release:2024-02-05[] (`v0.3.1831`)
8+
9+
== New Features
10+
11+
* pr:16439[] support "Go to definition" from inside ``include!``d files.
12+
* pr:16417[] add "Normalize import" assist and improve "Merge imports".
13+
* pr:16441[] add option to exclude tests from references search results.
14+
15+
== Fixes
16+
17+
* pr:15730[] (first contribution) add postfix completion for `let .. else`.
18+
* pr:16453[] undo special bracket classification in VS Code config.
19+
20+
== Internal Improvements
21+
22+
* pr:16463[] (first contribution) remove references to `abi_amdgpu_kernel`.
23+
* pr:16394[], pr:16456[] extend `tracing` integration and use it in `hprof`.
24+
* pr:16459[] use improved `adjusted_display_range` for all diagnostics.
25+
* pr:16461[] remove unnecessary usages of `ExpansionInfo`.
26+
* pr:16447[] clean up `mir` error variants.
27+
* pr:16479[] use MacOS 12 runners for releases.
28+
* pr:16451[] work through temporarily allowed Clippy lints, part 2.
29+
* pr:16413[] run `clippy` on CI.
30+
* pr:16448[], pr:16469[] add typo check to CI.
31+
* pr:16476[] sync from downstream.
32+
* pr:16416[] VS Code: report conflict with `panicbit.cargo`.

0 commit comments

Comments
 (0)