mirror of
https://github.com/neovim/neovim.git
synced 2025-11-30 06:00:42 +00:00
refactor(lsp): deprecate completion util methods
Relates to https://github.com/neovim/neovim/issues/25272
This commit is contained in:
committed by
Mathias Fußenegger
parent
1e10310f4c
commit
195301c609
@@ -2769,18 +2769,6 @@ describe('LSP', function()
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('lsp.util._get_completion_item_kind_name', function()
|
||||
it('returns the name specified by protocol', function()
|
||||
eq("Text", exec_lua("return vim.lsp.util._get_completion_item_kind_name(1)"))
|
||||
eq("TypeParameter", exec_lua("return vim.lsp.util._get_completion_item_kind_name(25)"))
|
||||
end)
|
||||
it('returns the name not specified by protocol', function()
|
||||
eq("Unknown", exec_lua("return vim.lsp.util._get_completion_item_kind_name(nil)"))
|
||||
eq("Unknown", exec_lua("return vim.lsp.util._get_completion_item_kind_name(vim.NIL)"))
|
||||
eq("Unknown", exec_lua("return vim.lsp.util._get_completion_item_kind_name(1000)"))
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('lsp.util._get_symbol_kind_name', function()
|
||||
it('returns the name specified by protocol', function()
|
||||
eq("File", exec_lua("return vim.lsp.util._get_symbol_kind_name(1)"))
|
||||
|
||||
Reference in New Issue
Block a user