feat(lsp): support completion itemDefaults

This commit is contained in:
Maria José Solano
2024-02-26 11:42:51 -08:00
committed by Christian Clason
parent 3d96e3f9f2
commit 63f9c2da9a
5 changed files with 93 additions and 1 deletions

View File

@@ -551,6 +551,10 @@ end
--- Can be used to extract the completion items from a
--- `textDocument/completion` request, which may return one of
--- `CompletionItem[]`, `CompletionList` or null.
---
--- Note that this method doesn't apply `itemDefaults` to `CompletionList`s, and hence the returned
--- results might be incorrect.
---
---@deprecated
---@param result table The result of a `textDocument/completion` request
---@return lsp.CompletionItem[] List of completion items