aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2025-05-15 18:34:17 +0200
committerGitHub <noreply@github.com>2025-05-15 18:34:17 +0200
commit888d6ee499d8089a3a4be4309d239d6be1c1e6c0 (patch)
treedd65ed2084a4938f15f0647ee2b7e28da6a09293
parentdocs: update references to mason-org/mason.nvim (#1925) (diff)
downloadmason-888d6ee499d8089a3a4be4309d239d6be1c1e6c0.tar
mason-888d6ee499d8089a3a4be4309d239d6be1c1e6c0.tar.gz
mason-888d6ee499d8089a3a4be4309d239d6be1c1e6c0.tar.bz2
mason-888d6ee499d8089a3a4be4309d239d6be1c1e6c0.tar.lz
mason-888d6ee499d8089a3a4be4309d239d6be1c1e6c0.tar.xz
mason-888d6ee499d8089a3a4be4309d239d6be1c1e6c0.tar.zst
mason-888d6ee499d8089a3a4be4309d239d6be1c1e6c0.zip
fix(spawn): fix calling vim.fn when inside fast event loop on Windows (#1950)
-rw-r--r--lua/mason-core/spawn.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/mason-core/spawn.lua b/lua/mason-core/spawn.lua
index 0a1bb828..038d7853 100644
--- a/lua/mason-core/spawn.lua
+++ b/lua/mason-core/spawn.lua
@@ -66,6 +66,7 @@ setmetatable(spawn, {
-- Find the executable path via vim.fn.exepath on Windows because libuv fails to resolve certain executables
-- in PATH.
if platform.is.win and (spawn_args.env and has_path(spawn_args.env)) == nil then
+ a.scheduler()
local expanded_cmd = vim.fn.exepath(canonical_cmd)
if expanded_cmd ~= "" then
cmd = expanded_cmd