summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test-beta/crossfile/definition.lua70
-rw-r--r--test-beta/crossfile/hover.lua9
-rw-r--r--test-beta/signature/init.lua2
3 files changed, 39 insertions, 42 deletions
diff --git a/test-beta/crossfile/definition.lua b/test-beta/crossfile/definition.lua
index 99e1d7f2..743325c2 100644
--- a/test-beta/crossfile/definition.lua
+++ b/test-beta/crossfile/definition.lua
@@ -558,38 +558,38 @@ TEST {
},
}
---TEST {
--- {
--- path = 'a.lua',
--- content = [[
--- ---@class Class
--- local <!obj!>
--- ]]
--- },
--- {
--- path = 'b.lua',
--- content = [[
--- ---@type Class
--- local <!obj!>
--- <?obj?>
--- ]]
--- },
---}
-
---TEST {
--- {
--- path = 'a.lua',
--- content = [[
--- ---@type Class
--- local <!obj!>
--- <?obj?>
--- ]]
--- },
--- {
--- path = 'b.lua',
--- content = [[
--- ---@class Class
--- local <!obj!>
--- ]]
--- },
---}
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ ---@class Class
+ local <!obj!>
+ ]]
+ },
+ {
+ path = 'b.lua',
+ content = [[
+ ---@type Class
+ local <!obj!>
+ <?obj?>
+ ]]
+ },
+}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ ---@type Class
+ local <!obj!>
+ <?obj?>
+ ]]
+ },
+ {
+ path = 'b.lua',
+ content = [[
+ ---@class Class
+ local <!obj!>
+ ]]
+ },
+}
diff --git a/test-beta/crossfile/hover.lua b/test-beta/crossfile/hover.lua
index 3400de08..8cd5eada 100644
--- a/test-beta/crossfile/hover.lua
+++ b/test-beta/crossfile/hover.lua
@@ -253,8 +253,6 @@ local t: {
},
}
--- 先屏蔽掉 emmy
-do return end
TEST {
{
path = 'a.lua',
@@ -271,7 +269,7 @@ TEST {
hover = {
label = [[function f(x: number)]],
name = 'f',
- description = 'abc',
+ description = ' abc',
args = EXISTS,
}
}
@@ -289,12 +287,13 @@ TEST {
]],
},
hover = {
- label = [[global x: number = 1]],
+ label = [[global x: integer = 1]],
name = 'x',
- description = 'abc',
+ description = ' abc',
}
}
+do return end
TEST {
{
path = 'a.lua',
diff --git a/test-beta/signature/init.lua b/test-beta/signature/init.lua
index 56fa21d1..ee89bb3d 100644
--- a/test-beta/signature/init.lua
+++ b/test-beta/signature/init.lua
@@ -144,7 +144,6 @@ table.unpack {$}
]]
(nil)
-do return end
TEST [[
---@type fun(x: number, y: number):boolean
local zzzz
@@ -153,7 +152,6 @@ zzzz($)
{
label = [[
function zzzz(x: number, y: number)
- -> boolean
]],
arg = {15, 23},
}