diff options
Diffstat (limited to 'lua/mason-registry/sources')
| -rw-r--r-- | lua/mason-registry/sources/init.lua | 6 | ||||
| -rw-r--r-- | lua/mason-registry/sources/synthesized.lua | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lua/mason-registry/sources/init.lua b/lua/mason-registry/sources/init.lua index f468a8ef..36e62ec5 100644 --- a/lua/mason-registry/sources/init.lua +++ b/lua/mason-registry/sources/init.lua @@ -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 {} @@ -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 = {} diff --git a/lua/mason-registry/sources/synthesized.lua b/lua/mason-registry/sources/synthesized.lua index 75638cd6..8cad635e 100644 --- a/lua/mason-registry/sources/synthesized.lua +++ b/lua/mason-registry/sources/synthesized.lua @@ -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, |
