From f03830b047f0db9d9bb4576f771b5988329be46f Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Sun, 18 Oct 2020 18:01:06 +0900 Subject: wip: Basic LSP lifecycle requests/notifications. --- helix-term/src/main.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'helix-term/src') diff --git a/helix-term/src/main.rs b/helix-term/src/main.rs index e14a328f..c35c84d2 100644 --- a/helix-term/src/main.rs +++ b/helix-term/src/main.rs @@ -26,9 +26,14 @@ fn main() -> Result<(), Error> { std::thread::spawn(move || smol::block_on(EX.run(smol::future::pending::<()>()))); } - smol::block_on(EX.run(async { - Application::new(args).unwrap().run().await; - })); + let mut lsp = helix_lsp::Client::start(&EX, "rust-analyzer", &[]); + + smol::block_on(async { + let res = lsp.initialize().await; + // Application::new(args).unwrap().run().await; + + loop {} + }); Ok(()) } -- cgit v1.2.3-70-g09d2