Skip to content

Commit a612f92

Browse files
committed
Belated Changelog#45
1 parent 6e2e178 commit a612f92

File tree

4 files changed

+68
-7
lines changed

4 files changed

+68
-7
lines changed

generated_assists.adoc

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

188188
[discrete]
189189
=== `auto_import`
190-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/auto_import.rs#L19[auto_import.rs]
190+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/auto_import.rs#L18[auto_import.rs]
191191

192192
If the name is unresolved, provides all possible imports for it.
193193

@@ -303,7 +303,7 @@ fn qux(bar: Bar, baz: Baz) {}
303303

304304
[discrete]
305305
=== `extract_struct_from_enum_variant`
306-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/extract_struct_from_enum_variant.rs#L18[extract_struct_from_enum_variant.rs]
306+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/extract_struct_from_enum_variant.rs#L17[extract_struct_from_enum_variant.rs]
307307

308308
Extracts a struct from enum variant.
309309

@@ -1024,7 +1024,7 @@ fn compute() -> Option<i32> { None }
10241024

10251025
[discrete]
10261026
=== `replace_qualified_name_with_use`
1027-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/replace_qualified_name_with_use.rs#L10[replace_qualified_name_with_use.rs]
1027+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/replace_qualified_name_with_use.rs#L9[replace_qualified_name_with_use.rs]
10281028

10291029
Adds a use statement for a given fully-qualified name.
10301030

generated_features.adoc

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,24 @@ Provides a tree of the symbols defined in the file. Can be used to
4040
|===
4141

4242

43+
=== Format String Completion.
44+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/completion/complete_postfix/format_like.rs#L0[format_like.rs]
45+
46+
`"Result {result} is {2 + 2}"` is expanded to the `"Result {} is {}", result, 2 + 2`.
47+
48+
The following postfix snippets are available:
49+
50+
- `format` -> `format!(...)`
51+
- `panic` -> `panic!(...)`
52+
- `println` -> `println!(...)`
53+
- `log`:
54+
+ `logd` -> `log::debug!(...)`
55+
+ `logt` -> `log::trace!(...)`
56+
+ `logi` -> `log::info!(...)`
57+
+ `logw` -> `log::warn!(...)`
58+
+ `loge` -> `log::error!(...)`
59+
60+
4361
=== Go to Definition
4462
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/goto_definition.rs#L18[goto_definition.rs]
4563

@@ -77,7 +95,7 @@ Navigates to the type of an identifier.
7795

7896

7997
=== Hover
80-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/hover.rs#L74[hover.rs]
98+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/hover.rs#L86[hover.rs]
8199

82100
Shows additional information, like type of an expression or documentation for definition when "focusing" code.
83101
Focusing is usually hovering with a mouse, but can also be triggered with a shortcut.
@@ -178,7 +196,7 @@ braces, so it won't confuse generics with comparisons.
178196

179197

180198
=== Memory Usage
181-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_db/src/change.rs#L166[change.rs]
199+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_db/src/apply_change.rs#L95[apply_change.rs]
182200

183201
Clears rust-analyzer's internal database and prints memory usage statistics.
184202

manual.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ Note that installing via `xtask install` does not work for VS Code Remote, inste
113113

114114
Here are some useful self-diagnostic commands:
115115

116-
* **Rust Analyzer: Show RA Version** shows the version of `rust-analyzer` binary
117-
* **Rust Analyzer: Status** prints some statistics about the server, like the few latest LSP requests
116+
* **Rust Analyzer: Show RA Version** shows the version of `rust-analyzer` binary.
117+
* **Rust Analyzer: Status** prints some statistics about the server, and dependency information for the current file.
118118
* To enable server-side logging, run with `env RA_LOG=info` and see `Output > Rust Analyzer Language Server` in VS Code's panel.
119119
* To log all LSP requests, add `"rust-analyzer.trace.server": "verbose"` to the settings and look for `Rust Analyzer Language Server Trace` in the panel.
120120
* To enable client-side logging, add `"rust-analyzer.trace.extension": true` to the settings and open `Output > Rust Analyzer Client` in the panel.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
= Changelog #45
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:97d107e51f765dd486d527043546ca72dc6f7ad1[] +
6+
Release: release:2020-10-05[]
7+
8+
== Sponsors
9+
10+
**Become a sponsor:** On https://opencollective.com/rust-analyzer/[OpenCollective] or
11+
https://github.com/sponsors/rust-analyzer[GitHub Sponsors].
12+
13+
== New Features
14+
15+
* pr:5928[] add method references CodeLens:
16+
+
17+
image::https://user-images.githubusercontent.com/62505555/91858244-95fbfb00-ec71-11ea-90c7-5b3ee067e305.png[]
18+
* pr:5954[] allow overriding command for **Rust Analyzer: Run** action:
19+
+
20+
image::https://user-images.githubusercontent.com/12111581/92306622-2f404f80-ef99-11ea-9bb7-6c6192a2c54a.gif[]
21+
* pr: postfix completions for fmt-like string literals:
22+
+
23+
image::https://user-images.githubusercontent.com/12111581/92998650-a048af80-f523-11ea-8fd8-410146de8caa.gif[]
24+
* pr:6080[] add `linksInHover` config option to remove links from markdown for clients which don't support them.
25+
* pr:6096[] **Rust Analyzer: Status** command now displays dependencies of the current file.
26+
This is helps with trouble shooting project structure issues.
27+
* pr:5997[] better inlay hints in `for` loops:
28+
+
29+
image::https://user-images.githubusercontent.com/12111581/93024580-41a53380-f600-11ea-9bb1-1f8ac141be95.png[]
30+
31+
== Fixes
32+
33+
* pr:6088[] Update chalk, fixing panics in type inference.
34+
* pr:6102[] fix `"rust-analyzer.assist.importMergeBehaviour": "last"`.
35+
36+
== Internal Improvements
37+
38+
* pr:6093[] print current LSP request on panic.
39+
* pr:6019[] remove `make::path_from_text` to keep editing API more structured.
40+
* pr:6116[] update lexer.
41+
* pr:6090[], pr:6114[] additions to the style guide.
42+
* pr:6118[] document internal policy about clippy.
43+
* pr:6123[] unfork testing infarastructure.

0 commit comments

Comments
 (0)