summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-04-13 10:40:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-04-13 10:40:35 +0800
commit81507913f43d51bd809575f166ed264e29bb07c4 (patch)
treebd1d53dbfb7c1464745c70ca86c4c23917468f15 /test/crossfile
parent5dc53106c3291bd796b7c9145d6d2b9d695b15c1 (diff)
downloadlua-language-server-81507913f43d51bd809575f166ed264e29bb07c4.zip
fix #502
Diffstat (limited to 'test/crossfile')
-rw-r--r--test/crossfile/hover.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index c8c333f0..521f5a49 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -713,3 +713,21 @@ hover = {
name = 'G.A',
description = 'BBB'
}}
+
+TEST {{ path = 'a.lua', content = '', }, {
+ path = 'b.lua',
+ content = [[
+---I am the class description.
+---@class Food
+---@field firstField number
+---@field secondField number
+local food = {}
+
+food.<?firstField?> = 0
+food.secondField = 2
+]]
+},
+hover = {
+ label = 'field Food.firstField: integer = 0',
+ name = 'food.firstField',
+}}