mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-18 03:51:26 +08:00
Add fix to HandleTSServerDiagnostics function.
This commit is contained in:
1 parent
b41836130c
commit
2f13c2d263
1 file changed
+1
-1
@@ -49,7 +49,7 @@ endfunction
|
|||||||
|
|
||||||
function! s:HandleTSServerDiagnostics(response, error_type) abort
|
function! s:HandleTSServerDiagnostics(response, error_type) abort
|
||||||
let l:linter_name = 'tsserver'
|
let l:linter_name = 'tsserver'
|
||||||
let l:buffer = bufnr(a:response.body.file)
|
let l:buffer = bufnr('^' . a:response.body.file . '$')
|
||||||
let l:info = get(g:ale_buffer_info, l:buffer, {})
|
let l:info = get(g:ale_buffer_info, l:buffer, {})
|
||||||
|
|
||||||
if empty(l:info)
|
if empty(l:info)
|
||||||
|
|||||||
Reference in new issue
Block a user