mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
perf(validate): use lighter version
- Also fix `vim.validate()` for PUC Lua when showing errors for values that aren't string or number.
This commit is contained in:
committed by
Lewis Russell
parent
fa6ab0d909
commit
3f3e4837d5
@ -195,7 +195,7 @@ local _client_pull_namespaces = {}
|
||||
---@param client_id integer The id of the LSP client
|
||||
---@param is_pull boolean? Whether the namespace is for a pull or push client. Defaults to push
|
||||
function M.get_namespace(client_id, is_pull)
|
||||
vim.validate({ client_id = { client_id, 'n' } })
|
||||
vim.validate('client_id', client_id, 'number')
|
||||
|
||||
local client = vim.lsp.get_client_by_id(client_id)
|
||||
if is_pull then
|
||||
|
Reference in New Issue
Block a user