Skip to content

Commit

Permalink
Changelog #170
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Feb 27, 2023
1 parent 9bd12d4 commit 21c1eb2
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 6 deletions.
5 changes: 4 additions & 1 deletion generated_config.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,10 @@ Additional arguments to `rustfmt`.
+
--
Advanced option, fully override the command rust-analyzer uses for
formatting.
formatting. This should be the equivalent of `rustfmt` here, and
not that of `cargo fmt`. The file contents will be passed on the
standard input and the formatted result will be read from the
standard output.
--
[[rust-analyzer.rustfmt.rangeFormatting.enable]]rust-analyzer.rustfmt.rangeFormatting.enable (default: `false`)::
+
Expand Down
22 changes: 18 additions & 4 deletions generated_features.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,21 @@ image::https://user-images.githubusercontent.com/48062697/113166163-69758500-923
image::https://user-images.githubusercontent.com/48062697/113171066-105c2000-923f-11eb-87ab-f4a263346567.gif[]


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

Retrieve a link to documentation for the given symbol.

The simplest way to use this feature is via the context menu. Right-click on
the selected item. The context menu opens. Select **Open Docs**.

|===
| Editor | Action Name

| VS Code | **rust-analyzer: Open Docs**
|===


=== Parent Module
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/parent_module.rs#L14[parent_module.rs]

Expand All @@ -562,14 +577,13 @@ image::https://user-images.githubusercontent.com/48062697/113065580-04c21800-91b

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

The simplest way to use this feature is via the context menu:
- Right-click on the selected item. The context menu opens.
- Select **Peek related tests**
The simplest way to use this feature is via the context menu. Right-click on
the selected item. The context menu opens. Select **Peek Related Tests**.

|===
| Editor | Action Name

| VS Code | **rust-analyzer: Peek related tests**
| VS Code | **rust-analyzer: Peek Related Tests**
|===


Expand Down
2 changes: 1 addition & 1 deletion thisweek/_posts/2023-02-20-changelog-169.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:page-layout: post

Commit: commit:a6603fc21d50b3386a488c96225b2d1fd492e533[] +
Release: release:2023-02-20[] (`v0.3.1410`)
Release: release:2023-02-20[] (`v0.3.1418`)

== New Features

Expand Down
22 changes: 22 additions & 0 deletions thisweek/_posts/2023-02-27-changelog-170.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
= Changelog #170
:sectanchors:
:experimental:
:page-layout: post

Commit: commit:4e29820f6d9880606a403e7bec6e91312e7f0575[] +
Release: release:2023-02-27[] (`TBD`)

== New Features

* pr:14175[] (first contribution) add "Open Docs" command to the context menu:
+
image::https://user-images.githubusercontent.com/6609145/219976062-b46ab21b-5753-48f5-a1da-562566cae71c.gif["Screen recording showing the Open Docs in the context menu and how it opens docs.rs"]
* pr:14207[] (first contribution) respect `CARGO_HOME` in toolchain detection

== Fixes

* pr:14203[] (first contribution) add check for extra path segments after a fully qualified one.

== Internal Improvements

* pr:14183[] try to improve the `rustfmt.overrideCommand` docs.

0 comments on commit 21c1eb2

Please sign in to comment.