summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-08 17:00:50 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-08 17:00:50 +0800
commitdecf02ad1f708f9e2eb7d50d9765b22ae21f0425 (patch)
tree26686198bb07325b84cc3be5e17a039cf6f77b39 /test/crossfile
parent4503effc7b22b20e17880a97f49d9dfd022e0ad9 (diff)
downloadlua-language-server-decf02ad1f708f9e2eb7d50d9765b22ae21f0425.zip
fix description disapeared for overloaded function
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 1cb48e61..c0b1691f 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -1681,3 +1681,27 @@ See:
* [A](file:///a.lua#1#10) comment1
* [TTT](file:///a.lua#3#0) comment2]]
}
+
+TEST { {path = 'a.lua', content = [[
+---comment1
+---comment2
+---@overload fun()
+---@param x number
+local function <?f?>(x) end
+]]},
+hover = [[
+```lua
+function f(x: number)
+```
+
+---
+
+comment1
+comment2
+
+---
+
+```lua
+function f()
+```]]
+}