Skip to content

Commit 3864b62

Browse files
committed
Changelog #152
1 parent 44132bf commit 3864b62

File tree

4 files changed

+73
-15
lines changed

4 files changed

+73
-15
lines changed

generated_assists.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ impl Default for Version {
976976

977977
[discrete]
978978
=== `generate_default_from_new`
979-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_default_from_new.rs#L14[generate_default_from_new.rs]
979+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_default_from_new.rs#L13[generate_default_from_new.rs]
980980

981981
Generates default implementation from new method.
982982

@@ -1355,7 +1355,7 @@ fn bar(arg: &str, baz: Baz) ${0:-> _} {
13551355

13561356
[discrete]
13571357
=== `generate_getter`
1358-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_getter.rs#L10[generate_getter.rs]
1358+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_getter.rs#L13[generate_getter.rs]
13591359

13601360
Generate a getter method.
13611361

@@ -1382,7 +1382,7 @@ impl Person {
13821382

13831383
[discrete]
13841384
=== `generate_getter_mut`
1385-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_getter.rs#L50[generate_getter.rs]
1385+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/generate_getter.rs#L53[generate_getter.rs]
13861386

13871387
Generate a mut getter method.
13881388

generated_config.adoc

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,25 @@ Automatically refresh project info via `cargo metadata` on
2424
--
2525
Run build scripts (`build.rs`) for more precise code analysis.
2626
--
27+
[[rust-analyzer.cargo.buildScripts.invocationLocation]]rust-analyzer.cargo.buildScripts.invocationLocation (default: `"workspace"`)::
28+
+
29+
--
30+
Specifies the working directory for running build scripts.
31+
- "workspace": run build scripts for a workspace in the workspace's root directory.
32+
This is incompatible with `#rust-analyzer.cargo.buildScripts.invocationStrategy#` set to `once`.
33+
- "root": run build scripts in the project's root directory.
34+
This config only has an effect when `#rust-analyzer.cargo.buildScripts.overrideCommand#`
35+
is set.
36+
--
37+
[[rust-analyzer.cargo.buildScripts.invocationStrategy]]rust-analyzer.cargo.buildScripts.invocationStrategy (default: `"per_workspace"`)::
38+
+
39+
--
40+
Specifies the invocation strategy to use when running the build scripts command.
41+
If `per_workspace` is set, the command will be executed for each workspace.
42+
If `once` is set, the command will be executed once.
43+
This config only has an effect when `#rust-analyzer.cargo.buildScripts.overrideCommand#`
44+
is set.
45+
--
2746
[[rust-analyzer.cargo.buildScripts.overrideCommand]]rust-analyzer.cargo.buildScripts.overrideCommand (default: `null`)::
2847
+
2948
--
@@ -118,6 +137,25 @@ List of features to activate. Defaults to
118137

119138
Set to `"all"` to pass `--all-features` to Cargo.
120139
--
140+
[[rust-analyzer.checkOnSave.invocationLocation]]rust-analyzer.checkOnSave.invocationLocation (default: `"workspace"`)::
141+
+
142+
--
143+
Specifies the working directory for running checks.
144+
- "workspace": run checks for workspaces in the corresponding workspaces' root directories.
145+
This falls back to "root" if `#rust-analyzer.cargo.checkOnSave.invocationStrategy#` is set to `once`.
146+
- "root": run checks in the project's root directory.
147+
This config only has an effect when `#rust-analyzer.cargo.buildScripts.overrideCommand#`
148+
is set.
149+
--
150+
[[rust-analyzer.checkOnSave.invocationStrategy]]rust-analyzer.checkOnSave.invocationStrategy (default: `"per_workspace"`)::
151+
+
152+
--
153+
Specifies the invocation strategy to use when running the checkOnSave command.
154+
If `per_workspace` is set, the command will be executed for each workspace.
155+
If `once` is set, the command will be executed once.
156+
This config only has an effect when `#rust-analyzer.cargo.buildScripts.overrideCommand#`
157+
is set.
158+
--
121159
[[rust-analyzer.checkOnSave.noDefaultFeatures]]rust-analyzer.checkOnSave.noDefaultFeatures (default: `null`)::
122160
+
123161
--

generated_diagnostic.adoc

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ This diagnostic is shown for code with inactive `#[cfg]` attributes.
1818
This diagnostic is triggered if an item name doesn't follow https://doc.rust-lang.org/1.0.0/style/style/naming/README.html[Rust naming convention].
1919

2020

21-
=== incorrect-try-target
22-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/incorrect_try_expr.rs#L5[incorrect_try_expr.rs]
23-
24-
This diagnostic is triggered if a question mark operator was used in a context where it is not applicable.
25-
26-
2721
=== invalid-derive-target
2822
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/invalid_derive_target.rs#L3[invalid_derive_target.rs]
2923

@@ -81,12 +75,6 @@ This diagnostic is triggered if an operation marked as `unsafe` is used outside
8175
This diagnostic is triggered if created structure does not have field provided in record.
8276

8377

84-
=== not-implemented
85-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/not_implemented.rs#L5[not_implemented.rs]
86-
87-
This diagnostic is triggered if a type doesn't implement a necessary trait.
88-
89-
9078
=== replace-filter-map-next-with-find-map
9179
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-diagnostics/src/handlers/replace_filter_map_next_with_find_map.rs#L11[replace_filter_map_next_with_find_map.rs]
9280

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
= Changelog #152
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:43fb9563b2943d6abc5f3552195f3e27ac618966[] +
6+
Release: release:2022-10-24[]
7+
8+
== New Features
9+
10+
* pr:13427[] make flycheck progress reports cancellable:
11+
+
12+
image::https://user-images.githubusercontent.com/3757771/196205329-2df93451-c143-4d1b-a700-d988edf55efa.gif[]
13+
* pr:13423[] substitute some variables in the VS Code client.
14+
* pr:13365[] add multiple getters mode to `Generate getter`.
15+
16+
== Fixes
17+
18+
* pr:13433[] revert "pr:13354[] diagnose some incorrect usages of the question mark operator".
19+
* pr:13463[] support const generics in built-in derive macros.
20+
* pr:13428[], pr:13447[] fix formatting requests hanging during start-up.
21+
* handle projects sharing common dependencies in `once` strategy.
22+
* pr:13448[] work around a Python extension polyfill.
23+
* pr:13451[] handle language configuration changes properly.
24+
25+
== Internal Improvements
26+
27+
* pr:13460[] (first contribution) clean up the SCIP implementation slightly.
28+
* pr:13426[], pr:13444[] refactor language client handling.
29+
* pr:13128[], pr:13466[], pr:13471[] allow running build scripts and check only once, in the workspace root.
30+
* pr:13453[] handle Code commands when the server is stopped.
31+
* pr:13399[] migrate assists to format args captures, part 2.
32+
* pr:13461[] remove unnecessary continue.

0 commit comments

Comments
 (0)