Skip to content

Commit 9ba346e

Browse files
committed
Changelog #65
1 parent 0d0470f commit 9ba346e

File tree

3 files changed

+56
-7
lines changed

3 files changed

+56
-7
lines changed

generated_assists.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ fn qux(bar: Bar, baz: Baz) {}
305305

306306
[discrete]
307307
=== `extract_function`
308-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/extract_function.rs#L27[extract_function.rs]
308+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/extract_function.rs#L30[extract_function.rs]
309309

310310
Extracts selected statements into new function.
311311

@@ -1063,7 +1063,7 @@ fn handle(action: Action) {
10631063

10641064
[discrete]
10651065
=== `move_module_to_file`
1066-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/move_module_to_file.rs#L11[move_module_to_file.rs]
1066+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/assists/src/handlers/move_module_to_file.rs#L12[move_module_to_file.rs]
10671067

10681068
Moves inline module's contents to a separate file.
10691069

generated_features.adoc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,18 @@ Shows the full macro expansion of the macro at current cursor.
7575
|===
7676

7777

78-
=== Extend Selection
78+
=== Expand and Shrink Selection
7979
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide/src/extend_selection.rs#L15[extend_selection.rs]
8080

81-
Extends the current selection to the encompassing syntactic construct
81+
Extends or shrinks the current selection to the encompassing syntactic construct
8282
(expression, statement, item, module, etc). It works with multiple cursors.
8383

84+
This is a standard LSP feature and not a protocol extension.
85+
8486
|===
8587
| Editor | Shortcut
8688

87-
| VS Code | kbd:[Ctrl+Shift+→]
89+
| VS Code | kbd:[Alt+Shift+→], kbd:[Alt+Shift+←]
8890
|===
8991

9092

@@ -105,7 +107,7 @@ Provides a tree of the symbols defined in the file. Can be used to
105107

106108

107109
=== Format String Completion.
108-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/completion/src/completions/postfix/format_like.rs#L0[format_like.rs]
110+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_completion/src/completions/postfix/format_like.rs#L0[format_like.rs]
109111

110112
`"Result {result} is {2 + 2}"` is expanded to the `"Result {} is {}", result, 2 + 2`.
111113

@@ -201,7 +203,7 @@ Join selected lines into one, smartly fixing up whitespace, trailing commas, and
201203

202204

203205
=== Magic Completions
204-
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/completion/src/lib.rs#L29[lib.rs]
206+
**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/ide_completion/src/lib.rs#L29[lib.rs]
205207

206208
In addition to usual reference completion, rust-analyzer provides some ✨magic✨
207209
completions as well:
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
= Changelog #65
2+
:sectanchors:
3+
:page-layout: post
4+
5+
Commit: commit:14de9e54a6d9ef070399b34a11634294a8cc3ca5[] +
6+
Release: release:2021-02-22[]
7+
8+
== Sponsors
9+
10+
**Become a sponsor:** On https://opencollective.com/rust-analyzer/[OpenCollective] or
11+
https://github.com/sponsors/rust-analyzer[GitHub Sponsors].
12+
13+
== New Features
14+
15+
* pr:7620[] support control flow in `extract_function` assist:
16+
+
17+
image::https://user-images.githubusercontent.com/4218373/107544222-0fadf280-6bdb-11eb-9625-ed6194ba92c0.gif[]
18+
19+
* pr:7657[] implement UTF-8 offsets protocol extension from `clangd`.
20+
21+
* pr:7729[] detect musl distros in the Code extension.
22+
23+
24+
== Fixes
25+
* pr:7684[] fix runnable link order.
26+
* pr:7687[] parse `default` in traits impls.
27+
* pr:7703[] allow comments between newlines in chaining hints.
28+
* pr:7704[] avoid transmitting unchanged diagnostics.
29+
* pr:7705[] show hover info of the definition of ConstReference patterns instead of its type.
30+
* pr:7722[] fix incorrect missing field diagnostic with box patterns.
31+
* pr:7724[] consider import prefix settings in flyimport.
32+
* pr:7725[] include where predicates when generating an impl.
33+
* pr:7726[] add `#[doc(hidden)]` completion.
34+
* pr:7730[] retain visibility when extracting inline module to file.
35+
* pr:7732[] fix completions in impl blocks on dyn traits with lifetimes.
36+
* pr:7739[] bump `chalk` fixing `impl Trait` resolution in returned types.
37+
38+
== Internal Improvements
39+
* pr:7690[] extract `fn load_workspace(…)` from `fn load_cargo(…)`.
40+
* pr:7700[] use `npm 7.x` `package-lock.json`.
41+
* pr:7702[] remove use of deprecated `std::collections::Bound`.
42+
* pr:7701[] remove semantic tokens workaround.
43+
* pr:7699[] implement `ast::AstNode` for `NameLike` and move it to `node_ext`.
44+
* pr:7707[] rename `completion` to `ide_completion`
45+
* pr:7723[] fix some typos in the docs
46+
* pr:7727[] fix obsolete "Extend Selection" docs
47+
* pr:7735[] stop mixing `Result` and `Option` with `?` in `inline_local_variable`

0 commit comments

Comments
 (0)