diff options
author | Matouš Dzivjak | 2022-12-09 03:57:03 +0000 |
---|---|---|
committer | GitHub | 2022-12-09 03:57:03 +0000 |
commit | 8abed3bd78200fc5f7e3890fd853c17ce518d157 (patch) | |
tree | 8edd1bf79e309fe32bb3cd6dad9848a4113ffdc8 /helix-loader/src | |
parent | 6798a6651f9d314eacefddfd051661b030ca9d78 (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.rs | 2 |
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(); |