feat/pack #1

Merged
tomas.mirchev merged 9 commits from feat/pack into main 2025-10-26 04:18:15 +00:00
Showing only changes of commit 63e81da490 - Show all commits

View File

@ -234,8 +234,15 @@ function M.mason_install()
local result = utils.await(function(resolve)
for _, name in ipairs(packages) do
print('Mason package installing: ' .. name)
local pkg = registry.get_package(name)
if pkg:is_installed() then
print('Mason package already installed: ' .. name)
pending = pending - 1
if pending == 0 then
resolve(true)
end
else
print('Mason package installing: ' .. name)
pkg:install({}, function(success, error)
if success then
print('Mason package installed: ' .. name)
@ -250,6 +257,7 @@ function M.mason_install()
end
end)
end
end
end, 5 * 60 * 1000, 200)
if not result.ok or pending ~= 0 then