mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
feat(lsp): report fswatch errors
Resolves #27713 Co-authored-by: Tomasz N <przepompownia@users.noreply.github.com>
This commit is contained in:

committed by
Lewis Russell

parent
3d2aeec68d
commit
8149bd089e
@@ -283,6 +283,17 @@ function M.fswatch(path, opts, callback)
|
|||||||
'/.git/',
|
'/.git/',
|
||||||
path,
|
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)
|
stdout = function(err, data)
|
||||||
if err then
|
if err then
|
||||||
error(err)
|
error(err)
|
||||||
|
Reference in New Issue
Block a user