You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changed the title [-]@includeCode does to allow regions in typescript files with .mts file extension[/-][+]@includeCode does not allow regions in typescript files with .mts file extension[/+]on Apr 15, 2025
Activity
demonstrates TypeStrong/typedoc#2935
Gerrit0 commentedon Apr 15, 2025
Easy to fix! https://github.com/TypeStrong/typedoc/blob/master/src/lib/converter/plugins/IncludePlugin.ts
littlespex commentedon Apr 15, 2025
I tried adding
regionTagREsByExt["mts"] = regionTagREsByExt["ts"];
. It solves the issue, but now I see this warning:Gerrit0 commentedon Apr 15, 2025
Ah, that makes some sense, we'll probably have to add some default aliases in https://github.com/TypeStrong/typedoc/blob/master/src/lib/utils/highlighter.tsx
Add mts and cts file extension aliases
littlespex commentedon Apr 15, 2025
Thanks! I'll have a PR shortly
[-]@includeCode does to allow regions in typescript files with .mts file extension[/-][+]@includeCode does not allow regions in typescript files with .mts file extension[/+]