Skip to content

Missing documentation for b:coc_diagnostic_info.lnums. #3121

Answered by fannheyward
adriantrunzo asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, the coc_diagnostic_info is defined in

let lnums = [0, 0, 0, 0]
let info = { error: 0, warning: 0, information: 0, hint: 0, lnums }
for (let diagnostic of diagnostics) {
switch (diagnostic.severity) {
case DiagnosticSeverity.Warning:
info.warning = info.warning + 1
lnums[1] = lnums[1] || diagnostic.range.start.line + 1
break
case DiagnosticSeverity.Information:
info.information = info.information + 1
lnums[2] = lnums[2] || diagnostic.range.start.line + 1
break
case DiagnosticSeverity.Hint:
info.hint = info.hint + 1
lnums[3] = lnums[3] || dia…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@adriantrunzo
Comment options

Answer selected by adriantrunzo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants