diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-10-17 13:35:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-17 13:35:02 +0100 |
commit | fa6ab0d90958516d0bc1ed62839d85405ad08fa8 (patch) | |
tree | 310a1c9bd3fcb6d176f823ebb81e7cfd595ff5ec /test/functional/plugin | |
parent | ce678043e3461d45f1251979cf047dd529b117ea (diff) | |
parent | a18fa2f11c3a66be8addc303efb5c8033a47f41e (diff) | |
download | rneovim-fa6ab0d90958516d0bc1ed62839d85405ad08fa8.tar.gz rneovim-fa6ab0d90958516d0bc1ed62839d85405ad08fa8.tar.bz2 rneovim-fa6ab0d90958516d0bc1ed62839d85405ad08fa8.zip |
Merge pull request #30825 from lewis6991/refactor/lsputil
Diffstat (limited to 'test/functional/plugin')
-rw-r--r-- | test/functional/plugin/lsp_spec.lua | 40 |
1 files changed, 1 insertions, 39 deletions
diff --git a/test/functional/plugin/lsp_spec.lua b/test/functional/plugin/lsp_spec.lua index 0ab384a032..6cd433b975 100644 --- a/test/functional/plugin/lsp_spec.lua +++ b/test/functional/plugin/lsp_spec.lua @@ -2586,7 +2586,7 @@ describe('LSP', function() }, }, } - eq(false, pcall(exec_lua, 'vim.lsp.util.apply_workspace_edit(...)', edit)) + eq(false, pcall(exec_lua, 'vim.lsp.util.apply_workspace_edit(...)', edit, 'utf-16')) eq(false, vim.uv.fs_stat(tmpfile) ~= nil) end) end) @@ -3134,44 +3134,6 @@ describe('LSP', function() end) end) - describe('lsp.util._get_symbol_kind_name', function() - it('returns the name specified by protocol', function() - eq( - 'File', - exec_lua(function() - return vim.lsp.util._get_symbol_kind_name(1) - end) - ) - eq( - 'TypeParameter', - exec_lua(function() - return vim.lsp.util._get_symbol_kind_name(26) - end) - ) - end) - - it('returns the name not specified by protocol', function() - eq( - 'Unknown', - exec_lua(function() - return vim.lsp.util._get_symbol_kind_name(nil) - end) - ) - eq( - 'Unknown', - exec_lua(function() - return vim.lsp.util._get_symbol_kind_name(vim.NIL) - end) - ) - eq( - 'Unknown', - exec_lua(function() - return vim.lsp.util._get_symbol_kind_name(1000) - end) - ) - end) - end) - describe('lsp.util.jump_to_location', function() local target_bufnr --- @type integer |