From 3fce8bd25e773bae4267c9e8f2cfbfda22aeb017 Mon Sep 17 00:00:00 2001 From: William Boman Date: Wed, 7 Jan 2026 16:25:00 +0100 Subject: fix(registry): exclude synthesized registry when updating/installing registries (#2054) This doesn't necessarily fix a "bug" but primarily fixes the message provided to users when updating registries. If a user has 1 registry configured the message is now "updating 2 registries", this fixes it to "updating registry". --- lua/mason-registry/sources/init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lua/mason-registry/sources/init.lua') 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 = {} -- cgit v1.2.3-70-g09d2