about summary refs log tree commit diff
path: root/crates/rust-analyzer/src/cli
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2022-06-02 18:14:38 +0200
committerLukas Wirth <lukastw97@gmail.com>2022-06-02 18:36:02 +0200
commita2a3ea86eaafdc3bb6287e836a42deadcd02637b (patch)
tree639119066d199ed8d8a77ebca2b370ae30b78af7 /crates/rust-analyzer/src/cli
parent88024c7ec2d44a8be8bf05a6580409200cf726fc (diff)
downloadrust-a2a3ea86eaafdc3bb6287e836a42deadcd02637b.tar.gz
rust-a2a3ea86eaafdc3bb6287e836a42deadcd02637b.zip
Bring the version command output in line with other rust tools
Diffstat (limited to 'crates/rust-analyzer/src/cli')
-rw-r--r--crates/rust-analyzer/src/cli/lsif.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/cli/lsif.rs b/crates/rust-analyzer/src/cli/lsif.rs
index 5e6d2869877..491c55a04f8 100644
--- a/crates/rust-analyzer/src/cli/lsif.rs
+++ b/crates/rust-analyzer/src/cli/lsif.rs
@@ -22,6 +22,7 @@ use crate::cli::{
 };
 use crate::line_index::{LineEndings, LineIndex, OffsetEncoding};
 use crate::to_proto;
+use crate::version::version;
 
 /// Need to wrap Snapshot to provide `Clone` impl for `map_with`
 struct Snap<DB>(DB);
@@ -312,7 +313,7 @@ impl flags::Lsif {
             tool_info: Some(lsp_types::lsif::ToolInfo {
                 name: "rust-analyzer".to_string(),
                 args: vec![],
-                version: Some(env!("REV").to_string()),
+                version: Some(version().to_string()),
             }),
         }));
         for file in si.files {