summaryrefslogtreecommitdiff
path: root/script/provider/provider.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/provider/provider.lua')
-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