fix: do not update diagnostics when tree is nil

fixes #984
fixes #981
This commit is contained in:
kiyan 2022-02-15 07:59:54 +01:00
parent b1127c5dea
commit c584ac3509

View File

@ -101,7 +101,7 @@ local function is_using_coc()
end
function M.update()
if not M.enable then
if not M.enable or not TreeExplorer then
return
end
local buffer_severity