diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-08 17:32:43 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-08 17:32:43 +0800 |
commit | 96955fce58180eb5bf86d11747f7712bbefbcf62 (patch) | |
tree | 3ac82e2a61c212c2b247025f980475dcd9e5aae4 /server-beta/test | |
parent | 2c0db6c014b5b3d1dd48167f9f9bf9f4f65841bd (diff) | |
download | lua-language-server-96955fce58180eb5bf86d11747f7712bbefbcf62.zip |
暂存
Diffstat (limited to 'server-beta/test')
-rw-r--r-- | server-beta/test/full/example.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/server-beta/test/full/example.lua b/server-beta/test/full/example.lua index 670bfe64..5b096655 100644 --- a/server-beta/test/full/example.lua +++ b/server-beta/test/full/example.lua @@ -1,5 +1,7 @@ -local util = require 'utility' +local util = require 'utility' local parser = require 'parser' +local files = require 'files' +local diag = require 'core.diagnostics' -- 临时 local function testIfExit(path) @@ -25,7 +27,9 @@ local function testIfExit(path) local need local lines = parser:lines(buf) for i = 1, max do - --core.diagnostics(vm, lines, 'test') + files.removeAll() + files.setText('', buf) + diag('') local passed = os.clock() - clock if passed >= 1.0 or i == max then need = passed / i |