fix(diagnostics): validate opts.signs #34565

(cherry picked from commit 3594c213a7)
This commit is contained in:
Bruce Wen
2025-06-18 19:26:28 +02:00
committed by github-actions[bot]
parent ecf5164d2d
commit 4303337c77

View File

@ -1442,6 +1442,7 @@ M.handlers.signs = {
vim.validate('bufnr', bufnr, 'number')
vim.validate('diagnostics', diagnostics, vim.islist, 'a list of diagnostics')
vim.validate('opts', opts, 'table', true)
vim.validate('opts.signs', (opts and opts or {}).signs, 'table', true)
bufnr = vim._resolve_bufnr(bufnr)
opts = opts or {}