mirror of
https://github.com/neovim/neovim.git
synced 2026-04-19 14:00:49 +00:00
fix(lua): vim.validate message param #33675
Problem: vim.validate does not handle `message` param. Solution: Add the missing logic.
This commit is contained in:
@@ -6313,7 +6313,7 @@ describe('LSP', function()
|
||||
end)
|
||||
|
||||
describe('vim.lsp.config() and vim.lsp.enable()', function()
|
||||
it('can merge settings from "*"', function()
|
||||
it('merges settings from "*"', function()
|
||||
eq(
|
||||
{
|
||||
name = 'foo',
|
||||
@@ -6329,6 +6329,15 @@ describe('LSP', function()
|
||||
)
|
||||
end)
|
||||
|
||||
it('config("bogus") shows a hint', function()
|
||||
matches(
|
||||
'hint%: to resolve a config',
|
||||
pcall_err(exec_lua, function()
|
||||
vim.print(vim.lsp.config('non-existent-config'))
|
||||
end)
|
||||
)
|
||||
end)
|
||||
|
||||
it('sets up an autocmd', function()
|
||||
eq(
|
||||
1,
|
||||
@@ -6650,21 +6659,18 @@ describe('LSP', function()
|
||||
local _ = vim.lsp.config['foo*']
|
||||
end)
|
||||
)
|
||||
|
||||
matches(
|
||||
err,
|
||||
pcall_err(exec_lua, function()
|
||||
vim.lsp.config['foo*'] = {}
|
||||
end)
|
||||
)
|
||||
|
||||
matches(
|
||||
err,
|
||||
pcall_err(exec_lua, function()
|
||||
vim.lsp.config('foo*', {})
|
||||
end)
|
||||
)
|
||||
|
||||
-- Exception for '*'
|
||||
pcall(exec_lua, function()
|
||||
vim.lsp.config('*', {})
|
||||
|
||||
Reference in New Issue
Block a user