mirror of
https://github.com/neovim/neovim.git
synced 2025-11-22 10:06:33 +00:00
refactor: add warnings for deprecated functions (#18662)
This commit is contained in:
@@ -1691,7 +1691,7 @@ end
|
|||||||
---
|
---
|
||||||
---@param items (table) list of items
|
---@param items (table) list of items
|
||||||
function M.set_loclist(items, win_id)
|
function M.set_loclist(items, win_id)
|
||||||
vim.api.nvim_echo({ { 'vim.lsp.util.set_loclist is deprecated. See :h deprecated', 'WarningMsg' } }, true, {})
|
vim.deprecate('vim.lsp.util.set_loclist', 'setloclist', '0.8')
|
||||||
vim.fn.setloclist(win_id or 0, {}, ' ', {
|
vim.fn.setloclist(win_id or 0, {}, ' ', {
|
||||||
title = 'Language Server',
|
title = 'Language Server',
|
||||||
items = items,
|
items = items,
|
||||||
@@ -1705,7 +1705,7 @@ end
|
|||||||
---
|
---
|
||||||
---@param items (table) list of items
|
---@param items (table) list of items
|
||||||
function M.set_qflist(items)
|
function M.set_qflist(items)
|
||||||
vim.api.nvim_echo({ { 'vim.lsp.util.set_qflist is deprecated. See :h deprecated', 'WarningMsg' } }, true, {})
|
vim.deprecate('vim.lsp.util.set_qflist', 'setqflist', '0.8')
|
||||||
vim.fn.setqflist({}, ' ', {
|
vim.fn.setqflist({}, ' ', {
|
||||||
title = 'Language Server',
|
title = 'Language Server',
|
||||||
items = items,
|
items = items,
|
||||||
|
|||||||
Reference in New Issue
Block a user