From 7bbe037c96ca2d1fdd2ffaaf899ba0d95358574c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Fri, 25 Mar 2022 20:46:54 +0100 Subject: [PATCH] Fix typo --- lapce-proxy/src/lsp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lapce-proxy/src/lsp.rs b/lapce-proxy/src/lsp.rs index 1b0717cb..42b1002b 100644 --- a/lapce-proxy/src/lsp.rs +++ b/lapce-proxy/src/lsp.rs @@ -425,11 +425,11 @@ fn stop(&self) { } pub fn get_uri(&self, buffer: &Buffer) -> Url { - let exits = { + let exists = { let state = self.state.lock(); state.opened_documents.contains_key(&buffer.id) }; - if !exits { + if !exists { let document_uri = Url::from_file_path(&buffer.path).unwrap_or_else(|_| { panic!("Failed to create URL from path {:?}", buffer.path)