aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin/lsp_spec.lua
diff options
context:
space:
mode:
authorChinmay Dalal <dalal.chinmay.0101@gmail.com>2023-06-11 15:23:37 +0530
committerGitHub <noreply@github.com>2023-06-11 11:53:37 +0200
commit643546b82b4bc0c29ca869f81af868a019723d83 (patch)
treedcabb24372fa2d5157cce4b9b8eea2b0c9927735 /test/functional/plugin/lsp_spec.lua
parentcce9460524aa17bcd4daa095f4706220b81f8845 (diff)
downloadrneovim-643546b82b4bc0c29ca869f81af868a019723d83.tar.gz
rneovim-643546b82b4bc0c29ca869f81af868a019723d83.tar.bz2
rneovim-643546b82b4bc0c29ca869f81af868a019723d83.zip
feat(lsp): add handlers for inlay hints (#23736)
initial support; public API left for a follow-up PR
Diffstat (limited to 'test/functional/plugin/lsp_spec.lua')
-rw-r--r--test/functional/plugin/lsp_spec.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/plugin/lsp_spec.lua b/test/functional/plugin/lsp_spec.lua
index 85138417ff..2f4a703c74 100644
--- a/test/functional/plugin/lsp_spec.lua
+++ b/test/functional/plugin/lsp_spec.lua
@@ -3230,9 +3230,10 @@ describe('LSP', function()
eq(0, signal, "exit signal")
end;
on_handler = function(err, result, ctx)
- -- Don't compare & assert params, they're not relevant for the testcase
+ -- Don't compare & assert params and version, they're not relevant for the testcase
-- This allows us to be lazy and avoid declaring them
ctx.params = nil
+ ctx.version = nil
eq(table.remove(test.expected_handlers), {err, result, ctx}, "expected handler")
if ctx.method == 'start' then
@@ -3314,6 +3315,7 @@ describe('LSP', function()
end,
on_handler = function(err, result, ctx)
ctx.params = nil -- don't compare in assert
+ ctx.version = nil
eq(table.remove(expected_handlers), { err, result, ctx })
if ctx.method == 'start' then
exec_lua([[