@@ -240,8 +240,10 @@ function Explorer:reload(node, project)
240240
241241 local abs = utils .path_join ({ cwd , name })
242242
243- -- path incorrectly specified as an integer
244- local stat = vim .loop .fs_lstat (abs ) --- @diagnostic disable-line param-type-mismatch
243+ -- TODO remove once 0.12 is the minimum neovim version
244+ -- path incorrectly specified as an integer, fixed upstream for neovim 0.12 https://github.com/neovim/neovim/pull/33872
245+ --- @diagnostic disable-next-line : param-type-mismatch
246+ local stat = vim .loop .fs_lstat (abs )
245247
246248 local filter_reason = self .filters :should_filter_as_reason (abs , stat , filter_status )
247249 if filter_reason == FILTER_REASON .none then
@@ -399,8 +401,10 @@ function Explorer:populate_children(handle, cwd, node, project, parent)
399401 if Watcher .is_fs_event_capable (abs ) then
400402 local profile = log .profile_start (" populate_children %s" , abs )
401403
402- -- path incorrectly specified as an integer
403- local stat = vim .loop .fs_lstat (abs ) --- @diagnostic disable-line param-type-mismatch
404+ -- TODO remove once 0.12 is the minimum neovim version
405+ -- path incorrectly specified as an integer, fixed upstream for neovim 0.12 https://github.com/neovim/neovim/pull/33872
406+ --- @diagnostic disable-next-line : param-type-mismatch
407+ local stat = vim .loop .fs_lstat (abs )
404408
405409 local filter_reason = parent .filters :should_filter_as_reason (abs , stat , filter_status )
406410 if filter_reason == FILTER_REASON .none and not nodes_by_path [abs ] then
0 commit comments