Skip to content

@includeCode does not allow regions in typescript files with .mts file extension #2935

Closed
@littlespex

Description

@littlespex

Search terms

@includecode, mts

Expected Behavior

@includeCode works with all valid Typescript file extensions

Actual Behavior

An error is produced:

[error] @includeCode tag in {FUNCTION} specified "{FILE}.mts#{REGION}", but regions are not supported for this file extension.

Steps to reproduce the bug

  1. Create a typescript file with the .mts extension.
  2. Add a //#region comment block to the .mts file
  3. Reference the region form another file using a {@includeCode} tag

Reproduction PR: TypeStrong/typedoc-repros#52

Environment

  • Typedoc version: 0.28.2
  • TypeScript version: 5.8.3
  • Node.js version: 23.9.0
  • OS: macOs 15.3.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueEasier issue for first time contributors

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions