Skip to content

Commit 888d6ee

Browse files
authored
fix(spawn): fix calling vim.fn when inside fast event loop on Windows (#1950)
1 parent 7c7318e commit 888d6ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/mason-core/spawn.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ setmetatable(spawn, {
6666
-- Find the executable path via vim.fn.exepath on Windows because libuv fails to resolve certain executables
6767
-- in PATH.
6868
if platform.is.win and (spawn_args.env and has_path(spawn_args.env)) == nil then
69+
a.scheduler()
6970
local expanded_cmd = vim.fn.exepath(canonical_cmd)
7071
if expanded_cmd ~= "" then
7172
cmd = expanded_cmd

0 commit comments

Comments
 (0)