fix(#1615): focus created file when command line prompt requires confirmation (#1622)

* fix(#1615): focus created file when command line prompt requires confirmation

* fix(#1615): focus created file when command line prompt requires confirmation
This commit is contained in:
Alexander Courtis
2022-10-08 14:26:31 +11:00
committed by GitHub
parent c5536db0b7
commit be2b4f58e6
2 changed files with 7 additions and 6 deletions

View File

@@ -39,7 +39,7 @@ local function is_folder_ignored(path)
return false
end
local function refresh_path(path)
function M.refresh_path(path)
log.line("watcher", "node event executing '%s'", path)
local n = utils.get_node_from_path(path)
if not n then
@@ -65,7 +65,7 @@ function M.create_watcher(absolute_path)
local function callback(watcher)
log.line("watcher", "node event scheduled %s", watcher.context)
utils.debounce(watcher.context, M.debounce_delay, function()
refresh_path(watcher._path)
M.refresh_path(watcher._path)
end)
end