A simple CPU rendered GUI IDE experience.
Diffstat (limited to 'src/lsp.rs')
| -rw-r--r-- | src/lsp.rs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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, |