End position in LSP range is exclusive
From LSP spec: > A range in a text document expressed as (zero-based) start and end > positions. A range is comparable to a selection in an editor. Therefore > the end position is exclusive.
This commit is contained in:
parent
d1fc084b2d
commit
d6d6fcf928
@ -33,7 +33,7 @@ function! ale#lsp#response#ReadDiagnostics(response) abort
|
||||
\ 'lnum': l:diagnostic.range.start.line + 1,
|
||||
\ 'col': l:diagnostic.range.start.character + 1,
|
||||
\ 'end_lnum': l:diagnostic.range.end.line + 1,
|
||||
\ 'end_col': l:diagnostic.range.end.character + 1,
|
||||
\ 'end_col': l:diagnostic.range.end.character,
|
||||
\}
|
||||
|
||||
if l:severity == s:SEVERITY_WARNING
|
||||
|
Loading…
Reference in New Issue
Block a user