summaryrefslogtreecommitdiff
path: root/test-beta/crossfile/hover.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-12-09 19:22:12 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-12-09 19:22:12 +0800
commitb6fefa81bbba986aab59cd5221673e11083213ad (patch)
tree3b5c2c0b54274c74349cff2d866e10b8c627b680 /test-beta/crossfile/hover.lua
parenta7f06f34a54dc65629869efe9fb3b4681e66d5cb (diff)
downloadlua-language-server-b6fefa81bbba986aab59cd5221673e11083213ad.zip
暂存
Diffstat (limited to 'test-beta/crossfile/hover.lua')
-rw-r--r--test-beta/crossfile/hover.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/test-beta/crossfile/hover.lua b/test-beta/crossfile/hover.lua
index ad2133b9..5030edf4 100644
--- a/test-beta/crossfile/hover.lua
+++ b/test-beta/crossfile/hover.lua
@@ -212,6 +212,32 @@ global t: {
},
}
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ return {
+ a = 1,
+ b = 2,
+ }
+ ]],
+ },
+ {
+ path = 'b.lua',
+ content = [[
+ local <?t?> = require 'a'
+ ]]
+ },
+ hover = {
+ label = [[
+local t: {
+ a: integer = 1,
+ b: integer = 2,
+}]],
+ name = 't',
+ },
+}
+
-- 先屏蔽掉 emmy
do return end
TEST {