Skip to content

Commit 1e9ecb9

Browse files
bors[bot]sandhose
andauthored
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 <[email protected]>
2 parents ed4b312 + 824b7a8 commit 1e9ecb9

File tree

1 file changed

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

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,11 @@ impl flags::Lsif {
254254
version: String::from("0.5.0"),
255255
project_root: lsp_types::Url::from_file_path(path).unwrap(),
256256
position_encoding: lsif::Encoding::Utf16,
257-
tool_info: None,
257+
tool_info: Some(lsp_types::lsif::ToolInfo {
258+
name: "rust-analyzer".to_string(),
259+
args: vec![],
260+
version: Some(env!("REV").to_string()),
261+
}),
258262
}));
259263
for file in si.files {
260264
lsif.add_file(file);

0 commit comments

Comments
 (0)