fix(lsp): semantic token defer loading

Fixes #27424
This commit is contained in:
Lewis Russell
2024-02-11 18:07:04 +00:00
committed by Lewis Russell
parent 4682f158a0
commit 917172dd96
2 changed files with 7 additions and 4 deletions

View File

@@ -644,6 +644,11 @@ M[ms.workspace_inlayHint_refresh] = function(err, result, ctx, config)
return vim.lsp.inlay_hint.on_refresh(err, result, ctx, config)
end
---@see https://microsoft.github.io/language-server-protocol/specifications/specification-current/#semanticTokens_refreshRequest
M[ms.workspace_semanticTokens_refresh] = function(err, result, ctx, _config)
return vim.lsp.semantic_tokens._refresh(err, result, ctx)
end
-- Add boilerplate error validation and logging for all of these.
for k, fn in pairs(M) do
M[k] = function(err, result, ctx, config)