Skip to content

Commit 1a4e4d1

Browse files
fix: Do not emit pkg config metadata in pkg-config (#67)
1 parent 61fb5b9 commit 1a4e4d1

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "protols"
33
description = "Language server for proto3 files"
4-
version = "0.11.0"
4+
version = "0.11.1"
55
edition = "2024"
66
license = "MIT"
77
homepage = "https://github.com/coder3101/protols"

protols.toml

-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
[config]
22
include_paths = ["src/workspace/input"]
3-
4-
[config.experimental]
5-
use_protoc_diagnostics = true

src/config/workspace.rs

+4
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,12 @@ pub struct WorkspaceProtoConfigs {
2222
impl WorkspaceProtoConfigs {
2323
pub fn new() -> Self {
2424
// Try to find protobuf library and get its include paths
25+
// Do not emit metadata on stdout as LSP programs can consider
26+
// it part of spec
2527
let protoc_include_prefix = Config::new()
2628
.atleast_version("3.0.0")
29+
.env_metadata(false)
30+
.cargo_metadata(false)
2731
.probe("protobuf")
2832
.map(|lib| lib.include_paths)
2933
.unwrap_or_default();

0 commit comments

Comments
 (0)