Skip to content
This repository was archived by the owner on Aug 24, 2020. It is now read-only.

Commit 47ad011

Browse files
authored
Treat severity=1 when not specified (prabirshrestha#686)
1 parent b9e6816 commit 47ad011

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/lsp/ui/vim/diagnostics/textprop.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function! s:place_highlights(server_name, path, diagnostics) abort
120120
let [l:start_line, l:start_col] = lsp#utils#position#_lsp_to_vim(l:bufnr, l:item['range']['start'])
121121
let [l:end_line, l:end_col] = lsp#utils#position#_lsp_to_vim(l:bufnr, l:item['range']['end'])
122122

123-
let l:prop_type = s:get_prop_type(a:server_name, l:item['severity'])
123+
let l:prop_type = s:get_prop_type(a:server_name, get(l:item, 'severity', 1))
124124
call prop_add(l:start_line, l:start_col, {
125125
\ 'end_lnum': l:end_line,
126126
\ 'end_col': l:end_col,

0 commit comments

Comments
 (0)