Skip to content

Commit adde1d0

Browse files
committed
pause diagnostic in tests
1 parent f4548b5 commit adde1d0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/plugins/ffi/test.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ local lclient = require 'lclient'
22
local ws = require 'workspace'
33
local furi = require 'file-uri'
44
local files = require 'files'
5+
local diagnostic = require 'provider.diagnostic'
56

67
--TODO how to changed the runtime version?
78
local template = require 'config.template'
@@ -29,10 +30,14 @@ lclient():start(function (languageClient)
2930
rootUri = rootUri,
3031
}
3132

33+
diagnostic.pause()
34+
3235
ws.awaitReady(rootUri)
3336

3437
require 'plugins.ffi.cdef'
3538
require 'plugins.ffi.parser'
3639
require 'plugins.ffi.builder'
3740
TestBuilder()
41+
42+
diagnostic.resume()
3843
end)

0 commit comments

Comments
 (0)