From 3501b0f96d9f2f878b1947cf3614bc02d053a0c0 Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 19 May 2025 05:58:01 +0200 Subject: fix(registry): ensure there's no duplicate registry entries (#1957) --- lua/mason-registry/sources/lua.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lua/mason-registry/sources/lua.lua') diff --git a/lua/mason-registry/sources/lua.lua b/lua/mason-registry/sources/lua.lua index 8b4aac33..40e728b6 100644 --- a/lua/mason-registry/sources/lua.lua +++ b/lua/mason-registry/sources/lua.lua @@ -88,6 +88,11 @@ function LuaRegistrySource:serialize() } end +---@param other LuaRegistrySource +function LuaRegistrySource:is_same_location(other) + return self.id == other.id +end + function LuaRegistrySource:__tostring() return ("LuaRegistrySource(mod=%s)"):format(self.spec.mod) end -- cgit v1.2.3-70-g09d2