summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
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 /script/provider/provider.lua
parent86916250304abc76b4b54486851f33ac12e64caf (diff)
downloadlua-language-server-622b1745973b409e16a9a0db5ed25a0548337e59.zip
command:add reloadFFIMeta
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index efa627c3..2ec429d0 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -982,6 +982,11 @@ m.register 'workspace/executeCommand' {
elseif command == 'lua.exportDocument' then
local core = require 'core.command.exportDocument'
core(params.arguments)
+ elseif command == 'lua.reloadFFIMeta' then
+ local core = require 'core.command.reloadFFIMeta'
+ for _, scp in ipairs(workspace.folders) do
+ core(scp.uri)
+ end
end
end
}