Skip to content

Commit 4c95a48

Browse files
committed
Changelog #180
1 parent d9b7784 commit 4c95a48

File tree

3 files changed

+80
-8
lines changed

3 files changed

+80
-8
lines changed

generated_config.adoc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,11 @@ Controls file watching implementation.
352352
--
353353
Enables highlighting of related references while the cursor is on `break`, `loop`, `while`, or `for` keywords.
354354
--
355+
[[rust-analyzer.highlightRelated.closureCaptures.enable]]rust-analyzer.highlightRelated.closureCaptures.enable (default: `true`)::
356+
+
357+
--
358+
Enables highlighting of all captures of a closure while the cursor is on the `|` or move keyword of a closure.
359+
--
355360
[[rust-analyzer.highlightRelated.exitPoints.enable]]rust-analyzer.highlightRelated.exitPoints.enable (default: `true`)::
356361
+
357362
--
@@ -416,7 +421,12 @@ Whether to show keyword hover popups. Only applies when
416421
[[rust-analyzer.hover.links.enable]]rust-analyzer.hover.links.enable (default: `true`)::
417422
+
418423
--
419-
Use markdown syntax for links in hover.
424+
Use markdown syntax for links on hover.
425+
--
426+
[[rust-analyzer.hover.memoryLayout.enable]]rust-analyzer.hover.memoryLayout.enable (default: `true`)::
427+
+
428+
--
429+
Whether to show memory layout data on hover.
420430
--
421431
[[rust-analyzer.imports.granularity.enforce]]rust-analyzer.imports.granularity.enforce (default: `false`)::
422432
+

generated_features.adoc

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ image::https://user-images.githubusercontent.com/48062697/113020657-b560f500-917
319319

320320

321321
=== Highlight Related
322-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/highlight_related.rs#L36[highlight_related.rs]
322+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/highlight_related.rs#L37[highlight_related.rs]
323323

324324
Highlights constructs related to the thing under the cursor:
325325

@@ -361,6 +361,16 @@ Optionally, one can enable additional hints for
361361
image::https://user-images.githubusercontent.com/48062697/113020660-b5f98b80-917a-11eb-8d70-3be3fd558cdd.png[]
362362

363363

364+
=== Interpret Function
365+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/interpret_function.rs#L9[interpret_function.rs]
366+
367+
|===
368+
| Editor | Action Name
369+
370+
| VS Code | **rust-analyzer: Interpret Function**
371+
|===
372+
373+
364374
=== Join Lines
365375
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/join_lines.rs#L20[join_lines.rs]
366376

@@ -451,7 +461,7 @@ image::https://user-images.githubusercontent.com/48062697/113065573-04298180-91b
451461

452462

453463
=== Memory Usage
454-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-db/src/apply_change.rs#L41[apply_change.rs]
464+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-db/src/apply_change.rs#L40[apply_change.rs]
455465

456466
Clears rust-analyzer's internal database and prints memory usage statistics.
457467

@@ -544,9 +554,9 @@ image::https://user-images.githubusercontent.com/48062697/113171066-105c2000-923
544554

545555

546556
=== Open Docs
547-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/doc_links.rs#L110[doc_links.rs]
557+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/doc_links.rs#L120[doc_links.rs]
548558

549-
Retrieve a link to documentation for the given symbol.
559+
Retrieve a links to documentation for the given symbol.
550560

551561
The simplest way to use this feature is via the context menu. Right-click on
552562
the selected item. The context menu opens. Select **Open Docs**.
@@ -736,6 +746,15 @@ image::https://user-images.githubusercontent.com/48062697/113164457-06cfb980-923
736746
image::https://user-images.githubusercontent.com/48062697/113187625-f7f50100-9250-11eb-825e-91c58f236071.png[]
737747

738748

749+
=== Show Dependency Tree
750+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/fetch_crates.rs#L13[fetch_crates.rs]
751+
752+
Shows a view tree with all the dependencies of this project
753+
754+
|===
755+
image::https://user-images.githubusercontent.com/5748995/229394139-2625beab-f4c9-484b-84ed-ad5dee0b1e1a.png[]
756+
757+
739758
=== Show Syntax Tree
740759
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/syntax_tree.rs#L7[syntax_tree.rs]
741760

@@ -751,7 +770,7 @@ image::https://user-images.githubusercontent.com/48062697/113065586-068bdb80-91b
751770

752771

753772
=== Shuffle Crate Graph
754-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/shuffle_crate_graph.rs#L8[shuffle_crate_graph.rs]
773+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/shuffle_crate_graph.rs#L7[shuffle_crate_graph.rs]
755774

756775
Randomizes all crate IDs in the crate graph, for debugging.
757776

@@ -763,7 +782,7 @@ Randomizes all crate IDs in the crate graph, for debugging.
763782

764783

765784
=== Status
766-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/status.rs#L27[status.rs]
785+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/status.rs#L28[status.rs]
767786

768787
Shows internal statistic about memory usage of rust-analyzer.
769788

@@ -942,7 +961,7 @@ by overwriting the settings object mentioned above, the defaults are:
942961

943962

944963
=== View Crate Graph
945-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/view_crate_graph.rs#L9[view_crate_graph.rs]
964+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/view_crate_graph.rs#L8[view_crate_graph.rs]
946965

947966
Renders the currently loaded crate graph as an SVG graphic. Requires the `dot` tool, which
948967
is part of graphviz, to be installed.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
= Changelog #180
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:833d5301d1ac47b2d3f0a71b67c5887f7481cc4e[] +
7+
Release: release:2023-05-08[] (`TBD`)
8+
9+
== New Features
10+
11+
* pr:11557[] (first contribution) add dependency tree explorer:
12+
+
13+
image::https://user-images.githubusercontent.com/5748995/155822183-1e227c7b-7929-4fc8-8eed-29ccfc5e14fe.png["Screenshot showing a new VS Code panel with a tree of the project dependencies"]
14+
* pr:14662[] (first contribution) support locally-built documentation for `experimental/externalDocs` with compatible clients.
15+
* pr:14664[] MIR episode 4, support arithmentic assignment operators, statics, constants in patterns and associated constants in traits.
16+
* pr:14711[] highlight closure captures when cursor is on `|` or `move`.
17+
* pr:14732[] fix pattern type mismatches for bindings, enable pattern type mismatch diagnostics again.
18+
* pr:14725[] emit function bodies when expanding built-in derives.
19+
* pr:14749[] define problem matcher for panics, kbd:[F8] will go to the panic location in Code.
20+
* pr:14758[] add `rust-analyzer.hover.memoryLayout.enable` config for disabling memory layout info on hover.
21+
22+
== Fixes
23+
24+
* pr:14745[] (first contribution) sort dependencies in VS Code tree view.
25+
* pr:14707[] don't generate already-existing methods on `generate_delegate_methods`.
26+
* pr:14713[] don't highlight escapes in raw strings.
27+
* pr:14714[] exclude `Sized` from go-to actions in hover.
28+
* pr:14705[] fix floating point evaluation and `try` block tracking in MIR.
29+
* pr:14712[] only pass unstable flags to `cargo metadata` from extra args config.
30+
* pr:14738[] use block def maps in body lowering.
31+
* pr:14739[] parse bare dyn types with leading lifetime.
32+
* pr:14750[] ignore impls with `#[rustc_reservation_impl]`
33+
* pr:14748[] show memory layout type aliases.
34+
35+
== Internal Improvements
36+
37+
* pr:14716[] reduce memory consumption by not merging `trait_impls_in_deps` results (saves 59 MB on `self`).
38+
* pr:14720[] use boxed slices instead of ``Vec``s in declarative macros (saves 8 MB on `self`).
39+
* pr:14718[] use `triomphe::Arc` instead of `std::sync::Arc` (saves 4 MB on `self`).
40+
* pr:14715[] refactor symbol index.
41+
* pr:14710[] refactor notification handlers.
42+
* pr:14733[] publish `line-index` and switch to `nohash_hasher`.
43+
* pr:14757[] fix library publish branch filter.

0 commit comments

Comments
 (0)