summaryrefslogtreecommitdiff
path: root/script/provider
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-12 20:44:33 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-12 20:44:33 +0800
commitd9d65f5720ec8f9052e84f839161a781613592d3 (patch)
tree8b7cf5e2aab4d99190564b9fde51a13484622495 /script/provider
parentecffa11c6f5f296856428743f5763abde16c4b85 (diff)
downloadlua-language-server-d9d65f5720ec8f9052e84f839161a781613592d3.zip
memoryAPI
Diffstat (limited to 'script/provider')
-rw-r--r--script/provider/provider.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/script/provider/provider.lua b/script/provider/provider.lua
index dbeb9804..57346dcc 100644
--- a/script/provider/provider.lua
+++ b/script/provider/provider.lua
@@ -21,6 +21,7 @@ local furi = require 'file-uri'
local inspect = require 'inspect'
local markdown = require 'provider.markdown'
local guide = require 'parser.guide'
+local vm = require 'vm.vm'
---@async
local function updateConfig(uri)
@@ -1338,6 +1339,13 @@ m.register 'workspace/diagnostic' {
end
}
+m.register '$/api/report' {
+ ---@async
+ function (params)
+ vm.saveMemoryAPI(params)
+ end
+}
+
local function refreshStatusBar()
local valid = config.get(nil, 'Lua.window.statusBar')
for _, scp in ipairs(workspace.folders) do