aboutsummaryrefslogtreecommitdiff
path: root/helix-loader/src
diff options
context:
space:
mode:
authorMatouš Dzivjak2022-12-09 03:57:03 +0000
committerGitHub2022-12-09 03:57:03 +0000
commit8abed3bd78200fc5f7e3890fd853c17ce518d157 (patch)
tree8edd1bf79e309fe32bb3cd6dad9848a4113ffdc8 /helix-loader/src
parent6798a6651f9d314eacefddfd051661b030ca9d78 (diff)
feat(lsp): pass client_info on initialization (#4904)
Pass client name ('helix') and client version (version / git hash) to LSP server on initialization.
Diffstat (limited to 'helix-loader/src')
-rw-r--r--helix-loader/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-loader/src/lib.rs b/helix-loader/src/lib.rs
index a02a59af..29a9f2e7 100644
--- a/helix-loader/src/lib.rs
+++ b/helix-loader/src/lib.rs
@@ -4,6 +4,8 @@ pub mod grammar;
use etcetera::base_strategy::{choose_base_strategy, BaseStrategy};
use std::path::PathBuf;
+pub const VERSION_AND_GIT_HASH: &str = env!("VERSION_AND_GIT_HASH");
+
pub static RUNTIME_DIR: once_cell::sync::Lazy<PathBuf> = once_cell::sync::Lazy::new(runtime_dir);
static CONFIG_FILE: once_cell::sync::OnceCell<PathBuf> = once_cell::sync::OnceCell::new();