diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-12 20:19:10 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-12 20:19:10 +0800 |
commit | ecffa11c6f5f296856428743f5763abde16c4b85 (patch) | |
tree | a68595833becc38867b385545afb26df117135f8 /test/crossfile | |
parent | bb73d6199cd3613d819a99e393bf41823f0dd67c (diff) | |
download | lua-language-server-ecffa11c6f5f296856428743f5763abde16c4b85.zip |
resolve #1124 supports path in link
Diffstat (limited to 'test/crossfile')
-rw-r--r-- | test/crossfile/hover.lua | 34 |
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)]] +} |