Unnamed repository; edit this file 'description' to name the repository.
Add toolInfo in MetaData vertex in LSIF dumps
This helps with uploading LSIF dumps to Sourcegraph without having to
specify an indexer name.
| -rw-r--r-- | crates/rust-analyzer/src/cli/lsif.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/cli/lsif.rs b/crates/rust-analyzer/src/cli/lsif.rs index baa13c99db..9bfd8706aa 100644 --- a/crates/rust-analyzer/src/cli/lsif.rs +++ b/crates/rust-analyzer/src/cli/lsif.rs @@ -254,7 +254,11 @@ impl flags::Lsif { version: String::from("0.5.0"), project_root: lsp_types::Url::from_file_path(path).unwrap(), 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 { lsif.add_file(file); |