Skip to content

Commit 79f2574

Browse files
committed
Changelog #217
1 parent be2d9e1 commit 79f2574

File tree

5 files changed

+72
-6
lines changed

5 files changed

+72
-6
lines changed

generated_assists.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ fn main() {
324324

325325
[discrete]
326326
=== `auto_import`
327-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/auto_import.rs#L71[auto_import.rs]
327+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/auto_import.rs#L73[auto_import.rs]
328328

329329
If the name is unresolved, provides all possible imports for it.
330330

@@ -2330,9 +2330,9 @@ 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#L17[merge_imports.rs]
2333+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/merge_imports.rs#L20[merge_imports.rs]
23342334

2335-
Merges two imports with a common prefix.
2335+
Merges neighbor imports with a common prefix.
23362336

23372337
.Before
23382338
```rust

generated_config.adoc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,16 @@ Unsetting this disables sysroot loading.
121121

122122
This option does not take effect until rust-analyzer is restarted.
123123
--
124+
[[rust-analyzer.cargo.sysrootQueryMetadata]]rust-analyzer.cargo.sysrootQueryMetadata (default: `false`)::
125+
+
126+
--
127+
Whether to run cargo metadata on the sysroot library allowing rust-analyzer to analyze
128+
third-party dependencies of the standard libraries.
129+
130+
This will cause `cargo` to create a lockfile in your sysroot directory. rust-analyzer
131+
will attempt to clean up afterwards, but nevertheless requires the location to be
132+
writable to.
133+
--
124134
[[rust-analyzer.cargo.sysrootSrc]]rust-analyzer.cargo.sysrootSrc (default: `null`)::
125135
+
126136
--
@@ -767,6 +777,11 @@ Internal config, path to proc-macro server executable.
767777
--
768778
Exclude imports from find-all-references.
769779
--
780+
[[rust-analyzer.rename.allowExternalItems]]rust-analyzer.rename.allowExternalItems (default: `false`)::
781+
+
782+
--
783+
Allow renaming of items not belonging to the loaded workspaces.
784+
--
770785
[[rust-analyzer.runnables.command]]rust-analyzer.runnables.command (default: `null`)::
771786
+
772787
--

generated_features.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ It has the following configurations:
4747
- `item`: Don't merge imports at all, creating one import per item.
4848
- `preserve`: Do not change the granularity of any imports. For auto-import this has the same
4949
effect as `item`.
50+
- `one`: Merge all imports into a single use statement as long as they have the same visibility
51+
and attributes.
5052

5153
In `VS Code` the configuration for this is `rust-analyzer.imports.granularity.group`.
5254

@@ -221,7 +223,7 @@ image::https://user-images.githubusercontent.com/48062697/113020654-b42fc800-917
221223

222224

223225
=== Find All References
224-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/references.rs#L45[references.rs]
226+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/references.rs#L44[references.rs]
225227

226228
Shows all references of the item at the cursor location
227229

@@ -554,7 +556,7 @@ image::https://user-images.githubusercontent.com/48062697/113171066-105c2000-923
554556

555557

556558
=== Open Docs
557-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/doc_links.rs#L123[doc_links.rs]
559+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/doc_links.rs#L122[doc_links.rs]
558560

559561
Retrieve a links to documentation for the given symbol.
560562

manual.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,8 @@ https://docs.helix-editor.com/[Helix] supports LSP by default.
512512
However, it won't install `rust-analyzer` automatically.
513513
You can follow instructions for installing <<rust-analyzer-language-server-binary,`rust-analyzer` binary>>.
514514

515-
=== Visual Studio 2022
515+
[#visual-studio]
516+
=== [[visual-studio-2022]]Visual Studio 2022
516517

517518
There are multiple rust-analyzer extensions for Visual Studio 2022 on Windows:
518519

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
= Changelog #217
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:d410d4a2baf9e99b37b03dd42f06238b14374bf7[] +
7+
Release: release:2024-01-22[] (`v0.3.1815`)
8+
9+
== New Features
10+
11+
* pr:16370[] show additional value information when hovering over literals.
12+
* pr:16374[], pr:16375[] show implemented notable traits on hover.
13+
* pr:16391[] add config to allow renaming of non-local definitions.
14+
* pr:16372[] add `One` import granularity.
15+
16+
== Fixes
17+
18+
* pr:16349[] add error recovery for `use_tree_list` parsing:
19+
+
20+
image::https://user-images.githubusercontent.com/71162630/295905079-30a58c40-2711-48d2-b2e5-fb208fc8636c.png["Screenshot showing only one error for an unclosed brace in a use declaration"]
21+
* pr:16385[] fix intra-doc links.
22+
* pr:15868[] infer `OUT_DIR` when workspace root contains a symlink.
23+
* pr:16396[] fix panic when extracting struct from enum variant.
24+
* pr:16378[] handle `SelfParam` better in "Inline call".
25+
* pr:16405[] include `for` in "Convert to guarded return".
26+
* pr:16314[] parse `macro_rules` as macro name.
27+
* pr:16367[] make `value_ty` query fallible.
28+
29+
== Internal Improvements
30+
31+
* pr:15636[], pr:16383[] (first contribution) show which roots are being scanned in progress messages.
32+
* pr:16196[] (first contribution) rename `generator` to `coroutine`.
33+
* pr:16409[] (first contribution) remove some unused code.
34+
* pr:16350[] speed up line index calculation via NEON for aarch64.
35+
* pr:16395[] speed up line ending normalization using `memchr`.
36+
* pr:16366[] make data queries transparent over their diagnostics variant.
37+
* pr:16352[], pr:16389[] port ``rustfmt``'s algorithm for import ordering.
38+
* pr:16351[] eagerly lower enum variants in `CrateDefMap` construction.
39+
* pr:16388[] record `FnAbi`.
40+
* pr:16356[] add unstable config for loading the sysroot sources via `cargo metadata`.
41+
* pr:16380[], pr:16387[] run `cargo metadata` on sysroot for CI metrics.
42+
* pr:16384[] make use of some new `SmolStr` improvements.
43+
* pr:16397[] refactor `macro_call` to be consistent with other parsers.
44+
* pr:16398[] automatically fix Clippy lints.
45+
* pr:16401[] expand lint tables and make Clippy happy.
46+
* pr:16404[] work through temporarily allowed Clippy lints, part 1.
47+
* pr:16406[] add `max_line_length` to `.editorconfig`.
48+
* pr:16364[], pr:16412[] sync from downstream.

0 commit comments

Comments
 (0)