fix(#1831): remove instrumentation (#1968)

This commit is contained in:
Alexander Courtis
2023-02-04 16:54:36 +11:00
committed by GitHub
parent 8505b6ecd8
commit e0166d1469
4 changed files with 7 additions and 55 deletions

View File

@@ -4,8 +4,8 @@ local watch = require "nvim-tree.explorer.watch"
local M = {}
function M.folder(parent, absolute_path, name)
local handle = utils.fs_scandir_profiled(absolute_path)
local has_children = handle and utils.fs_scandir_next_profiled(handle, absolute_path) ~= nil
local handle = vim.loop.fs_scandir(absolute_path)
local has_children = handle and vim.loop.fs_scandir_next(handle) ~= nil
local node = {
type = "directory",
@@ -63,8 +63,8 @@ function M.link(parent, absolute_path, name)
local is_dir_link = (link_to ~= nil) and vim.loop.fs_stat(link_to).type == "directory"
if is_dir_link then
local handle = utils.fs_scandir_profiled(link_to)
has_children = handle and utils.fs_scandir_next_profiled(handle, link_to) ~= nil
local handle = vim.loop.fs_scandir(link_to)
has_children = handle and vim.loop.fs_scandir_next(handle) ~= nil
open = false
nodes = {}
end