summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-12 20:19:10 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-12 20:19:10 +0800
commitecffa11c6f5f296856428743f5763abde16c4b85 (patch)
treea68595833becc38867b385545afb26df117135f8 /test/crossfile
parentbb73d6199cd3613d819a99e393bf41823f0dd67c (diff)
downloadlua-language-server-ecffa11c6f5f296856428743f5763abde16c4b85.zip
resolve #1124 supports path in link
Diffstat (limited to 'test/crossfile')
-rw-r--r--test/crossfile/hover.lua34
1 files changed, 34 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index 43b80f28..fe6e7233 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -1309,3 +1309,37 @@ local n: integer
---
comments]]
}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ --[here](x.lua)
+ local <?n?>
+ ]]
+ },
+ hover = [[
+```lua
+local n: unknown
+```
+
+---
+[here](file:///x.lua)]]
+}
+
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+ --[here](D:/x.lua)
+ local <?n?>
+ ]]
+ },
+ hover = [[
+```lua
+local n: unknown
+```
+
+---
+[here](file:///d%3A/x.lua)]]
+}