summaryrefslogtreecommitdiff
path: root/test/plugins
diff options
context:
space:
mode:
authorfesily <fesil@foxmail.com>2023-05-25 15:52:12 +0800
committerfesily <fesil@foxmail.com>2023-05-25 15:52:12 +0800
commit622b1745973b409e16a9a0db5ed25a0548337e59 (patch)
tree8a44422de8a12481533705c471e3b0a86ae4fb2e /test/plugins
parent86916250304abc76b4b54486851f33ac12e64caf (diff)
downloadlua-language-server-622b1745973b409e16a9a0db5ed25a0548337e59.zip
command:add reloadFFIMeta
Diffstat (limited to 'test/plugins')
-rw-r--r--test/plugins/ffi/test.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/plugins/ffi/test.lua b/test/plugins/ffi/test.lua
index 2a232192..68cec156 100644
--- a/test/plugins/ffi/test.lua
+++ b/test/plugins/ffi/test.lua
@@ -8,16 +8,15 @@ local template = require 'config.template'
template['Lua.runtime.version'].default = 'LuaJIT'
-
---@async
local function TestBuilder()
- local builder = require 'plugins.ffi'.initBuilder()
+ local builder = require 'core.command.reloadFFIMeta'
files.setText(TESTURI, [[
local ffi = require 'ffi'
ffi.cdef 'void test();'
]])
-
- builder(TESTURI)
+ local uri = ws.getFirstScope().uri
+ builder(uri)
end
---@async