Skip to content

typescript-plugin does not respect tsconfig.json include #523

@svallory

Description

@svallory

Initial checklist

Affected package

@mdx-js/typescript-plugin@0.1.3 and the latest vscode extension (I think)

Steps to reproduce

  1. Add "**/*" to the tsconfig's include
  2. Set mdx.checkMdx to true
  3. Try to import a file that is not a TS or JS file

Here's my tsconfig:

{
  "extends": "astro/tsconfigs/strict",
  "include": [
    ".astro/types.d.ts",
    "**/*"
  ],
  "exclude": [
    "dist"
  ],
  "compilerOptions": {
    "plugins": [
      {
        "name": "@mdx-js/typescript-plugin"
      },
      {
        "name": "@astrojs/ts-plugin",
      },
    ],
    "paths": {
      "@/*": [
        "./src/*"
      ],
      "~/*": [
        "./src/*"
      ]
    }
  },
  "mdx": {
    // Enable strict type checking in MDX files.
    "checkMdx": true
  }
}
Image Image

Actual behavior

I can only see TS and JS files

Expected behavior

I should see all files matched by tsconfig include

Runtime

node@24 and typescript@5.9

Package manager

bun@1.3.5

Operating system

macOS Sequoia 15.5

Build and bundle tools

Astro

Metadata

Metadata

Assignees

No one assigned

    Labels

    👀 no/externalThis makes more sense somewhere else👎 phase/noPost cannot or will not be acted on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions