diff --git a/generated_config.adoc b/generated_config.adoc index 88dcacfe..f7a533c7 100644 --- a/generated_config.adoc +++ b/generated_config.adoc @@ -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})", @@ -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`):: + diff --git a/generated_features.adoc b/generated_features.adoc index 9f925d8f..c4576528 100644 --- a/generated_features.adoc +++ b/generated_features.adoc @@ -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: @@ -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 diff --git a/manual.adoc b/manual.adoc index 13165e8d..a5496048 100644 --- a/manual.adoc +++ b/manual.adoc @@ -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] diff --git a/thisweek/_posts/2022-01-17-changelog-112.adoc b/thisweek/_posts/2022-01-17-changelog-112.adoc new file mode 100644 index 00000000..d921d2d1 --- /dev/null +++ b/thisweek/_posts/2022-01-17-changelog-112.adoc @@ -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`.