feat(lsp): report fswatch errors

Resolves #27713

Co-authored-by: Tomasz N <przepompownia@users.noreply.github.com>
This commit is contained in:
Lewis Russell 2024-03-03 11:54:39 +00:00 committed by Lewis Russell
parent 3d2aeec68d
commit 8149bd089e

View File

@ -283,6 +283,17 @@ function M.fswatch(path, opts, callback)
'/.git/',
path,
}, {
stderr = function(err, data)
if err then
error(err)
end
if data and #vim.trim(data) > 0 then
vim.schedule(function()
vim.notify('fswatch: ' .. data, vim.log.levels.ERROR)
end)
end
end,
stdout = function(err, data)
if err then
error(err)