diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-09-28 17:44:46 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-09-28 17:44:46 +0800 |
commit | c45a21271556b6c689ee61fd5353846f469e4622 (patch) | |
tree | df0ce3ef26ba916b230ffc27e25168e3947f2273 /test/crossfile | |
parent | f1a974b7ea759adcd4af571bc7752d5b4761927b (diff) | |
download | lua-language-server-c45a21271556b6c689ee61fd5353846f469e4622.zip |
#477 supports hover
Diffstat (limited to 'test/crossfile')
-rw-r--r-- | test/crossfile/hover.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua index 1c46214c..97e6218d 100644 --- a/test/crossfile/hover.lua +++ b/test/crossfile/hover.lua @@ -969,3 +969,20 @@ p: T | b -- comment 3 -- comment 4 ```]]} + +TEST {{ path = 'a.lua', content = '', }, { + path = 'b.lua', + content = [[ +---@param x number # aaa +local f + +function f(<?x?>) end +]] +}, +hover = [[ +```lua +local x: number +``` + +--- + aaa]]} |