mirror of
https://github.com/neovim/nvim-lspconfig
synced 2025-03-11 04:27:36 +00:00
fix(health.lua): increased version check cmd timeout (#3601)
Some checks failed
docgen / docgen (push) Has been cancelled
Some checks failed
docgen / docgen (push) Has been cancelled
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.
This commit is contained in:
parent
00b236b795
commit
66bc018936
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user