From 274cd6b326ca6be0da65ebde79f8c48c83bc406b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 28 Sep 2020 02:43:52 +0800 Subject: =?UTF-8?q?hover=E4=B9=9F=E6=98=BE=E7=A4=BA=E6=8E=A8=E6=B5=8B?= =?UTF-8?q?=E7=9A=84=E6=90=9C=E7=B4=A2=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-beta/crossfile/definition.lua | 12 ++++++++++++ test-beta/crossfile/hover.lua | 17 ++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) (limited to 'test-beta') diff --git a/test-beta/crossfile/definition.lua b/test-beta/crossfile/definition.lua index c5601a1f..99e1d7f2 100644 --- a/test-beta/crossfile/definition.lua +++ b/test-beta/crossfile/definition.lua @@ -117,6 +117,18 @@ TEST { }, } +TEST { + { + path = 'aaa/bbb.lua', + content = '', + target = {0, 0}, + }, + { + path = 'b.lua', + content = 'require ""', + }, +} + TEST { { path = 'a.lua', 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 ', + }, + hover = { + label = '1 个字节', + description = [[* [folder\a.lua](file:///folder/a.lua) (假设搜索路径包含 `folder\?.lua`)]], } } -- cgit v1.2.3