diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-02-20 15:31:59 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-02-20 15:31:59 +0000 |
commit | de67469f59d5c16e9b4ca106a0265bb8b1585c83 (patch) | |
tree | d383816f4d8421606cbfc7fb4db9341e28457ea9 /crates/ide | |
parent | 1349f6a79177c6b1ba6880cd5d675c12df70688c (diff) | |
parent | 4c589aded0a7d63f5890f7c83d9f241082d07fd9 (diff) |
Merge #7727
7727: Remove documentation of obsolete extend selection command r=matklad a=lnicola
Closes #7454
This is available in LSP as `textDocument/selectionRange` and no longer exists as a stand-alone command, so we shouldn't mention it in the manual because it's confusing (it doesn't appear in `package.json`).
Co-authored-by: Laurențiu Nicola <[email protected]>
Diffstat (limited to 'crates/ide')
-rw-r--r-- | crates/ide/src/extend_selection.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crates/ide/src/extend_selection.rs b/crates/ide/src/extend_selection.rs index 2d722dee0..b540d04fe 100644 --- a/crates/ide/src/extend_selection.rs +++ b/crates/ide/src/extend_selection.rs | |||
@@ -12,15 +12,17 @@ use syntax::{ | |||
12 | 12 | ||
13 | use crate::FileRange; | 13 | use crate::FileRange; |
14 | 14 | ||
15 | // Feature: Extend Selection | 15 | // Feature: Expand and Shrink Selection |
16 | // | 16 | // |
17 | // Extends the current selection to the encompassing syntactic construct | 17 | // Extends or shrinks the current selection to the encompassing syntactic construct |
18 | // (expression, statement, item, module, etc). It works with multiple cursors. | 18 | // (expression, statement, item, module, etc). It works with multiple cursors. |
19 | // | 19 | // |
20 | // This is a standard LSP feature and not a protocol extension. | ||
21 | // | ||
20 | // |=== | 22 | // |=== |
21 | // | Editor | Shortcut | 23 | // | Editor | Shortcut |
22 | // | 24 | // |
23 | // | VS Code | kbd:[Ctrl+Shift+→] | 25 | // | VS Code | kbd:[Alt+Shift+→], kbd:[Alt+Shift+←] |
24 | // |=== | 26 | // |=== |
25 | pub(crate) fn extend_selection(db: &RootDatabase, frange: FileRange) -> TextRange { | 27 | pub(crate) fn extend_selection(db: &RootDatabase, frange: FileRange) -> TextRange { |
26 | let sema = Semantics::new(db); | 28 | let sema = Semantics::new(db); |