refactor(lsp): deprecate completion util methods

Relates to https://github.com/neovim/neovim/issues/25272
This commit is contained in:
Mathias Fussenegger
2023-10-21 09:57:50 +02:00
committed by Mathias Fußenegger
parent 1e10310f4c
commit 195301c609
5 changed files with 12 additions and 62 deletions

View File

@@ -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)"))