This repository was archived by the owner on Jul 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ function TagManager.new(store)
6666 nameChangedSignals = {},
6767 tags = {},
6868 onUpdate = {},
69+ _gaveDuplicateWarningsFor = {},
6970 }, TagManager )
7071
7172 TagManager ._global = self
@@ -220,15 +221,30 @@ end
220221
221222function TagManager :_doUpdateStore ()
222223 self .updateTriggered = false
223- local tags : { [ number ]: Tag } = {}
224+ local tags : { Tag } = {}
224225 local groups : { [string ]: boolean } = {}
225226 local sel = Selection :Get ()
227+ local tagNamesSeen : { [string ]: boolean } = {}
226228
227229 if self .tagsFolder then
228230 for _ , inst in pairs (self .tagsFolder :GetChildren ()) do
229231 if not inst :IsA (" Configuration" ) then
230232 continue
231233 end
234+ if tagNamesSeen [inst .Name ] then
235+ if not self ._gaveDuplicateWarningsFor [inst .Name ] then
236+ warn (
237+ string.format (
238+ " Multiple tags in ServerStorage.TagList are named %q, consider removing the duplicates." ,
239+ inst .Name
240+ )
241+ )
242+ self ._gaveDuplicateWarningsFor [inst .Name ] = true
243+ end
244+ continue
245+ end
246+ tagNamesSeen [inst .Name ] = true
247+
232248 local hasAny = false
233249 local missingAny = false
234250 local entry : Tag = {
You can’t perform that action at this time.
0 commit comments