aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-12-27 09:42:30 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-12-27 11:09:51 +0100
commite0eb4188bfabefac54dd7cdcfe57fbb6ddb724b5 (patch)
tree3f7ab8ae5f864c8eb274ee79d0b7787e14b7fdaf /runtime/lua/vim/lsp/util.lua
parent8492a84bfd4f9f743bd86a34875cc6b82fd0df96 (diff)
downloadrneovim-e0eb4188bfabefac54dd7cdcfe57fbb6ddb724b5.tar.gz
rneovim-e0eb4188bfabefac54dd7cdcfe57fbb6ddb724b5.tar.bz2
rneovim-e0eb4188bfabefac54dd7cdcfe57fbb6ddb724b5.zip
revert: "fix: correct versions in deprecation warnings"
This reverts commit 5cb906e91cb56302d0737aa80e2d890dde452029. They were intentionally fast-tracked. - `parse_snippet()` because of limited scope, and given that it's kinda semi-broken (arbitrary formatting rules, not that useful for what it was used for) - `extract_completion_items()` doesn't work if we want to add the LSP completionlist capability - `text_document_completion_list_to_complete_items()` also doesn't work for completionlist
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index 90e2f28ef4..ba7ce3c2b6 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -553,7 +553,7 @@ end
---@return lsp.CompletionItem[] List of completion items
---@see https://microsoft.github.io/language-server-protocol/specification#textDocument_completion
function M.extract_completion_items(result)
- vim.deprecate('vim.lsp.util.extract_completion_items()', nil, '0.12')
+ vim.deprecate('vim.lsp.util.extract_completion_items()', nil, '0.11')
if type(result) == 'table' and result.items then
-- result is a `CompletionList`
return result.items
@@ -613,7 +613,7 @@ end
---@param input string unparsed snippet
---@return string parsed snippet
function M.parse_snippet(input)
- vim.deprecate('vim.lsp.util.parse_snippet()', nil, '0.12')
+ vim.deprecate('vim.lsp.util.parse_snippet()', nil, '0.11')
local ok, parsed = pcall(function()
return snippet.parse(input)
end)
@@ -635,7 +635,7 @@ end
---@return table[] items
---@see complete-items
function M.text_document_completion_list_to_complete_items(result, prefix)
- vim.deprecate('vim.lsp.util.text_document_completion_list_to_complete_items()', nil, '0.12')
+ vim.deprecate('vim.lsp.util.text_document_completion_list_to_complete_items()', nil, '0.11')
return require('vim.lsp._completion')._lsp_to_complete_items(result, prefix)
end