diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-12-24 17:03:18 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-12-24 17:03:18 +0800 |
commit | ef6c3fe05addbd299e4fc6e45cec94a83886c18f (patch) | |
tree | 9e526e2c558fab376874172aa51a00e800d4ce4b /test/crossfile/completion.lua | |
parent | b7344640a0ab9a07551ee5ebc435657b45659553 (diff) | |
download | lua-language-server-ef6c3fe05addbd299e4fc6e45cec94a83886c18f.zip |
cleanup
Diffstat (limited to 'test/crossfile/completion.lua')
-rw-r--r-- | test/crossfile/completion.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/crossfile/completion.lua b/test/crossfile/completion.lua index c608ccab..d286a24d 100644 --- a/test/crossfile/completion.lua +++ b/test/crossfile/completion.lua @@ -82,8 +82,6 @@ end ---@diagnostic disable: await-in-sync function TEST(data) - files.removeAll() - local mainUri local pos for _, info in ipairs(data) do @@ -98,6 +96,12 @@ function TEST(data) files.setText(uri, script) end + local _ <close> = function () + for _, info in ipairs(data) do + files.remove(furi.encode(info.path)) + end + end + local expect = data.completion core.clearCache() local result = core.completion(mainUri, pos, '') |