File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,11 @@ impl Document {
237
237
} ,
238
238
)
239
239
} else {
240
- let removal_idx = self . text . try_line_to_char ( range. end . line as usize ) . map_err ( internal_error) ? + ( range. end . character as usize ) ;
240
+ let removal_idx = self
241
+ . text
242
+ . try_line_to_char ( range. end . line as usize )
243
+ . map_err ( internal_error) ?
244
+ + ( range. end . character as usize ) ;
241
245
let slice_size = removal_idx - start_idx;
242
246
self . text
243
247
. try_remove ( start_idx..removal_idx)
Original file line number Diff line number Diff line change @@ -808,8 +808,7 @@ impl LanguageServer for Backend {
808
808
return ;
809
809
}
810
810
811
- // ignore the output scheme
812
- if uri. starts_with ( "output:" ) {
811
+ if params. text_document . uri . scheme ( ) == "output" {
813
812
return ;
814
813
}
815
814
You can’t perform that action at this time.
0 commit comments