diff options
author | w0rp <devw0rp@gmail.com> | 2018-03-02 20:33:45 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-03-02 20:33:45 +0000 |
commit | 2c2c7ceb1d2f3de97ba8a40dd7858e83b6755fcd (patch) | |
tree | ba0c0f405f56eb9694e0877a9fa45c09a1f276fe /autoload | |
parent | acbe527e15f1f388b8dbc9889216e9368d98e6c6 (diff) | |
download | ale-2c2c7ceb1d2f3de97ba8a40dd7858e83b6755fcd.zip |
Fix #1384 - Handle warnings and suggestions for tsserver
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/lsp/response.vim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/autoload/ale/lsp/response.vim b/autoload/ale/lsp/response.vim index 13219ef6..5a431287 100644 --- a/autoload/ale/lsp/response.vim +++ b/autoload/ale/lsp/response.vim @@ -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 |