summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-12-16 20:00:24 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-12-16 20:00:24 +0800
commit89a1c809662a2f74505b742cafcf78359db21ef3 (patch)
treef9e6bfdd021a96bb273dcd8b686a922ee29273fb /test/crossfile
parent6a99efd3ab8708f8efd5f12a9a4bb93acf29c661 (diff)
downloadlua-language-server-89a1c809662a2f74505b742cafcf78359db21ef3.zip
pass tests
Diffstat (limited to 'test/crossfile')
-rw-r--r--test/crossfile/completion.lua1
-rw-r--r--test/crossfile/definition.lua1
-rw-r--r--test/crossfile/diagnostic.lua1
-rw-r--r--test/crossfile/hover.lua1
-rw-r--r--test/crossfile/references.lua1
5 files changed, 5 insertions, 0 deletions
diff --git a/test/crossfile/completion.lua b/test/crossfile/completion.lua
index 8504758e..640585fa 100644
--- a/test/crossfile/completion.lua
+++ b/test/crossfile/completion.lua
@@ -69,6 +69,7 @@ function TEST(data)
mainUri = uri
end
files.setText(uri, script)
+ files.getState(uri)
end
local _ <close> = function ()
diff --git a/test/crossfile/definition.lua b/test/crossfile/definition.lua
index e924c43f..7cb76922 100644
--- a/test/crossfile/definition.lua
+++ b/test/crossfile/definition.lua
@@ -53,6 +53,7 @@ function TEST(datas)
sourceUri = uri
end
files.setText(uri, newScript)
+ files.getState(uri)
end
local _ <close> = function ()
diff --git a/test/crossfile/diagnostic.lua b/test/crossfile/diagnostic.lua
index 126a2ab8..7df07e6c 100644
--- a/test/crossfile/diagnostic.lua
+++ b/test/crossfile/diagnostic.lua
@@ -47,6 +47,7 @@ function TEST(datas)
end
data.content = newScript
files.setText(uri, newScript)
+ files.getState(uri)
end
local _ <close> = function ()
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index c0b1691f..ba799f49 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -44,6 +44,7 @@ function TEST(expect)
local script, list = catch(file.content, '?')
local uri = furi.encode(file.path)
files.setText(uri, script)
+ files.getState(uri)
if #list['?'] > 0 then
sourceUri = uri
sourcePos = (list['?'][1][1] + list['?'][1][2]) // 2
diff --git a/test/crossfile/references.lua b/test/crossfile/references.lua
index 7376ccd8..fd489866 100644
--- a/test/crossfile/references.lua
+++ b/test/crossfile/references.lua
@@ -74,6 +74,7 @@ function TEST(datas)
sourceUri = uri
end
files.setText(uri, newScript)
+ files.getState(uri)
end
local _ <close> = function ()