mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
feat: remove deprecated features
Remove following functions: - vim.lsp.util.extract_completion_items - vim.lsp.util.get_progress_messages - vim.lsp.util.parse_snippet() - vim.lsp.util.text_document_completion_list_to_complete_items - LanguageTree:for_each_child - health#report_error - health#report_info - health#report_ok - health#report_start - health#report_warn - vim.health.report_error - vim.health.report_info - vim.health.report_ok - vim.health.report_start - vim.health.report_warn
This commit is contained in:
@ -463,24 +463,6 @@ function LanguageTree:parse(range)
|
||||
return self._trees
|
||||
end
|
||||
|
||||
---@deprecated Misleading name. Use `LanguageTree:children()` (non-recursive) instead,
|
||||
--- add recursion yourself if needed.
|
||||
--- Invokes the callback for each |LanguageTree| and its children recursively
|
||||
---
|
||||
---@param fn fun(tree: vim.treesitter.LanguageTree, lang: string)
|
||||
---@param include_self? boolean Whether to include the invoking tree in the results
|
||||
function LanguageTree:for_each_child(fn, include_self)
|
||||
vim.deprecate('LanguageTree:for_each_child()', 'LanguageTree:children()', '0.11')
|
||||
if include_self then
|
||||
fn(self, self._lang)
|
||||
end
|
||||
|
||||
for _, child in pairs(self._children) do
|
||||
--- @diagnostic disable-next-line:deprecated
|
||||
child:for_each_child(fn, true)
|
||||
end
|
||||
end
|
||||
|
||||
--- Invokes the callback for each |LanguageTree| recursively.
|
||||
---
|
||||
--- Note: This includes the invoking tree's child trees as well.
|
||||
|
Reference in New Issue
Block a user