diff --git a/src/server.rs b/src/server.rs index 0ebecfe..5ff5ed5 100644 --- a/src/server.rs +++ b/src/server.rs @@ -101,12 +101,9 @@ impl LanguageServer for Backend { } async fn initialized(&self, _: InitializedParams) { - // FIXME: this causes the server to crash ONLY when used through - // Sublime Text's LSP framework. - // - // if self.should_sync() { - // self.do_sync().await; - // } + if self.should_sync() { + self.do_sync().await; + } self.client .log_message(MessageType::INFO, "initialized!") .await; diff --git a/src/vale.rs b/src/vale.rs index 70791b0..c1b4426 100644 --- a/src/vale.rs +++ b/src/vale.rs @@ -203,7 +203,8 @@ impl ValeManager { let _ = Command::new(exe.as_os_str()) .current_dir(cwd.clone()) .args(args) - .status()?; + // NOTE: Calling `status` causes the server to crash? + .output()?; Ok(()) }