Skip to content

Commit 5b4f792

Browse files
committed
status -> output
1 parent a9b0d73 commit 5b4f792

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/server.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,9 @@ impl LanguageServer for Backend {
101101
}
102102

103103
async fn initialized(&self, _: InitializedParams) {
104-
// FIXME: this causes the server to crash ONLY when used through
105-
// Sublime Text's LSP framework.
106-
//
107-
// if self.should_sync() {
108-
// self.do_sync().await;
109-
// }
104+
if self.should_sync() {
105+
self.do_sync().await;
106+
}
110107
self.client
111108
.log_message(MessageType::INFO, "initialized!")
112109
.await;

src/vale.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ impl ValeManager {
203203
let _ = Command::new(exe.as_os_str())
204204
.current_dir(cwd.clone())
205205
.args(args)
206-
.status()?;
206+
// NOTE: Calling `status` causes the server to crash?
207+
.output()?;
207208

208209
Ok(())
209210
}

0 commit comments

Comments
 (0)