Skip to content

Commit 4bd20fa

Browse files
committed
Changelog #234
1 parent 7951f81 commit 4bd20fa

File tree

4 files changed

+50
-4
lines changed

4 files changed

+50
-4
lines changed

generated_assists.adoc

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

269269
[discrete]
270270
=== `apply_demorgan`
271-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/apply_demorgan.rs#L17[apply_demorgan.rs]
271+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/apply_demorgan.rs#L16[apply_demorgan.rs]
272272

273273
Apply https://en.wikipedia.org/wiki/De_Morgan%27s_laws[De Morgan's law].
274274
This transforms expressions of the form `!l || !r` into `!(l && r)`.
@@ -292,7 +292,7 @@ fn main() {
292292

293293
[discrete]
294294
=== `apply_demorgan_iterator`
295-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/apply_demorgan.rs#L153[apply_demorgan.rs]
295+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/apply_demorgan.rs#L132[apply_demorgan.rs]
296296

297297
Apply https://en.wikipedia.org/wiki/De_Morgan%27s_laws[De Morgan's law] to
298298
`Iterator::all` and `Iterator::any`.
@@ -2628,7 +2628,7 @@ fn handle(action: Action) {
26282628

26292629
[discrete]
26302630
=== `move_module_to_file`
2631-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/move_module_to_file.rs#L14[move_module_to_file.rs]
2631+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/move_module_to_file.rs#L15[move_module_to_file.rs]
26322632

26332633
Moves inline module's contents to a separate file.
26342634

generated_config.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ for enum variants.
99
--
1010
Placeholder expression to use for missing expressions in assists.
1111
--
12+
[[rust-analyzer.assist.termSearch.fuel]]rust-analyzer.assist.termSearch.fuel (default: `400`)::
13+
+
14+
--
15+
Term search fuel in "units of work" for assists (Defaults to 400).
16+
--
1217
[[rust-analyzer.cachePriming.enable]]rust-analyzer.cachePriming.enable (default: `true`)::
1318
+
1419
--
@@ -373,6 +378,11 @@ Custom completion snippets.
373378
--
374379
Whether to enable term search based snippets like `Some(foo.bar().baz())`.
375380
--
381+
[[rust-analyzer.completion.termSearch.fuel]]rust-analyzer.completion.termSearch.fuel (default: `200`)::
382+
+
383+
--
384+
Term search fuel in "units of work" for autocompletion (Defaults to 200).
385+
--
376386
[[rust-analyzer.diagnostics.disabled]]rust-analyzer.diagnostics.disabled (default: `[]`)::
377387
+
378388
--

manual.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ If you're running Neovim 0.10 or later, you can enable inlay hints via `on_attac
376376
----
377377
lspconfig.rust_analyzer.setup({
378378
on_attach = function(client, bufnr)
379-
vim.lsp.inlay_hint.enable(bufnr)
379+
vim.lsp.inlay_hint.enable(true, { bufnr = bufnr })
380380
end
381381
})
382382
----
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
= Changelog #234
2+
:sectanchors:
3+
:experimental:
4+
:page-layout: post
5+
6+
Commit: commit:21ec8f523812b88418b2bfc64240c62b3dd967bd[] +
7+
Release: release:2024-05-20[] (`v0.3.1966`)
8+
9+
== Note
10+
11+
Because of an infrastructure issue, this release is not available on the VS Code Marketplace.
12+
Of course, you can still download and install the VSIX from GitHub Releases.
13+
14+
15+
16+
== Fixes
17+
18+
* pr:17203[] fix OOM caused by term search.
19+
* pr:17227[] hash file contents to verify it actually changed.
20+
* pr:17225[] interleave function-like and attribute macro expansion in "Expand macro recursively".
21+
* pr:17220[] improve confusing literal hovers.
22+
* pr:17187[] keep parentheses in De Morgan's law assist when the precedence of inner expression is lower.
23+
* pr:17216[] respect path attribute in "Extract module to file".
24+
* pr:17232[] don't emit `--keep-going` with custom build script commands.
25+
26+
== Internal Improvements
27+
28+
* pr:17250[] (first contribution) fix Neovim 0.10 inlay hints config example.
29+
* pr:17241[] (first contribution) fix some typos.
30+
* pr:17221[] make macro parse tree validation lazier.
31+
* pr:17195[] implement `unsafe` attribute parsing.
32+
* pr:17228[] sort computed runnables.
33+
* pr:17243[] add `StaticLifetime` to `hir` API.
34+
* pr:17235[], pr:17238[], pr:17239[], pr:17240[] tweak metrics CI caching.
35+
* pr:17224[] bump `Cargo.lock` dependencies.
36+
* pr:17259[] sync from downstream.

0 commit comments

Comments
 (0)