mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-16 02:51:30 +08:00
Fix #1384 - Handle warnings and suggestions for tsserver
This commit is contained in:
1 parent
acbe527e15
commit
2c2c7ceb1d
2 files changed
+41
-2
No files matched your search
@@ -59,6 +59,14 @@ function! ale#lsp#response#ReadTSServerDiagnostics(response) abort
|
||||
let l:loclist_item.nr = l:diagnostic.code
|
||||
endif
|
||||
|
||||
if get(l:diagnostic, 'category') is# 'warning'
|
||||
let l:loclist_item.type = 'W'
|
||||
endif
|
||||
|
||||
if get(l:diagnostic, 'category') is# 'suggestion'
|
||||
let l:loclist_item.type = 'I'
|
||||
endif
|
||||
|
||||
call add(l:loclist, l:loclist_item)
|
||||
endfor
|
||||
|
||||
|
||||
Reference in new issue
Block a user