chore: resolve undefined-field
This commit is contained in:
@@ -66,9 +66,10 @@ function M.create_watcher(node)
|
||||
return nil
|
||||
end
|
||||
|
||||
---@param watcher Watcher
|
||||
local function callback(watcher)
|
||||
log.line("watcher", "node event scheduled refresh %s", watcher.context)
|
||||
utils.debounce(watcher.context, M.config.filesystem_watchers.debounce_delay, function()
|
||||
log.line("watcher", "node event scheduled refresh %s", watcher.data.context)
|
||||
utils.debounce(watcher.data.context, M.config.filesystem_watchers.debounce_delay, function()
|
||||
if watcher.destroyed then
|
||||
return
|
||||
end
|
||||
@@ -82,7 +83,7 @@ function M.create_watcher(node)
|
||||
end
|
||||
|
||||
M.uid = M.uid + 1
|
||||
return Watcher:new(path, nil, callback, {
|
||||
return Watcher:create(path, nil, callback, {
|
||||
context = "explorer:watch:" .. path .. ":" .. M.uid,
|
||||
})
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user