summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/crossfile/hover.lua16
-rw-r--r--test/hover/init.lua8
2 files changed, 5 insertions, 19 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index 715d658f..1bfb81e6 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -422,7 +422,6 @@ function f()
}
}
-do return end
TEST {
{
path = 'a.lua',
@@ -431,18 +430,13 @@ TEST {
{
path = 'b.lua',
content = [[
- ---@param x string {comment = 'aaaa'}
- ---@param y string {comment = 'bbbb'}
- local function <?f?>(x, y) end
+---@param x string this is comment
+function f(<?x?>) end
]]
},
hover = {
- label = 'function f(x: string, y: string)',
- name = 'f',
- args = EXISTS,
- description = [[
-+ `x`*(string)*: aaaa
-
-+ `y`*(string)*: bbbb]]
+ label = 'local x: string',
+ name = 'x',
+ description = 'this is comment',
}
}
diff --git a/test/hover/init.lua b/test/hover/init.lua
index 54f1e451..4bfde29e 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -1441,11 +1441,3 @@ local <?y?>
[[
local y: any
]]
-
-TEST [[
----@param x string this is comment
-function f(<?x?>) end
-]]
-[[
-local x: string
-]]