diff --git a/docs/dev/lsp-features.md b/docs/dev/lsp-features.md index 212d132eed7..57015293cbd 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 cffbb4c7f18..b44a3fce1cf 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