Skip to content

Commit

Permalink
Don't send to LSP if we're not connected
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel- committed May 30, 2024
1 parent 335eeca commit 0bf4766
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/ark/src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,9 @@ impl RMain {
}

fn send_lsp(&self, event: LspEvent) {
self.lsp_events_tx.as_ref().unwrap().send(event).unwrap();
if let Some(ref tx) = self.lsp_events_tx {
tx.send(event).unwrap();
}
}

pub fn set_lsp_backend(
Expand Down

0 comments on commit 0bf4766

Please sign in to comment.