File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ authors = ["rust-analyzer developers"]
6
6
7
7
[dependencies ]
8
8
crossbeam-channel = " 0.4.0"
9
- lsp-types = { version = " 0.72 .0" , features = [" proposed" ] }
9
+ lsp-types = { version = " 0.73 .0" , features = [" proposed" ] }
10
10
log = " 0.4.8"
11
11
cargo_metadata = " 0.9.1"
12
12
serde_json = " 1.0.48"
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ globset = "0.4.4"
20
20
itertools = " 0.8.2"
21
21
jod-thread = " 0.1.0"
22
22
log = " 0.4.8"
23
- lsp-types = { version = " 0.72 .0" , features = [" proposed" ] }
23
+ lsp-types = { version = " 0.73 .0" , features = [" proposed" ] }
24
24
parking_lot = " 0.10.0"
25
25
pico-args = " 0.3.1"
26
26
rand = { version = " 0.7.3" , features = [" small_rng" ] }
Original file line number Diff line number Diff line change @@ -85,11 +85,11 @@ pub fn handle_expand_macro(
85
85
pub fn handle_selection_range (
86
86
world : WorldSnapshot ,
87
87
params : req:: SelectionRangeParams ,
88
- ) -> Result < Vec < req:: SelectionRange > > {
88
+ ) -> Result < Option < Vec < req:: SelectionRange > > > {
89
89
let _p = profile ( "handle_selection_range" ) ;
90
90
let file_id = params. text_document . try_conv_with ( & world) ?;
91
91
let line_index = world. analysis ( ) . file_line_index ( file_id) ?;
92
- params
92
+ let res : Result < Vec < req :: SelectionRange > > = params
93
93
. positions
94
94
. into_iter ( )
95
95
. map_conv_with ( & line_index)
@@ -120,7 +120,9 @@ pub fn handle_selection_range(
120
120
}
121
121
Ok ( range)
122
122
} )
123
- . collect ( )
123
+ . collect ( ) ;
124
+
125
+ Ok ( Some ( res?) )
124
126
}
125
127
126
128
pub fn handle_find_matching_brace (
You can’t perform that action at this time.
0 commit comments