Skip to content

Commit a1e62e8

Browse files
committed
Changelog #125
1 parent 1d1f7d2 commit a1e62e8

4 files changed

Lines changed: 68 additions & 4 deletions

File tree

generated_config.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,13 @@ List of features to activate.
6464
--
6565
Run build scripts (`build.rs`) for more precise code analysis.
6666
--
67+
[[rust-analyzer.cargo.runBuildScriptsCommand]]rust-analyzer.cargo.runBuildScriptsCommand (default: `null`)::
68+
+
69+
--
70+
Advanced option, fully override the command rust-analyzer uses to
71+
run build scripts and build procedural macros. The command should
72+
include `--message-format=json` or a similar option.
73+
--
6774
[[rust-analyzer.cargo.useRustcWrapperForBuildScripts]]rust-analyzer.cargo.useRustcWrapperForBuildScripts (default: `true`)::
6875
+
6976
--

generated_features.adoc

Lines changed: 4 additions & 1 deletion
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-analyzer/rust-analyzer/blob/master/crates/ide/src/references.rs#L40[references.rs]
226+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/references.rs#L42[references.rs]
227227

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

@@ -523,8 +523,11 @@ image::https://user-images.githubusercontent.com/48062697/113065578-04c21800-91b
523523
Some features trigger on typing certain characters:
524524

525525
- typing `let =` tries to smartly add `;` if `=` is followed by an existing expression
526+
- typing `=` between two expressions adds `;` when in statement position
527+
- typing `=` to turn an assignment into an equality comparison removes `;` when in expression position
526528
- typing `.` in a chain method call auto-indents
527529
- typing `{` in front of an expression inserts a closing `}` after the expression
530+
- typing `{` in a use item adds a closing `}` in the right place
528531

529532
VS Code::
530533

manual.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ Just add this to your `settings.json`:
722722
{
723723
"editor.inlayHints.fontFamily": "Courier New",
724724
"editor.inlayHints.fontSize": 11,
725-
725+
726726
"workbench.colorCustomizations": {
727727
// Name of the theme you are currently using
728728
"[Default Dark+]": {
@@ -797,8 +797,8 @@ For example:
797797
[source,json]
798798
----
799799
{
800-
"key": "ctrl+i",
801-
"command": "rust-analyzer.toggleInlayHints",
800+
"key": "ctrl+alt+d",
801+
"command": "rust-analyzer.openDocs",
802802
"when": "inRustProject"
803803
}
804804
----
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
= Changelog #125
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:65fbe0a8d17fc257f037f4dd465bff69a3d3054a[] +
6+
Release: release:2022-04-18[]
7+
8+
== Announcement
9+
10+
Since this week, `rust-analyzer` has https://github.com/rust-lang/rust-analyzer[a new home]!
11+
The repository now lives in the `rust-lang` GitHub organization.
12+
If you're an existing user or contributor there's no need to take action but if you encounter any glitches, please report them and stay calm.
13+
14+
== New Features
15+
16+
* pr:11935[], pr:12006[] switch to LSP inlay hints (requires VS Code 1.66).
17+
* pr:11961[] deprioritize already-imported names in `use` items:
18+
+
19+
image::https://user-images.githubusercontent.com/1786438/162790376-6b133925-7cf9-46c5-b0e2-d8c3cba61d47.png[]
20+
* pr:11971[] add trailing `;` when typing `=` in assignment:
21+
+
22+
image::https://user-images.githubusercontent.com/1786438/163022079-1ed114ef-7c75-490f-a8ed-731a13f0b44d.gif[]
23+
* pr:11956[] allow customizing the command for running build scripts.
24+
* pr:12014[] attempt to format `expand_macro` output with `rustfmt` if possible.
25+
26+
== Fixes
27+
28+
* pr:11957[] (first contribution) fix GAT panics.
29+
* pr:11883[] move module directory on rename.
30+
* pr:11967[] fix trait impl completions not triggering after `fn`/`const`/`type`:
31+
+
32+
image::https://user-images.githubusercontent.com/1786438/162996087-56540f5e-a6be-4111-a4a5-8de21f483a5e.png[]
33+
* pr:11969[] add trailing `;` when completing associated const/type in trait impl.
34+
* pr:11992[] resolve `uN::method` even when `use std::uN;` is present.
35+
* pr:11993[] enable ADT keyword completions in block expressions.
36+
* pr:12000[] tag `macro_rules` macro bang with `MacroBang` tag.
37+
* pr:12001[] do reference search on all downmapped tokens with the same kind only.
38+
* pr:12002[], pr:12008[] fix source root panic in global state when switching git branches.
39+
* pr:11991[] fix completion detail for async functions and RPITs.
40+
* pr:12011[] show `impl Trait` in argument positon in completion details.
41+
* pr:12013[] support `associated_const_equality` in parser.
42+
43+
== Internal Improvements
44+
45+
* pr:11980[] (first contribution) update repository URL.
46+
* pr:11964[] unset test feature in rustc source crates.
47+
* pr:11970[] bump chalk to fix most type mismatches in the `rust-analyzer` repo.
48+
* pr:11958[] show config deseralization failures on start up.
49+
* pr:11960[] show more project building errors to the user.
50+
* pr:11990[] improve `ItemTree` pretty print output.
51+
* pr:11999[] update feature list in VS Code extension README.
52+
* pr:12003[] remove duplicated crate id field from `hir::Type`.
53+
* pr:12005[] remove frequent `Arc<Body>` clones in type checking.
54+
* pr:12009[] add more visibility into why the project gets reloaded.

0 commit comments

Comments
 (0)