From 3b526aad8f097c4381cee9372622fa4c0bc5decb 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:13:53 +0800 Subject: simple state persistence --- test/crossfile/completion.lua | 2 +- test/crossfile/definition.lua | 2 +- test/crossfile/diagnostic.lua | 2 +- test/crossfile/hover.lua | 2 +- test/crossfile/references.lua | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'test/crossfile') diff --git a/test/crossfile/completion.lua b/test/crossfile/completion.lua index 640585fa..3ad8c385 100644 --- a/test/crossfile/completion.lua +++ b/test/crossfile/completion.lua @@ -69,7 +69,7 @@ function TEST(data) mainUri = uri end files.setText(uri, script) - files.getState(uri) + files.compileState(uri) end local _ = function () diff --git a/test/crossfile/definition.lua b/test/crossfile/definition.lua index 7cb76922..b13b57f3 100644 --- a/test/crossfile/definition.lua +++ b/test/crossfile/definition.lua @@ -53,7 +53,7 @@ function TEST(datas) sourceUri = uri end files.setText(uri, newScript) - files.getState(uri) + files.compileState(uri) end local _ = function () diff --git a/test/crossfile/diagnostic.lua b/test/crossfile/diagnostic.lua index 7df07e6c..e270d3da 100644 --- a/test/crossfile/diagnostic.lua +++ b/test/crossfile/diagnostic.lua @@ -47,7 +47,7 @@ function TEST(datas) end data.content = newScript files.setText(uri, newScript) - files.getState(uri) + files.compileState(uri) end local _ = function () diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua index ba799f49..d47bb41b 100644 --- a/test/crossfile/hover.lua +++ b/test/crossfile/hover.lua @@ -44,7 +44,7 @@ function TEST(expect) local script, list = catch(file.content, '?') local uri = furi.encode(file.path) files.setText(uri, script) - files.getState(uri) + files.compileState(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 fd489866..faa9dba9 100644 --- a/test/crossfile/references.lua +++ b/test/crossfile/references.lua @@ -74,7 +74,7 @@ function TEST(datas) sourceUri = uri end files.setText(uri, newScript) - files.getState(uri) + files.compileState(uri) end local _ = function () -- cgit v1.2.3