diff options
author | Blaž Hrastnik | 2021-09-02 04:55:55 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-09-06 06:25:46 +0000 |
commit | 37606bad47fe0e197cb34fc7d52856597c32ce33 (patch) | |
tree | 1c5a6f39ffee2ae446f5e64ebf22e8f93b8573dc /helix-lsp | |
parent | 46f3c69f06cc55f36bcc6244a9f96c2481836dea (diff) |
lsp: doc.language_server() is None until initialize completes
Diffstat (limited to 'helix-lsp')
-rw-r--r-- | helix-lsp/src/client.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/helix-lsp/src/client.rs b/helix-lsp/src/client.rs index 27e4697c..f2bb0059 100644 --- a/helix-lsp/src/client.rs +++ b/helix-lsp/src/client.rs @@ -93,6 +93,10 @@ impl Client { } } + pub fn is_initialized(&self) -> bool { + self.capabilities.get().is_some() + } + pub fn capabilities(&self) -> &lsp::ServerCapabilities { self.capabilities .get() |