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`.
This commit is contained in:
parent
9e3bf69ad3
commit
bc42b9911d
@ -51,7 +51,7 @@ impl flags::Scip {
|
|||||||
version: scip_types::ProtocolVersion::UnspecifiedProtocolVersion.into(),
|
version: scip_types::ProtocolVersion::UnspecifiedProtocolVersion.into(),
|
||||||
tool_info: Some(scip_types::ToolInfo {
|
tool_info: Some(scip_types::ToolInfo {
|
||||||
name: "rust-analyzer".to_owned(),
|
name: "rust-analyzer".to_owned(),
|
||||||
version: "0.1".to_owned(),
|
version: format!("{}", crate::version::version()),
|
||||||
arguments: vec![],
|
arguments: vec![],
|
||||||
special_fields: Default::default(),
|
special_fields: Default::default(),
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user