Skip to content

Changelog #112 #178

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
Jan 17, 2022
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
13 changes: 9 additions & 4 deletions generated_config.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,12 @@ Only applies when `#rust-analyzer.completion.addCallParenthesis#` is set.
--
Whether to add parenthesis when completing functions.
--
[[rust-analyzer.completion.snippets]]rust-analyzer.completion.snippets (default: `{
[[rust-analyzer.completion.snippets]]rust-analyzer.completion.snippets::
+
--
Default:
----
{
"Arc::new": {
"postfix": "arc",
"body": "Arc::new(${receiver})",
Expand Down Expand Up @@ -186,10 +191,10 @@ Whether to add parenthesis when completing functions.
"description": "Wrap the expression in an `Option::Some`",
"scope": "expr"
}
}`)::
+
--
}
----
Custom completion snippets.

--
[[rust-analyzer.completion.postfix.enable]]rust-analyzer.completion.postfix.enable (default: `true`)::
+
Expand Down
4 changes: 2 additions & 2 deletions generated_features.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ image::https://user-images.githubusercontent.com/48062697/113065578-04c21800-91b


=== On Typing Assists
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/typing.rs#L39[typing.rs]
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/typing.rs#L37[typing.rs]

Some features trigger on typing certain characters:

Expand Down Expand Up @@ -941,7 +941,7 @@ image::https://user-images.githubusercontent.com/48062697/113065588-068bdb80-91b


=== Workspace Symbol
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_db/src/symbol_index.rs#L159[symbol_index.rs]
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_db/src/symbol_index.rs#L156[symbol_index.rs]

Uses fuzzy-search to find types, modules and functions by name across your
project and dependencies. This is **the** most useful feature, which improves code
Expand Down
4 changes: 3 additions & 1 deletion manual.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,9 @@ You'll need to close and reopen all .rs and Cargo files, or to restart the IDE,
=== Kate Text Editor

Support for the language server protocol is built into Kate through the LSP plugin, which is included by default.
It is preconfigured to use Rls for rust sources, but allows you to use rust-analyzer through a simple settings change.
It is preconfigured to use rust-analyzer for Rust sources since Kate 21.12.

Earlier versions allow you to use rust-analyzer through a simple settings change.
In the LSP Client settings of Kate, copy the content of the third tab "default parameters" to the second tab "server configuration".
Then in the configuration replace:
[source,json]
Expand Down
37 changes: 37 additions & 0 deletions thisweek/_posts/2022-01-17-changelog-112.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
= Changelog #112
:sectanchors:
:page-layout: post

Commit: commit:e6e72809e3b55da3a57af95e6445a12729331ad6[] +
Release: release:2022-01-17[]

== Sponsors

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

== New Features

* pr:11258[] (first contribution) Kate uses rust-analyzer by default now.
* pr:11210[], pr:11292[] deprioritize ops and comparison methods in completion.
* pr:11248[] take arm types into consideration in `Merge match assist`.

== Fixes

* pr:11247[] print a single ellipsis for any number of omitted types.
* pr:11257[] report missing macro diagnostics in item bodies.
* pr:11259[] fix `use super::{super::...};`.
* pr:11261[] don't complete attributes with existing expressions.
* pr:11263[] don't drop param completions when fully typing out a pattern.
* pr:11265[] fix postfix completion panic.
* pr:11282[] properly cache files in Semantics when ascending macros.
* pr:11283[] adjust auto-indentation when typing `.`.
* pr:11287[] quiet down "overly long loop turn" messages during project load.

== Internal Improvements

* pr:11266[], pr:11267[], pr:11274[] restore `hir` API boundary.
* pr:11284[] remove redundant recursion limit.
* pr:11276[] clean up `HasFormatSpecifier::lex_format_specifier` slightly.
* pr:11286[] clean up associated item collection.
* pr:11294[] move format specifier lexing from `syntax` to `ide_db`.