A simple CPU rendered GUI IDE experience.
Diffstat (limited to 'src/lsp.rs')
-rw-r--r--src/lsp.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lsp.rs b/src/lsp.rs
index 5b8158b..46c7633 100644
--- a/src/lsp.rs
+++ b/src/lsp.rs
@@ -28,6 +28,7 @@ use serde_json::json;
use tokio::sync::oneshot;
use tokio_util::task::AbortOnDropHandle;
use winit::window::Window;
+#[derive(Debug)]
pub struct Client {
pub runtime: tokio::runtime::Runtime,
@@ -166,6 +167,11 @@ impl Client {
},
})
}
+ pub fn close(&self, f:&Path) ->Result<(), SendError<Message>>{
+ self.notify::<DidCloseTextDocument>(&DidCloseTextDocumentParams {
+ text_document: f.tid(),
+ })
+ }
pub fn edit(
&self,
f: &Path,