This commit is contained in:
Aleksey Kladov 2019-04-21 12:52:54 +03:00
parent 57608ecd9d
commit 493bf20b3d
2 changed files with 8 additions and 7 deletions

View File

@ -52,8 +52,8 @@ This list documents LSP features, supported by rust-analyzer.
- [x] [textDocument/documentHighlight](https://microsoft.github.io/language-server-protocol/specification#textDocument_documentHighlight)
- [x] [textDocument/documentSymbol](https://microsoft.github.io/language-server-protocol/specification#textDocument_documentSymbol)
- [x] [textDocument/codeAction](https://microsoft.github.io/language-server-protocol/specification#textDocument_codeAction)
- [x] [textDocument/selectionRange](https://github.com/Microsoft/language-server-protocol/issues/613)
- rust-analyzer.syntaxTree
- rust-analyzer.extendSelection
- rust-analyzer.matchingBrace
- rust-analyzer.parentModule
- rust-analyzer.joinLines

View File

@ -34,14 +34,15 @@ Some features trigger on typing certain characters:
- Enter inside comments automatically inserts `///`
- typing `.` in a chain method call auto-indents
### Commands <kbd>ctrl+shift+p</kbd>
#### Extend Selection
### Extend Selection
Extends the current selection to the encompassing syntactic construct
(expression, statement, item, module, etc). It works with multiple cursors. Do
bind this command to a key, it's super-useful! Expected to be upstreamed to LSP
soonish: https://github.com/Microsoft/language-server-protocol/issues/613
(expression, statement, item, module, etc). It works with multiple cursors. This
is a relatively new feature of LSP:
https://github.com/Microsoft/language-server-protocol/issues/613, check your
editor's LSP library to see if this feature is supported.
### Commands <kbd>ctrl+shift+p</kbd>
#### Run