Skip to content

Commit 6444211

Browse files
committed
Auto merge of rust-lang#15503 - Wilfred:scip_version, r=Veykril
SCIP: Report the correct version of rust-analyzer in the metadata Previously this was hard coded to "0.1". The SCIP protocol allows this to be an arbitrary string: ``` message ToolInfo { // Name of the indexer that produced this index. string name = 1; // Version of the indexer that produced this index. string version = 2; // Command-line arguments that were used to invoke this indexer. repeated string arguments = 3; } ``` so use the same string reported by `rust-analyzer --version`.
2 parents 9e3bf69 + bc42b99 commit 6444211

File tree

1 file changed

+1
-1
lines changed
  • crates/rust-analyzer/src/cli

1 file changed

+1
-1
lines changed

crates/rust-analyzer/src/cli/scip.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl flags::Scip {
5151
version: scip_types::ProtocolVersion::UnspecifiedProtocolVersion.into(),
5252
tool_info: Some(scip_types::ToolInfo {
5353
name: "rust-analyzer".to_owned(),
54-
version: "0.1".to_owned(),
54+
version: format!("{}", crate::version::version()),
5555
arguments: vec![],
5656
special_fields: Default::default(),
5757
})

0 commit comments

Comments
 (0)