mirror of
https://github.com/dense-analysis/ale.git
synced 2026-03-01 21:07:00 +08:00
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:
@@ -33,7 +33,7 @@ function! ale#lsp#response#ReadDiagnostics(response) abort
|
|||||||
\ 'lnum': l:diagnostic.range.start.line + 1,
|
\ 'lnum': l:diagnostic.range.start.line + 1,
|
||||||
\ 'col': l:diagnostic.range.start.character + 1,
|
\ 'col': l:diagnostic.range.start.character + 1,
|
||||||
\ 'end_lnum': l:diagnostic.range.end.line + 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
|
if l:severity == s:SEVERITY_WARNING
|
||||||
|
|||||||
Reference in New Issue
Block a user