summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-23 17:02:40 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-23 17:02:40 +0800
commitf9157be94e64051e319d0f44e00995376fdb7598 (patch)
treef2a9f46d6d31d80dff6a415ab2d3a9826805da08 /test/crossfile
parent5eb82d50202af355ecb5ce3edccb5ac77a4a6e85 (diff)
downloadlua-language-server-f9157be94e64051e319d0f44e00995376fdb7598.zip
fix #568
Diffstat (limited to 'test/crossfile')
-rw-r--r--test/crossfile/hover.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index e736e98c..54d8d93c 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -826,3 +826,27 @@ end
name = 'k',
}
}
+
+TEST {{ path = 'a.lua', content = '', }, {
+ path = 'b.lua',
+ content = [[
+---@class bthci
+bthci = {}
+
+---@class adv
+---@field CONN_DIR_HI integer
+---@field CHAN_ALL integer
+bthci.adv = {}
+
+--- Sends a raw HCI command to the BlueTooth controller.
+function bthci.<?rawhci?>(hcibytes, callback) end
+
+--- Resets the BlueTooth controller.
+function bthci.reset(callback) end
+]]
+},
+hover = {
+ label = 'function bthci.rawhci(hcibytes: any, callback: any)',
+ name = 'bthci.rawhci',
+ description = " Sends a raw HCI command to the BlueTooth controller."
+}}