summaryrefslogtreecommitdiff
path: root/test/plugins
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-10-07 10:22:09 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-10-07 10:22:09 +0800
commitadde1d0a5001de44c8ee331f671668d509e23ce2 (patch)
treed4d80fc8dbb7bbf9ac44bd1a8b275c6af2712f06 /test/plugins
parentf4548b560228b0c08189a35f7e5a51d7a5d0190a (diff)
downloadlua-language-server-adde1d0a5001de44c8ee331f671668d509e23ce2.zip
pause diagnostic in tests
Diffstat (limited to 'test/plugins')
-rw-r--r--test/plugins/ffi/test.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/plugins/ffi/test.lua b/test/plugins/ffi/test.lua
index 7c17cb6d..93be2ff5 100644
--- a/test/plugins/ffi/test.lua
+++ b/test/plugins/ffi/test.lua
@@ -2,6 +2,7 @@ local lclient = require 'lclient'
local ws = require 'workspace'
local furi = require 'file-uri'
local files = require 'files'
+local diagnostic = require 'provider.diagnostic'
--TODO how to changed the runtime version?
local template = require 'config.template'
@@ -29,10 +30,14 @@ lclient():start(function (languageClient)
rootUri = rootUri,
}
+ diagnostic.pause()
+
ws.awaitReady(rootUri)
require 'plugins.ffi.cdef'
require 'plugins.ffi.parser'
require 'plugins.ffi.builder'
TestBuilder()
+
+ diagnostic.resume()
end)