feat(lsp): support workspace/codeLens/refresh

This commit is contained in:
Yi Ming
2026-02-02 09:40:31 +08:00
parent fe23168e2b
commit 965468fca1
5 changed files with 92 additions and 2 deletions

View File

@@ -649,6 +649,11 @@ RSC['window/showDocument'] = function(_, params, ctx)
return { success = success or false }
end
---@see https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#codeLens_refresh
RSC['workspace/codeLens/refresh'] = function(err, result, ctx)
return vim.lsp.codelens.on_refresh(err, result, ctx)
end
---@see https://microsoft.github.io/language-server-protocol/specification/#diagnostic_refresh
RSC['workspace/diagnostic/refresh'] = function(err, result, ctx)
return vim.lsp.diagnostic.on_refresh(err, result, ctx)