From 493bf20b3d1a0a890514d5252901f13d2878ff34 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 21 Apr 2019 12:52:54 +0300 Subject: fix docs --- docs/dev/lsp-features.md | 2 +- docs/user/features.md | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'docs') diff --git a/docs/dev/lsp-features.md b/docs/dev/lsp-features.md index 212d132ee..57015293c 100644 --- a/docs/dev/lsp-features.md +++ b/docs/dev/lsp-features.md @@ -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 diff --git a/docs/user/features.md b/docs/user/features.md index cffbb4c7f..b44a3fce1 100644 --- a/docs/user/features.md +++ b/docs/user/features.md @@ -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 ctrl+shift+p - -#### 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 ctrl+shift+p #### Run -- cgit v1.2.3