mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
chore(ci): fix lsp bench due to notification that was accidentally added (#14148)
This commit is contained in:
parent
85e16a08c7
commit
4a0b2c28a1
1 changed files with 6 additions and 7 deletions
|
@ -1063,13 +1063,12 @@ impl Inner {
|
||||||
};
|
};
|
||||||
|
|
||||||
match format_result {
|
match format_result {
|
||||||
Ok(new_text) => new_text.map(|new_text| {
|
Ok(Some(new_text)) => Some(text::get_edits(
|
||||||
text::get_edits(
|
document.content().as_str(),
|
||||||
document.content().as_str(),
|
&new_text,
|
||||||
&new_text,
|
document.line_index().as_ref(),
|
||||||
document.line_index().as_ref(),
|
)),
|
||||||
)
|
Ok(None) => Some(Vec::new()),
|
||||||
}),
|
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
// TODO(lucacasonato): handle error properly
|
// TODO(lucacasonato): handle error properly
|
||||||
warn!("Format error: {}", err);
|
warn!("Format error: {}", err);
|
||||||
|
|
Loading…
Reference in a new issue