Merge #10519
10519: Add toolInfo in MetaData vertex in LSIF dumps r=lnicola a=sandhose This helps with uploading LSIF dumps to Sourcegraph without having to specify an indexer name. Fixes #10518 Co-authored-by: Quentin Gliech <quentingliech@gmail.com>
This commit is contained in:
commit
1e9ecb9f58
@ -254,7 +254,11 @@ pub fn run(self) -> Result<()> {
|
|||||||
version: String::from("0.5.0"),
|
version: String::from("0.5.0"),
|
||||||
project_root: lsp_types::Url::from_file_path(path).unwrap(),
|
project_root: lsp_types::Url::from_file_path(path).unwrap(),
|
||||||
position_encoding: lsif::Encoding::Utf16,
|
position_encoding: lsif::Encoding::Utf16,
|
||||||
tool_info: None,
|
tool_info: Some(lsp_types::lsif::ToolInfo {
|
||||||
|
name: "rust-analyzer".to_string(),
|
||||||
|
args: vec![],
|
||||||
|
version: Some(env!("REV").to_string()),
|
||||||
|
}),
|
||||||
}));
|
}));
|
||||||
for file in si.files {
|
for file in si.files {
|
||||||
lsif.add_file(file);
|
lsif.add_file(file);
|
||||||
|
Loading…
Reference in New Issue
Block a user