Skip to content

Commit

Permalink
refactor: remove unnecessary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
McPatate committed Feb 6, 2024
1 parent 15859bc commit d0a02eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion crates/llm-ls/src/document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,11 @@ impl Document {
},
)
} else {
let removal_idx = self.text.try_line_to_char(range.end.line as usize).map_err(internal_error)? + (range.end.character as usize);
let removal_idx = self
.text
.try_line_to_char(range.end.line as usize)
.map_err(internal_error)?
+ (range.end.character as usize);
let slice_size = removal_idx - start_idx;
self.text
.try_remove(start_idx..removal_idx)
Expand Down
3 changes: 1 addition & 2 deletions crates/llm-ls/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,7 @@ impl LanguageServer for Backend {
return;
}

// ignore the output scheme
if uri.starts_with("output:") {
if params.text_document.uri.scheme() == "output" {
return;
}

Expand Down

0 comments on commit d0a02eb

Please sign in to comment.