Skip to content

Commit 824b7a8

Browse files
committed
Add toolInfo in MetaData vertex in LSIF dumps
This helps with uploading LSIF dumps to Sourcegraph without having to specify an indexer name.
1 parent ed4b312 commit 824b7a8

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)