aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-10-30 08:00:30 +0000
committerBlaž Hrastnik2020-12-03 04:12:05 +0000
commit3f707c19f46284d745568c632a57103eb1be4dd4 (patch)
tree41047ba33a48eae0ca625be822e83048363c4a69 /helix-term
parent8f0bcfe286d97dfff67bd924e11ca2b6ae1a63dc (diff)
Save command
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/main.rs12
1 files changed, 3 insertions, 9 deletions
diff --git a/helix-term/src/main.rs b/helix-term/src/main.rs
index f91c1c8f..9378d3ee 100644
--- a/helix-term/src/main.rs
+++ b/helix-term/src/main.rs
@@ -70,16 +70,10 @@ fn main() -> Result<(), Error> {
std::thread::spawn(move || smol::block_on(EX.run(smol::future::pending::<()>())));
}
- // let mut lsp = helix_lsp::Client::start(&EX, "rust-analyzer", &[]);
+ let mut app = Application::new(args, &EX).unwrap();
- smol::block_on(async {
- // let res = lsp.initialize().await;
- // let state = helix_core::State::load("test.rs".into(), &[]).unwrap();
- // let res = lsp.text_document_did_open(&state).await;
- // loop {}
-
- Application::new(args, &EX).unwrap().run().await;
- });
+ // we use the thread local executor to spawn the application task separately from the work pool
+ smol::block_on(app.run());
Ok(())
}