Skip to content

Commit 4ac29c2

Browse files
committed
Changelog #237
1 parent d66034f commit 4ac29c2

File tree

4 files changed

+48
-11
lines changed

4 files changed

+48
-11
lines changed

generated_assists.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ fn qux(bar: Bar, baz: Baz) {}
10311031

10321032
[discrete]
10331033
=== `extract_expressions_from_format_string`
1034-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/extract_expressions_from_format_string.rs#L14[extract_expressions_from_format_string.rs]
1034+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/extract_expressions_from_format_string.rs#L18[extract_expressions_from_format_string.rs]
10351035

10361036
Move an expression out of a format string.
10371037

generated_diagnostic.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ This diagnostic is shown for macro expansion errors.
4444

4545

4646
=== macro-error
47-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/macro_error.rs#L17[macro_error.rs]
47+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/macro_error.rs#L16[macro_error.rs]
4848

4949
This diagnostic is shown for macro expansion errors.
5050

generated_features.adoc

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ image::https://user-images.githubusercontent.com/48062697/113020654-b42fc800-917
223223

224224

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

228228
Shows all references of the item at the cursor location
229229

@@ -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#L100[hover.rs]
337+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/hover.rs#L98[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.
@@ -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#L442[inlay_hints.rs]
346+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L433[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.
@@ -414,7 +414,6 @@ There are postfix completions, which can be triggered by typing something like
414414
- `expr.ref` -> `&expr`
415415
- `expr.refm` -> `&mut expr`
416416
- `expr.let` -> `let $0 = expr;`
417-
- `expr.lete` -> `let $1 = expr else { $0 };`
418417
- `expr.letm` -> `let mut $0 = expr;`
419418
- `expr.not` -> `!expr`
420419
- `expr.dbg` -> `dbg!(expr)`
@@ -464,7 +463,7 @@ image::https://user-images.githubusercontent.com/48062697/113065573-04298180-91b
464463

465464

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

469468
Clears rust-analyzer's internal database and prints memory usage statistics.
470469

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

558557

559558
=== Open Docs
560-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/doc_links.rs#L120[doc_links.rs]
559+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/doc_links.rs#L122[doc_links.rs]
561560

562561
Retrieve a links to documentation for the given symbol.
563562

@@ -586,7 +585,7 @@ image::https://user-images.githubusercontent.com/48062697/113065580-04c21800-91b
586585

587586

588587
=== Related Tests
589-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L199[runnables.rs]
588+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L195[runnables.rs]
590589

591590
Provides a sneak peek of all tests where the current item is used.
592591

@@ -601,7 +600,7 @@ the selected item. The context menu opens. Select **Peek Related Tests**.
601600

602601

603602
=== Rename
604-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/rename.rs#L73[rename.rs]
603+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/rename.rs#L72[rename.rs]
605604

606605
Renames the item below the cursor and all of its references
607606

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

616615

617616
=== Run
618-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L113[runnables.rs]
617+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L111[runnables.rs]
619618

620619
Shows a popup suggesting to run a test/benchmark/binary **at the current cursor
621620
location**. Super useful for repeatedly running just a single test. Do bind this
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
= Changelog #237
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:b427d460ebafcd9ba01607a2c920ca7572559288[] +
7+
Release: release:2024-06-10[] (`v0.3.1992`)
8+
9+
== New Features
10+
11+
* pr:17282[] (first contribution) hide items starting with `__` from symbol search.
12+
* pr:17058[] add basic, unstable support for `rust-analyzer.toml`.
13+
14+
IMPORTANT: We don't promise **__any__** stability with this feature yet, any configs exposed may be removed again, the ordering may change etc.
15+
16+
== Fixes
17+
18+
* pr:17352[] do not resolve prelude within block modules.
19+
* pr:17350[] highlight unlinked files more proeminently.
20+
* pr:17360[] don't touch foreign sources when renaming imports.
21+
* pr:17333[] check for snippet support in `extract_expressions_from_format_string`.
22+
* pr:17329[] don't mark `#[rustc_deprecated_safe_2024]` functions as unsafe.
23+
* pr:17353[] fix hover action formatting.
24+
* pr:17308[] prioritize local crates in auto-import.
25+
26+
== Internal Improvements
27+
28+
* pr:17346[], pr:17368[] (first contribution) add submenus to GUI VS Code extension settings.
29+
* pr:17340[] improve `find_path` performance.
30+
* pr:17004[] cache macro calls more aggressively in `Semantics`.
31+
* pr:17312[] add `Function::fn_ptr_type(…)` for obtaining name-erased function types.
32+
* pr:17348[] use fallible indexing in `TypeOrConstParam::source(…)` and `LifetimeParam::source(…)`.
33+
* pr:17365[] expose snippet capability to diagnostic quickfixes.
34+
* pr:17375[] don't intern attribute inputs, as their spans make them unique.
35+
* pr:17341[] clean up inert attribute handling.
36+
* pr:17356[] prefer shorthand `tracing::span` macros.
37+
* pr:17315[] use string interpolation in more places.
38+
* pr:17359[] add version info to VS Code status bar item.

0 commit comments

Comments
 (0)