TypeDoc 0.16.4: project.removeReflection does not fully remove a reflection #1176
Closed
1 task done
Labels
bug
Functionality does not match expectation
Expected Behavior
Calling
ProjectReflection.removeReflection()
should remove the reflection from the projectActual Behavior
A reference to the removed reflection remains in the
ProjectReflection.reflections
array. This array is still used in some typedoc code to iterate reflections.If
--json
is used, the reflection does not appear in the output. However, the reflection appears in the output if--out dist
is used.Steps to reproduce the bug
Create a plugin that deletes reflections, then generate HTML docs. Note that the deleted modules appear in the module list table of contents.
./delete-this-reflection.ts
./delete-reflections-plugin.js
Then run this command:
Note that the deleted Module reflection still appears in the table of contents:
Environment
Other details
I encountered this while trying to update
typescript-plugin-external-module-name
plugin to support 0.16.4The text was updated successfully, but these errors were encountered: