aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorLaurențiu Nicola <[email protected]>2021-02-20 15:06:00 +0000
committerLaurențiu Nicola <[email protected]>2021-02-20 15:18:53 +0000
commit4c589aded0a7d63f5890f7c83d9f241082d07fd9 (patch)
treed383816f4d8421606cbfc7fb4db9341e28457ea9 /crates
parent1349f6a79177c6b1ba6880cd5d675c12df70688c (diff)
Remove documentation of obsolete extend selection command
Diffstat (limited to 'crates')
-rw-r--r--crates/ide/src/extend_selection.rs8
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
13use crate::FileRange; 13use 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// |===
25pub(crate) fn extend_selection(db: &RootDatabase, frange: FileRange) -> TextRange { 27pub(crate) fn extend_selection(db: &RootDatabase, frange: FileRange) -> TextRange {
26 let sema = Semantics::new(db); 28 let sema = Semantics::new(db);