Skip to content

Commit

Permalink
status -> output
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed May 18, 2023
1 parent a9b0d73 commit 5b4f792
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
9 changes: 3 additions & 6 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion src/vale.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down

0 comments on commit 5b4f792

Please sign in to comment.