diff --git a/CHANGELOG.md b/CHANGELOG.md index a5c90bc74..dfb312213 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ - A class which implements itself will no longer cause a crash when rendering HTML, #2495. - Variable functions which have construct signatures will no longer be converted as functions, ignoring the construct signatures. - Fixed an issue where, if the index section was collapsed when loading the page, all content within it would be hidden until expanded, and a member visibility checkbox was changed. +- `Context.programs` will no longer contain duplicates, #2498. ## v0.25.7 (2024-01-08) diff --git a/src/lib/converter/converter.ts b/src/lib/converter/converter.ts index 445f3880c..08efaaeb9 100644 --- a/src/lib/converter/converter.ts +++ b/src/lib/converter/converter.ts @@ -13,7 +13,7 @@ import { import { Context } from "./context"; import { ConverterComponent } from "./components"; import { Component, ChildableComponent } from "../utils/component"; -import { Option, MinimalSourceFile, readFile } from "../utils"; +import { Option, MinimalSourceFile, readFile, unique } from "../utils"; import { convertType } from "./types"; import { ConverterEvents } from "./converter-events"; import { convertSymbol } from "./symbols"; @@ -222,7 +222,7 @@ export class Converter extends ChildableComponent< convert( entryPoints: readonly DocumentationEntryPoint[], ): ProjectReflection { - const programs = entryPoints.map((e) => e.program); + const programs = unique(entryPoints.map((e) => e.program)); this.externalPatternCache = void 0; const project = new ProjectReflection(