Skip to content

Commit b79a691

Browse files
committed
Changelog #80
1 parent 817024d commit b79a691

File tree

4 files changed

+49
-15
lines changed

4 files changed

+49
-15
lines changed

generated_assists.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ fn ┃fun_name(n: i32) {
437437

438438
[discrete]
439439
=== `extract_struct_from_enum_variant`
440-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/extract_struct_from_enum_variant.rs#L23[extract_struct_from_enum_variant.rs]
440+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/extract_struct_from_enum_variant.rs#L28[extract_struct_from_enum_variant.rs]
441441

442442
Extracts a struct from enum variant.
443443

@@ -456,7 +456,7 @@ enum A { One(One) }
456456

457457
[discrete]
458458
=== `extract_type_alias`
459-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/extract_type_alias.rs#L5[extract_type_alias.rs]
459+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/extract_type_alias.rs#L8[extract_type_alias.rs]
460460

461461
Extracts the selected type as a type alias.
462462

generated_config.adoc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ similar option.
119119
+
120120
--
121121
Whether to add argument snippets when completing functions.
122+
Only applies when `#rust-analyzer.completion.addCallParenthesis#` is set.
122123
--
123124
[[rust-analyzer.completion.addCallParenthesis]]rust-analyzer.completion.addCallParenthesis (default: `true`)::
124125
+
@@ -136,6 +137,12 @@ Whether to show postfix snippets like `dbg`, `if`, `not`, etc.
136137
Toggles the additional completions that automatically add imports when completed.
137138
Note that your client must specify the `additionalTextEdits` LSP client capability to truly have this feature enabled.
138139
--
140+
[[rust-analyzer.completion.autoself.enable]]rust-analyzer.completion.autoself.enable (default: `true`)::
141+
+
142+
--
143+
Toggles the additional completions that automatically show method calls and field accesses
144+
with `self` prefixed to them when inside a method.
145+
--
139146
[[rust-analyzer.diagnostics.enable]]rust-analyzer.diagnostics.enable (default: `true`)::
140147
+
141148
--
@@ -174,6 +181,11 @@ List of warnings that should be displayed with info severity.
174181
The warnings will be indicated by a blue squiggly underline in code
175182
and a blue icon in the `Problems Panel`.
176183
--
184+
[[rust-analyzer.experimental.procAttrMacros]]rust-analyzer.experimental.procAttrMacros (default: `false`)::
185+
+
186+
--
187+
Expand attribute macros.
188+
--
177189
[[rust-analyzer.files.watcher]]rust-analyzer.files.watcher (default: `"client"`)::
178190
+
179191
--
@@ -216,6 +228,12 @@ Whether to show `Go to Type Definition` action. Only applies when
216228
Whether to show `Implementations` action. Only applies when
217229
`#rust-analyzer.hoverActions.enable#` is set.
218230
--
231+
[[rust-analyzer.hoverActions.references]]rust-analyzer.hoverActions.references (default: `false`)::
232+
+
233+
--
234+
Whether to show `References` action. Only applies when
235+
`#rust-analyzer.hoverActions.enable#` is set.
236+
--
219237
[[rust-analyzer.hoverActions.run]]rust-analyzer.hoverActions.run (default: `true`)::
220238
+
221239
--

generated_features.adoc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -171,23 +171,23 @@ statements, and `region` / `endregion` comment markers.
171171

172172
The following postfix snippets are available:
173173

174-
- `format` -> `format!(...)`
175-
- `panic` -> `panic!(...)`
176-
- `println` -> `println!(...)`
177-
- `log`:
178-
+ `logd` -> `log::debug!(...)`
179-
+ `logt` -> `log::trace!(...)`
180-
+ `logi` -> `log::info!(...)`
181-
+ `logw` -> `log::warn!(...)`
182-
+ `loge` -> `log::error!(...)`
174+
* `format` -> `format!(...)`
175+
* `panic` -> `panic!(...)`
176+
* `println` -> `println!(...)`
177+
* `log`:
178+
** `logd` -> `log::debug!(...)`
179+
** `logt` -> `log::trace!(...)`
180+
** `logi` -> `log::info!(...)`
181+
** `logw` -> `log::warn!(...)`
182+
** `loge` -> `log::error!(...)`
183183

184184
image::https://user-images.githubusercontent.com/48062697/113020656-b560f500-917a-11eb-87de-02991f61beb8.gif[]
185185

186186

187187
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
188188

189189
== Go to Definition
190-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/goto_definition.rs#L15[goto_definition.rs]
190+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/goto_definition.rs#L20[goto_definition.rs]
191191

192192
Navigates to the definition of an identifier.
193193

@@ -235,7 +235,7 @@ image::https://user-images.githubusercontent.com/48062697/113020657-b560f500-917
235235
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
236236

237237
== Hover
238-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/hover.rs#L81[hover.rs]
238+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/hover.rs#L90[hover.rs]
239239

240240
Shows additional information, like type of an expression or documentation for definition when "focusing" code.
241241
Focusing is usually hovering with a mouse, but can also be triggered with a shortcut.
@@ -289,7 +289,7 @@ image::https://user-images.githubusercontent.com/48062697/113020661-b6922200-917
289289
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
290290

291291
== Magic Completions
292-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_completion/src/lib.rs#L34[lib.rs]
292+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_completion/src/lib.rs#L33[lib.rs]
293293

294294
In addition to usual reference completion, rust-analyzer provides some ✨magic✨
295295
completions as well:
@@ -464,7 +464,7 @@ image::https://user-images.githubusercontent.com/48062697/113065580-04c21800-91b
464464
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
465465

466466
== Related Tests
467-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L128[runnables.rs]
467+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L129[runnables.rs]
468468

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

manual.adoc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,22 @@ $ pacman -S rust-analyzer
205205

206206
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
207207

208+
=== Gentoo Linux
209+
210+
`rust-analyzer` is available in the GURU repository:
211+
212+
- https://gitweb.gentoo.org/repo/proj/guru.git/tree/dev-util/rust-analyzer-bin/rust-analyzer-bin-9999.ebuild[`dev-util/rust-analyzer-bin-9999`] (the https://github.com/rust-analyzer/rust-analyzer/releases/latest[latest release] as a live binary ebuild)
213+
214+
If not already, GURU must be enabled (e.g. using `app-eselect/eselect-repository`) and sync'd before running `emerge`:
215+
216+
[source,bash]
217+
----
218+
$ eselect repository enable guru && emaint sync -r guru
219+
$ emerge rust-analyzer-bin
220+
----
221+
222+
// IMPORTANT: master copy of this document lives in the https://github.com/rust-analyzer/rust-analyzer repository
223+
208224
== Emacs
209225

210226
Note this excellent https://robert.kra.hn/posts/2021-02-07_rust-with-emacs/[guide] from https://github.com/rksm[@rksm].

0 commit comments

Comments
 (0)