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 @@ -804,8 +804,7 @@ impl LanguageServer for Backend {
804
804
return ;
805
805
}
806
806
807
- // ignore the output scheme
808
- if uri. starts_with ( "output:" ) {
807
+ if params. text_document . uri . scheme ( ) == "output" {
809
808
return ;
810
809
}
811
810
You can’t perform that action at this time.
0 commit comments