feat(lsp): report fswatch errors

Resolves #27713

Co-authored-by: Tomasz N <przepompownia@users.noreply.github.com>
This commit is contained in:
Lewis RussellandTomasz N authored and Lewis Russell committed 2024-03-06 10:57:21 +00:00
1 parent 3d2aeec68d
commit 8149bd089e
1 file changed
+11
+11
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)