Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/mason-registry/installer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function M.install(sources, on_progress)
M.channel = OneShotChannel:new()

local finished_registries = {}
local registries = sources:to_list { include_uninstalled = true }
local registries = sources:to_list { include_uninstalled = true, include_synthesized = false }

local results = {
a.wait_all(_.map(
Expand Down
6 changes: 4 additions & 2 deletions lua/mason-registry/sources/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ function LazySourceCollection:checksum()
return vim.fn.sha256(table.concat(registry_ids, ""))
end

---@param opts? { include_uninstalled?: boolean, include_synthesized?: boolean }
---@alias LazySourceCollectionIterate { include_uninstalled?: boolean, include_synthesized?: boolean }

---@param opts? LazySourceCollectionIterate
function LazySourceCollection:iterate(opts)
opts = opts or {}

Expand All @@ -213,7 +215,7 @@ function LazySourceCollection:iterate(opts)
end
end

---@param opts? { include_uninstalled?: boolean }
---@param opts? LazySourceCollectionIterate
function LazySourceCollection:to_list(opts)
opts = opts or {}
local list = {}
Expand Down
2 changes: 1 addition & 1 deletion lua/mason-registry/sources/synthesized.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function SynthesizedRegistrySource:load_package(pkg_name, receipt)
homepage = "",
licenses = {},
deprecation = {
since = receipt:get_installed_package_version() or "N/A",
since = installed_version or "N/A",
message = "This package has been removed from the registry.",
},
source = source,
Expand Down