fix(#1731): watcher refreshes node rather than the first node matching absolute path, profile refresh

This commit is contained in:
Alexander Courtis
2022-11-19 17:07:05 +11:00
parent e38e061710
commit 1c57a8284d
5 changed files with 57 additions and 23 deletions

View File

@@ -15,9 +15,9 @@ function Explorer.new(cwd)
local explorer = setmetatable({
absolute_path = cwd,
nodes = {},
watcher = watch.create_watcher(cwd),
open = true,
}, Explorer)
explorer.watcher = watch.create_watcher(explorer)
explorer:_load(explorer)
return explorer
end