diff options
author | Christian Clason <c.clason@uni-graz.at> | 2025-03-17 10:58:30 +0100 |
---|---|---|
committer | Christian Clason <ch.clason+github@icloud.com> | 2025-03-17 23:43:09 +0100 |
commit | 3b1d0e7f701b53d72e4fdf5a721d2684d055cc1d (patch) | |
tree | 38f6c87c036230e5180901e40ed4267273bd69f2 /runtime/lua/vim/lsp/diagnostic.lua | |
parent | 97bbc49cda267b63c773826858f3337721853746 (diff) | |
download | rneovim-3b1d0e7f701b53d72e4fdf5a721d2684d055cc1d.tar.gz rneovim-3b1d0e7f701b53d72e4fdf5a721d2684d055cc1d.tar.bz2 rneovim-3b1d0e7f701b53d72e4fdf5a721d2684d055cc1d.zip |
fix(diagnostic): remove deprecated `severity_limit` option
Deprecated to be removed in 0.11
Diffstat (limited to 'runtime/lua/vim/lsp/diagnostic.lua')
-rw-r--r-- | runtime/lua/vim/lsp/diagnostic.lua | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/runtime/lua/vim/lsp/diagnostic.lua b/runtime/lua/vim/lsp/diagnostic.lua index 20c3882d23..f611a13c2f 100644 --- a/runtime/lua/vim/lsp/diagnostic.lua +++ b/runtime/lua/vim/lsp/diagnostic.lua @@ -200,13 +200,6 @@ function M.get_namespace(client_id, is_pull) end end -local function convert_severity(opt) - if type(opt) == 'table' and not opt.severity and opt.severity_limit then - vim.deprecate('severity_limit', '{min = severity} See vim.diagnostic.severity', '0.11') - opt.severity = { min = severity_lsp_to_vim(opt.severity_limit) } - end -end - --- @param uri string --- @param client_id? integer --- @param diagnostics lsp.Diagnostic[] @@ -303,7 +296,6 @@ end ---@private function M.get_line_diagnostics(bufnr, line_nr, opts, client_id) vim.deprecate('vim.lsp.diagnostic.get_line_diagnostics', 'vim.diagnostic.get', '0.12') - convert_severity(opts) local diag_opts = {} --- @type vim.diagnostic.GetOpts if opts and opts.severity then |