Skip to content

Commit

Permalink
Clone version instead of the whole document
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel- committed May 30, 2024
1 parent df05e75 commit f53777e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions crates/ark/src/lsp/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,9 @@ impl Backend {
let events_tx = self.events_tx.clone();

move || {
let diagnostics = diagnostics::generate_diagnostics(document.clone(), state);
events_tx.send(LspEvent::PublishDiagnostics(
url,
diagnostics,
document.version,
))
let version = document.version.clone();
let diagnostics = diagnostics::generate_diagnostics(document, state);
events_tx.send(LspEvent::PublishDiagnostics(url, diagnostics, version))
}
});
}
Expand Down

0 comments on commit f53777e

Please sign in to comment.