diff options
| author | snowdroppe <stefanrieche@gmail.com> | 2025-02-04 01:43:07 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-04 09:43:07 +0800 |
| commit | 66bc018936c6ff76beb75f89d986af6442db4001 (patch) | |
| tree | 6fcc72eba0acfc299749b8eeda5b3feeea8d6852 /lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-66bc018936c6ff76beb75f89d986af6442db4001.tar nvim-lspconfig-66bc018936c6ff76beb75f89d986af6442db4001.tar.gz nvim-lspconfig-66bc018936c6ff76beb75f89d986af6442db4001.tar.bz2 nvim-lspconfig-66bc018936c6ff76beb75f89d986af6442db4001.tar.lz nvim-lspconfig-66bc018936c6ff76beb75f89d986af6442db4001.tar.xz nvim-lspconfig-66bc018936c6ff76beb75f89d986af6442db4001.tar.zst nvim-lspconfig-66bc018936c6ff76beb75f89d986af6442db4001.zip | |
fix(health.lua): increased version check cmd timeout (#3601)
Problem:
LspInfo returns '?' for version string when using the codeqlls
language server. This is because codeql is slow to return its
version number due to the underlying JVM.
Solution:
Increase the timeout from 300ms to 500ms.
1000 iterations of `codeql version` resulted in (349 +- 13) ms
which informed the choice of 500ms.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/health.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lspconfig/health.lua b/lua/lspconfig/health.lua index 64c584cf..7477dff7 100644 --- a/lua/lspconfig/health.lua +++ b/lua/lspconfig/health.lua @@ -51,7 +51,7 @@ local function try_get_cmd_output(cmd) on_stdout = on_data, on_stderr = on_data, }) - local rv = vim.fn.jobwait({ chanid }, 300) + local rv = vim.fn.jobwait({ chanid }, 500) vim.fn.jobstop(chanid) return rv[1] == 0 and out or nil end |
