diff options
| author | William Boman <william@redwill.se> | 2026-01-07 16:25:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-07 16:25:00 +0100 |
| commit | 3fce8bd25e773bae4267c9e8f2cfbfda22aeb017 (patch) | |
| tree | 9f1e34b7a31cd0b849c7b911254e8866412a6f0d /lua/mason-registry/sources/init.lua | |
| parent | chore(main): release 2.2.0 (#2032) (diff) | |
| download | mason-3fce8bd25e773bae4267c9e8f2cfbfda22aeb017.tar mason-3fce8bd25e773bae4267c9e8f2cfbfda22aeb017.tar.gz mason-3fce8bd25e773bae4267c9e8f2cfbfda22aeb017.tar.bz2 mason-3fce8bd25e773bae4267c9e8f2cfbfda22aeb017.tar.lz mason-3fce8bd25e773bae4267c9e8f2cfbfda22aeb017.tar.xz mason-3fce8bd25e773bae4267c9e8f2cfbfda22aeb017.tar.zst mason-3fce8bd25e773bae4267c9e8f2cfbfda22aeb017.zip | |
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".
Diffstat (limited to 'lua/mason-registry/sources/init.lua')
| -rw-r--r-- | lua/mason-registry/sources/init.lua | 6 |
1 files changed, 4 insertions, 2 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 = {} |
