From 89a1c809662a2f74505b742cafcf78359db21ef3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 16 Dec 2022 20:00:24 +0800 Subject: pass tests --- test/crossfile/completion.lua | 1 + test/crossfile/definition.lua | 1 + test/crossfile/diagnostic.lua | 1 + test/crossfile/hover.lua | 1 + test/crossfile/references.lua | 1 + 5 files changed, 5 insertions(+) (limited to 'test') 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 _ = 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 _ = 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 _ = 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 _ = function () -- cgit v1.2.3