aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/util.lua
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2022-07-09 10:42:49 -0600
committerGitHub <noreply@github.com>2022-07-09 18:42:49 +0200
commit782f7261363f7242cf7472e64434604915fa3075 (patch)
tree69255590e5f08fc2ff28466c7d1ea9ca55fcfbcf /runtime/lua/vim/lsp/util.lua
parent6b1a8f23d7da60aa2fe53cd66760176d2f589690 (diff)
downloadrneovim-782f7261363f7242cf7472e64434604915fa3075.tar.gz
rneovim-782f7261363f7242cf7472e64434604915fa3075.tar.bz2
rneovim-782f7261363f7242cf7472e64434604915fa3075.zip
refactor: remove functions marked for deprecation in 0.8 (#19299)
Diffstat (limited to 'runtime/lua/vim/lsp/util.lua')
-rw-r--r--runtime/lua/vim/lsp/util.lua29
1 files changed, 0 insertions, 29 deletions
diff --git a/runtime/lua/vim/lsp/util.lua b/runtime/lua/vim/lsp/util.lua
index c061cbd216..73476c0795 100644
--- a/runtime/lua/vim/lsp/util.lua
+++ b/runtime/lua/vim/lsp/util.lua
@@ -1722,35 +1722,6 @@ function M.locations_to_items(locations, offset_encoding)
return items
end
---- Fills target window's location list with given list of items.
---- Can be obtained with e.g. |vim.lsp.util.locations_to_items()|.
---- Defaults to current window.
----
----@deprecated Use |setloclist()|
----
----@param items (table) list of items
-function M.set_loclist(items, win_id)
- vim.deprecate('vim.lsp.util.set_loclist', 'setloclist', '0.8')
- vim.fn.setloclist(win_id or 0, {}, ' ', {
- title = 'Language Server',
- items = items,
- })
-end
-
---- Fills quickfix list with given list of items.
---- Can be obtained with e.g. |vim.lsp.util.locations_to_items()|.
----
----@deprecated Use |setqflist()|
----
----@param items (table) list of items
-function M.set_qflist(items)
- vim.deprecate('vim.lsp.util.set_qflist', 'setqflist', '0.8')
- vim.fn.setqflist({}, ' ', {
- title = 'Language Server',
- items = items,
- })
-end
-
-- According to LSP spec, if the client set "symbolKind.valueSet",
-- the client must handle it properly even if it receives a value outside the specification.
-- https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_documentSymbol