Skip to content

Commit

Permalink
Release v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
crisidev committed May 21, 2024
1 parent c08abd5 commit fcf7511
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bacon-ls"
version = "0.2.0"
version = "0.3.0"
edition = "2021"
authors = ["Matteo Bigoi <[email protected]"]
description = "Bacon Language Server"
Expand Down
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ impl BaconLs {
}
}

/// Run the LSP server.
pub async fn serve() {
// Configure logging to file.
let level = env::var("RUST_LOG").unwrap_or_else(|_| "off".to_string());
if level != "off" {
tracing_subscriber::fmt()
Expand All @@ -53,8 +55,10 @@ impl BaconLs {
.with_span_events(FmtSpan::CLOSE)
.init();
}
// Lock stdin / stdout.
let stdin = tokio::io::stdin();
let stdout = tokio::io::stdout();
// Start the service.
let (service, socket) = LspService::new(Self::new);
Server::new(stdin, stdout, socket).serve(service).await;
}
Expand Down Expand Up @@ -244,7 +248,7 @@ impl LanguageServer for BaconLs {
)),
diagnostic_provider: Some(DiagnosticServerCapabilities::Options(
DiagnosticOptions {
// workspace_diagnostics: true,
workspace_diagnostics: true,
..Default::default()
},
)),
Expand Down

0 comments on commit fcf7511

Please sign in to comment.