summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-26 19:40:48 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-26 19:40:48 +0800
commit79bf3e605d282cdbe425eea1b5793fc97d8404da (patch)
tree8600103127c10d419a50fbd97933069b3b853a27 /test
parent55b303d0beb1b08b5a50488e0bbba075a49d965d (diff)
downloadlua-language-server-79bf3e605d282cdbe425eea1b5793fc97d8404da.zip
close #135 param comment
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
-]]