File tree 3 files changed +10
-4
lines changed
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ anyhow.workspace = true
23
23
crossbeam-channel = " 0.5.5"
24
24
dissimilar.workspace = true
25
25
itertools.workspace = true
26
- scip = " 0.3.1 "
26
+ scip = " 0.3.3 "
27
27
lsp-types = { version = " =0.95.0" , features = [" proposed" ] }
28
28
parking_lot = " 0.12.1"
29
29
xflags = " 0.3.0"
Original file line number Diff line number Diff line change @@ -143,11 +143,14 @@ impl flags::Scip {
143
143
. map ( |hover| hover. markup . as_str ( ) )
144
144
. filter ( |it| !it. is_empty ( ) )
145
145
. map ( |it| vec ! [ it. to_owned( ) ] ) ;
146
+ let position_encoding =
147
+ scip_types:: PositionEncoding :: UTF8CodeUnitOffsetFromLineStart . into ( ) ;
146
148
let signature_documentation =
147
149
token. signature . clone ( ) . map ( |text| scip_types:: Document {
148
150
relative_path : relative_path. clone ( ) ,
149
151
language : "rust" . to_string ( ) ,
150
152
text,
153
+ position_encoding,
151
154
..Default :: default ( )
152
155
} ) ;
153
156
let symbol_info = scip_types:: SymbolInformation {
@@ -181,13 +184,16 @@ impl flags::Scip {
181
184
continue ;
182
185
}
183
186
187
+ let position_encoding =
188
+ scip_types:: PositionEncoding :: UTF8CodeUnitOffsetFromLineStart . into ( ) ;
184
189
documents. push ( scip_types:: Document {
185
190
relative_path,
186
191
language : "rust" . to_string ( ) ,
187
192
occurrences,
188
193
symbols,
189
- special_fields : Default :: default ( ) ,
190
194
text : String :: new ( ) ,
195
+ position_encoding,
196
+ special_fields : Default :: default ( ) ,
191
197
} ) ;
192
198
}
193
199
You can’t perform that action at this time.
0 commit comments