Skip to content

Commit

Permalink
Changelog #247
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Aug 19, 2024
1 parent 945467f commit d84fc67
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 11 deletions.
6 changes: 3 additions & 3 deletions generated_assists.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fn main() {

[discrete]
=== `add_impl_default_members`
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_missing_impl_members.rs#L55[add_missing_impl_members.rs]
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_missing_impl_members.rs#L58[add_missing_impl_members.rs]

Adds scaffold for overriding default impl members.

Expand Down Expand Up @@ -110,7 +110,7 @@ impl Trait for () {

[discrete]
=== `add_impl_missing_members`
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_missing_impl_members.rs#L13[add_missing_impl_members.rs]
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/add_missing_impl_members.rs#L16[add_missing_impl_members.rs]

Adds scaffold for required impl members.

Expand Down Expand Up @@ -2824,7 +2824,7 @@ fn main() {

[discrete]
=== `qualify_path`
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/qualify_path.rs#L23[qualify_path.rs]
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide-assists/src/handlers/qualify_path.rs#L24[qualify_path.rs]

If the name is unresolved, provides all possible qualified paths for it.

Expand Down
16 changes: 8 additions & 8 deletions generated_features.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ Displays the ItemTree of the currently open file, for debugging.


=== Expand Macro Recursively
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/expand_macro.rs#L15[expand_macro.rs]
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/expand_macro.rs#L16[expand_macro.rs]

Shows the full macro expansion of the macro at the current caret position.

Expand Down Expand Up @@ -223,7 +223,7 @@ image::https://user-images.githubusercontent.com/48062697/113020654-b42fc800-917


=== Find All References
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/references.rs#L41[references.rs]
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/references.rs#L42[references.rs]

Shows all references of the item at the cursor location

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


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

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


=== Inlay Hints
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L452[inlay_hints.rs]
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L454[inlay_hints.rs]

rust-analyzer shows additional information inline with the source code.
Editors usually render this using read-only virtual text snippets interspersed with code.
Expand Down Expand Up @@ -605,7 +605,7 @@ image::https://user-images.githubusercontent.com/48062697/113065580-04c21800-91b


=== Related Tests
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L212[runnables.rs]
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L213[runnables.rs]

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

Expand All @@ -620,7 +620,7 @@ the selected item. The context menu opens. Select **Peek Related Tests**.


=== Rename
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/rename.rs#L74[rename.rs]
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/rename.rs#L70[rename.rs]

Renames the item below the cursor and all of its references

Expand All @@ -634,7 +634,7 @@ image::https://user-images.githubusercontent.com/48062697/113065582-055aae80-91b


=== Run
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L112[runnables.rs]
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L113[runnables.rs]

Shows a popup suggesting to run a test/benchmark/binary **at the current cursor
location**. Super useful for repeatedly running just a single test. Do bind this
Expand Down Expand Up @@ -1003,7 +1003,7 @@ image::https://user-images.githubusercontent.com/48062697/113065588-068bdb80-91b


=== View Memory Layout
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/view_memory_layout.rs#L73[view_memory_layout.rs]
**Source:** https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/view_memory_layout.rs#L74[view_memory_layout.rs]

Displays the recursive memory layout of a datatype.

Expand Down
41 changes: 41 additions & 0 deletions thisweek/_posts/2024-08-19-changelog-247.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
= Changelog #247
:sectanchors:
:experimental:
:page-layout: post

Commit: commit:fa003262474185fd62168379500fe906b331824b[] +
Release: release:2024-08-19[] (`v0.3.2078`)

== New Features

* pr:17845[] implement TAIT and fix ATPIT.
* pr:17853[] support `min_exhaustive_patterns`.
* pr:17595[] implement lifetime inference.
* pr:17915[] make rust-analyzer partially work while offline.

== Fixes

* pr:17833[] (first contribution) reuse recursion limit as expansion depth limit.
* pr:17900[] (first contribution) add option to exclude vendored libraries from SCIP/LSIF output.
* pr:17864[] build and run build scripts for LSIF.
* pr:17859[] support `#[rustc_deprecated_safe_2024]`.
* pr:17905[] properly account for editions in names.
* pr:17863[] resolve included files to their calling modules in IDE layer.
* pr:17865[] emit non-exhaustive let diagnostics for async and unsafe blocks.
* pr:17882[] fix panic while canonicalizing erroneous projection type.
* pr:17893[] fix panic on associated functions with type annotations.
* pr:17916[] fix panic while lowering `impl Trait` parameter of parent generics.
* pr:17867[] handle trailing excess comma in "Convert to named struct".

== Internal Improvements

* pr:17903[] (first contribution) don't kill the flycheck process command group.
* pr:17908[] test for word boundary in `FindUsages`.
* pr:17842[], pr:17843[] optimize channel usage.
* pr:17850[] send back empty responses while the VFS is still loading.
* pr:17876[] remove unreachable logic for include token mapping.
* pr:17896[] check the edition for edition-dependent syntax kinds.
* pr:17891[] be more resilient to bad language item definitions in binary operator inference.
* pr:17907[] replace `once_cell` with the `std` types.
* pr:17862[] fix auto-publishing workflow.
* pr:17909[] remove `rust-analyzer.workspace.discoverProjectRunner`.

0 comments on commit d84fc67

Please sign in to comment.