From 6e2bc51ff72948ae043f3518a92784202260fa1c Mon Sep 17 00:00:00 2001 From: William Boman Date: Wed, 11 Oct 2023 18:49:29 +0200 Subject: chore: remove todo comment Using sync is actually preferable here (and likely in many other places) to avoid async context & continuation overhead. --- lua/mason-core/installer/compiler/link.lua | 1 - 1 file changed, 1 deletion(-) (limited to 'lua') diff --git a/lua/mason-core/installer/compiler/link.lua b/lua/mason-core/installer/compiler/link.lua index 5d136322..9719eaa9 100644 --- a/lua/mason-core/installer/compiler/link.lua +++ b/lua/mason-core/installer/compiler/link.lua @@ -213,7 +213,6 @@ local function expand_file_spec(ctx, purl, source, file_spec_table) ---@type string[] local files = _.filter_map(function(abs_path) - -- fs.sync because async causes stack overflow on many files (TODO fix that) if not fs.sync.file_exists(abs_path) then -- only link actual files (e.g. exclude directory entries from glob) return Optional.empty() -- cgit v1.2.3-70-g09d2