mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
feat(lsp): report fswatch errors
Resolves #27713 Co-authored-by: Tomasz N <przepompownia@users.noreply.github.com>
This commit is contained in:
parent
3d2aeec68d
commit
8149bd089e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user