We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b02345d commit 44e0823Copy full SHA for 44e0823
autoload/lsp/ui/vim/utils.vim
@@ -121,7 +121,7 @@ function! lsp#ui#vim#utils#diagnostics_to_loc_list(result) abort
121
let l:text .= l:item['code'] . ':'
122
endif
123
let l:text .= l:item['message']
124
- let [l:line, l:col] = lsp#utils#position#_lsp_to_vim(l:path, l:item['range'])
+ let [l:line, l:col] = lsp#utils#position#_lsp_to_vim(l:path, l:item['range']['start'])
125
call add(l:list, {
126
\ 'filename': l:path,
127
\ 'lnum': l:line,
@@ -131,6 +131,7 @@ function! lsp#ui#vim#utils#diagnostics_to_loc_list(result) abort
131
endfor
132
133
134
+
135
return l:list
136
endfunction
137
0 commit comments