Add fix to HandleTSServerDiagnostics function.
This commit is contained in:
parent
b41836130c
commit
2f13c2d263
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user