summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-05-23 20:14:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-05-23 20:14:00 +0800
commit5c4fbc76835f9f31e04b4f99778dea5c63b84d8e (patch)
tree839c716477cc3c7b09e7fc2917d3c462d1a28f9d /test/crossfile
parentfd4336161730b79c1d8fecf42a681037f89f6c01 (diff)
downloadlua-language-server-5c4fbc76835f9f31e04b4f99778dea5c63b84d8e.zip
fix #1125
Diffstat (limited to 'test/crossfile')
-rw-r--r--test/crossfile/hover.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index 09eceb43..0bf8165b 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -1137,3 +1137,24 @@ TEST {
(async) (method) C:f(a: any)
```]]
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ ---@class Apple
+ ---The color of your awesome apple!
+ ---@field color string
+ local Apple = {}
+
+ Apple.<?color?>
+ ]]
+ },
+ hover = [[
+```lua
+(field) Apple.color: string
+```
+
+---
+The color of your awesome apple!]]
+}