diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-28 02:43:52 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-28 02:43:52 +0800 |
commit | 274cd6b326ca6be0da65ebde79f8c48c83bc406b (patch) | |
tree | bc20cc1cc5a1be2645e18db35a4c1ef0a71c0354 /test-beta/crossfile/hover.lua | |
parent | c352af7a59b14f60ea5aca7bddfbc891068b4cb0 (diff) | |
download | lua-language-server-274cd6b326ca6be0da65ebde79f8c48c83bc406b.zip |
hover也显示推测的搜索路径
Diffstat (limited to 'test-beta/crossfile/hover.lua')
-rw-r--r-- | test-beta/crossfile/hover.lua | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/test-beta/crossfile/hover.lua b/test-beta/crossfile/hover.lua index d73aeb7f..594094ba 100644 --- a/test-beta/crossfile/hover.lua +++ b/test-beta/crossfile/hover.lua @@ -85,7 +85,22 @@ TEST { }, hover = { label = '1 个字节', - description = [[* [a.lua](file:///a.lua)]], + description = [[* [a.lua](file:///a.lua) (假设搜索路径包含 `?.lua`)]], + } +} + +TEST { + { + path = 'folder/a.lua', + content = '', + }, + { + path = 'b.lua', + content = 'require <?"a"?>', + }, + hover = { + label = '1 个字节', + description = [[* [folder\a.lua](file:///folder/a.lua) (假设搜索路径包含 `folder\?.lua`)]], } } |