summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-01-30 18:02:31 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-01-30 18:02:31 +0800
commit4a9ab5b1ae9889e9732b53ad8cdf3b6db5394c3b (patch)
tree935934fdb69c1e94209e79827474b7a145c28b7b /script/provider/provider.lua
parentbb3f84633b01afb0a2f719645f8176f491fb7694 (diff)
downloadlua-language-server-4a9ab5b1ae9889e9732b53ad8cdf3b6db5394c3b.zip
command `lua.exportDocument`
finish #1833
Diffstat (limited to 'script/provider/provider.lua')
-rw-r--r--script/provider/provider.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index 7f5ca20d..0d7a859f 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -1001,6 +1001,9 @@ m.register 'workspace/executeCommand' {
elseif command == 'lua.autoRequire' then
local core = require 'core.command.autoRequire'
return core(params.arguments[1])
+ elseif command == 'lua.exportDocument' then
+ local core = require 'core.command.exportDocument'
+ core(params.arguments)
end
end
}