Skip to content

Commit 44e0823

Browse files
fix :LspDocumentDiagnostics
1 parent b02345d commit 44e0823

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

autoload/lsp/ui/vim/utils.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function! lsp#ui#vim#utils#diagnostics_to_loc_list(result) abort
121121
let l:text .= l:item['code'] . ':'
122122
endif
123123
let l:text .= l:item['message']
124-
let [l:line, l:col] = lsp#utils#position#_lsp_to_vim(l:path, l:item['range'])
124+
let [l:line, l:col] = lsp#utils#position#_lsp_to_vim(l:path, l:item['range']['start'])
125125
call add(l:list, {
126126
\ 'filename': l:path,
127127
\ 'lnum': l:line,
@@ -131,6 +131,7 @@ function! lsp#ui#vim#utils#diagnostics_to_loc_list(result) abort
131131
endfor
132132
endif
133133

134+
134135
return l:list
135136
endfunction
136137

0 commit comments

Comments
 (0)