diff --git a/Cargo.lock b/Cargo.lock index 1ca2ca3..92d56b0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -540,7 +540,7 @@ dependencies = [ [[package]] name = "protols" -version = "0.11.0" +version = "0.11.1" dependencies = [ "async-lsp", "basic-toml", diff --git a/Cargo.toml b/Cargo.toml index e94e46b..bebc838 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "protols" description = "Language server for proto3 files" -version = "0.11.0" +version = "0.11.1" edition = "2024" license = "MIT" homepage = "https://github.com/coder3101/protols" diff --git a/protols.toml b/protols.toml index 32d34b0..bc012f2 100644 --- a/protols.toml +++ b/protols.toml @@ -1,5 +1,2 @@ [config] include_paths = ["src/workspace/input"] - -[config.experimental] -use_protoc_diagnostics = true diff --git a/src/config/workspace.rs b/src/config/workspace.rs index ff427e1..a6a293a 100644 --- a/src/config/workspace.rs +++ b/src/config/workspace.rs @@ -22,8 +22,12 @@ pub struct WorkspaceProtoConfigs { impl WorkspaceProtoConfigs { pub fn new() -> Self { // Try to find protobuf library and get its include paths + // Do not emit metadata on stdout as LSP programs can consider + // it part of spec let protoc_include_prefix = Config::new() .atleast_version("3.0.0") + .env_metadata(false) + .cargo_metadata(false) .probe("protobuf") .map(|lib| lib.include_paths) .unwrap_or_default();