Skip to content

Commit 87f039b

Browse files
committed
Changelog #232
1 parent 757cadb commit 87f039b

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

generated_config.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ by changing `#rust-analyzer.check.invocationStrategy#` and
256256
If `$saved_file` is part of the command, rust-analyzer will pass
257257
the absolute path of the saved file to the provided command. This is
258258
intended to be used with non-Cargo build systems.
259-
Note that `$saved_file` is experimental and may be removed in the futureg.
259+
Note that `$saved_file` is experimental and may be removed in the future.
260260

261261
An example command would be:
262262

generated_features.adoc

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

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

@@ -334,7 +334,7 @@ Note: `?`, `|` and `->` do not currently trigger this behavior in the VSCode edi
334334

335335

336336
=== Hover
337-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/hover.rs#L100[hover.rs]
337+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/hover.rs#L98[hover.rs]
338338

339339
Shows additional information, like the type of an expression or the documentation for a definition when "focusing" code.
340340
Focusing is usually hovering with a mouse, but can also be triggered with a shortcut.
@@ -343,7 +343,7 @@ image::https://user-images.githubusercontent.com/48062697/113020658-b5f98b80-917
343343

344344

345345
=== Inlay Hints
346-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L442[inlay_hints.rs]
346+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L433[inlay_hints.rs]
347347

348348
rust-analyzer shows additional information inline with the source code.
349349
Editors usually render this using read-only virtual text snippets interspersed with code.
@@ -414,7 +414,6 @@ There are postfix completions, which can be triggered by typing something like
414414
- `expr.ref` -> `&expr`
415415
- `expr.refm` -> `&mut expr`
416416
- `expr.let` -> `let $0 = expr;`
417-
- `expr.lete` -> `let $1 = expr else { $0 };`
418417
- `expr.letm` -> `let mut $0 = expr;`
419418
- `expr.not` -> `!expr`
420419
- `expr.dbg` -> `dbg!(expr)`
@@ -464,7 +463,7 @@ image::https://user-images.githubusercontent.com/48062697/113065573-04298180-91b
464463

465464

466465
=== Memory Usage
467-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-db/src/apply_change.rs#L44[apply_change.rs]
466+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-db/src/apply_change.rs#L43[apply_change.rs]
468467

469468
Clears rust-analyzer's internal database and prints memory usage statistics.
470469

@@ -557,7 +556,7 @@ image::https://user-images.githubusercontent.com/48062697/113171066-105c2000-923
557556

558557

559558
=== Open Docs
560-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/doc_links.rs#L120[doc_links.rs]
559+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/doc_links.rs#L122[doc_links.rs]
561560

562561
Retrieve a links to documentation for the given symbol.
563562

@@ -586,7 +585,7 @@ image::https://user-images.githubusercontent.com/48062697/113065580-04c21800-91b
586585

587586

588587
=== Related Tests
589-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L199[runnables.rs]
588+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L195[runnables.rs]
590589

591590
Provides a sneak peek of all tests where the current item is used.
592591

@@ -601,7 +600,7 @@ the selected item. The context menu opens. Select **Peek Related Tests**.
601600

602601

603602
=== Rename
604-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/rename.rs#L73[rename.rs]
603+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/rename.rs#L72[rename.rs]
605604

606605
Renames the item below the cursor and all of its references
607606

@@ -615,7 +614,7 @@ image::https://user-images.githubusercontent.com/48062697/113065582-055aae80-91b
615614

616615

617616
=== Run
618-
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L113[runnables.rs]
617+
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L111[runnables.rs]
619618

620619
Shows a popup suggesting to run a test/benchmark/binary **at the current cursor
621620
location**. Super useful for repeatedly running just a single test. Do bind this

manual.adoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,8 +787,6 @@ There are three ways to feed `rust-project.json` to rust-analyzer:
787787

788788
Relative paths are interpreted relative to `rust-project.json` file location or (for inline JSON) relative to `rootUri`.
789789

790-
See https://github.com/rust-analyzer/rust-project.json-example for a small example.
791-
792790
You can set the `RA_LOG` environment variable to `rust_analyzer=info` to inspect how rust-analyzer handles config and project loading.
793791

794792
Note that calls to `cargo check` are disabled when using `rust-project.json` by default, so compilation errors and warnings will no longer be sent to your LSP client.

0 commit comments

Comments
 (0)