diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-12 20:44:33 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-12 20:44:33 +0800 |
commit | d9d65f5720ec8f9052e84f839161a781613592d3 (patch) | |
tree | 8b7cf5e2aab4d99190564b9fde51a13484622495 /script/provider | |
parent | ecffa11c6f5f296856428743f5763abde16c4b85 (diff) | |
download | lua-language-server-d9d65f5720ec8f9052e84f839161a781613592d3.zip |
memoryAPI
Diffstat (limited to 'script/provider')
-rw-r--r-- | script/provider/provider.lua | 8 |
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 |