From 4da89f3ab04783da990f9bd40aaa36c22e59375b Mon Sep 17 00:00:00 2001 From: William Boman Date: Fri, 2 May 2025 03:52:10 +0200 Subject: refactor(registry): change lua registries to not instantiate Package themselves Instead of having Lua registries instantiate package instances themselves we now do it in the installer of Lua registry sources. This aligns the behaviour of the Lua registry protocol with the other registry protocols. --- lua/mason-registry/init.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lua/mason-registry/init.lua') diff --git a/lua/mason-registry/init.lua b/lua/mason-registry/init.lua index b129380c..713335f0 100644 --- a/lua/mason-registry/init.lua +++ b/lua/mason-registry/init.lua @@ -119,9 +119,11 @@ function Registry.update(callback) Registry:emit("update:progress", finished, all) end) :on_success(function(updated_registries) + log.fmt_debug("Successfully updated %d registries.", #updated_registries) Registry:emit("update:success", updated_registries) end) :on_failure(function(errors) + log.error("Failed to update registries.", errors) Registry:emit("update:failed", errors) end) :get_or_throw() -- cgit v1.2.3-70-g09d2