mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
fix(lsp): adjust legacy show diagnostic functions to use correct scope (#16106)
* `where` was renamed to `scope`
This commit is contained in:
parent
f421718d8d
commit
dc6c9fe442
@ -552,7 +552,7 @@ end
|
||||
---@return table {popup_bufnr, win_id}
|
||||
function M.show_position_diagnostics(opts, buf_nr, position)
|
||||
opts = opts or {}
|
||||
opts.where = "cursor"
|
||||
opts.scope = "cursor"
|
||||
opts.pos = position
|
||||
if opts.severity then
|
||||
opts.severity = severity_lsp_to_vim(opts.severity)
|
||||
@ -575,7 +575,7 @@ end
|
||||
---@return table {popup_bufnr, win_id}
|
||||
function M.show_line_diagnostics(opts, buf_nr, line_nr, client_id)
|
||||
opts = opts or {}
|
||||
opts.where = "line"
|
||||
opts.scope = "line"
|
||||
opts.pos = line_nr
|
||||
if client_id then
|
||||
opts.namespace = M.get_namespace(client_id)
|
||||
|
Loading…
Reference in New Issue
Block a user