Skip to content

Changelog #105 #163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion generated_assists.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2008,7 +2008,7 @@ fn main() {

[discrete]
=== `replace_derive_with_manual_impl`
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs#L19[replace_derive_with_manual_impl.rs]
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_assists/src/handlers/replace_derive_with_manual_impl.rs#L22[replace_derive_with_manual_impl.rs]

Converts a `derive` impl into a manual one.

Expand Down
10 changes: 5 additions & 5 deletions generated_features.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ Navigates to the declaration of an identifier.


=== Go to Definition
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/goto_definition.rs#L16[goto_definition.rs]
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/goto_definition.rs#L14[goto_definition.rs]

Navigates to the definition of an identifier.

Expand Down Expand Up @@ -324,7 +324,7 @@ Note: `?` and `->` do not currently trigger this behavior in the VSCode editor.


=== Hover
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/hover.rs#L85[hover.rs]
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/hover.rs#L83[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 @@ -333,7 +333,7 @@ image::https://user-images.githubusercontent.com/48062697/113020658-b5f98b80-917


=== Inlay Hints
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L37[inlay_hints.rs]
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/inlay_hints.rs#L36[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 @@ -547,7 +547,7 @@ image::https://user-images.githubusercontent.com/48062697/113065580-04c21800-91b


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

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

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


=== Run
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L114[runnables.rs]
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/runnables.rs#L111[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
38 changes: 38 additions & 0 deletions thisweek/_posts/2021-11-29-changelog-105.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
= Changelog #105
:sectanchors:
:page-layout: post

Commit: commit:d9b2291f546abc77d24499339a72a89127464b95[] +
Release: release:2021-11-29[]

== Sponsors

**Become a sponsor:** On https://opencollective.com/rust-analyzer/[OpenCollective] or
https://github.com/sponsors/rust-analyzer[GitHub Sponsors].

== New Features

* pr:10840[] omit generic defaults for types in hover messages.

== Fixes

* pr:10846[] (first contribution) qualify struct name in constructor completion.
* pr:10809[] don't discard formatting of `use` lines.
* pr:10834[] make lint groups work correctly with `warningsAsInfo` and `warningsAsHint`.
* pr:10839[] fix `mbe::Shift::new` not accounting for non-ident token ids.
* pr:10849[] fix string highlight injection for macros.
* pr:10853[] remove possible multiline details in completions.
* pr:10847[] improve derive attribute path handling in `replace_derive_with_manual_impl`.
* pr:10824[] print full command if `cargo metadata` fails to run.
* pr:10859[] prioritize tuple fields in `highlight_related`.
* pr:10870[] fix macro expansion for ``as _``.
* pr:10876[] show parameter hints unconditionally for logical not expressions.

== Internal Improvements

* pr:10863[], pr:10865[] build per-block `ItemTree`s.
* pr:10828[] doc: document absence of stability guarantees.
* pr:10838[] add the ability to emit token map ids in macro expansion tests.
* pr:10832[] split parts of `ide_db::call_info` off into `ide`.
* pr:10833[] set upstream branch when promoting.
* pr:10835[] pull website before generating new changelog.