Skip to content

fix: Respect file exclusions when discovering tsconfig files#1552

Open
rifont wants to merge 1 commit intotailwindlabs:mainfrom
taucad:fix/tsconfig-exclude-discovery
Open

fix: Respect file exclusions when discovering tsconfig files#1552
rifont wants to merge 1 commit intotailwindlabs:mainfrom
taucad:fix/tsconfig-exclude-discovery

Conversation

@rifont
Copy link
Copy Markdown

@rifont rifont commented Mar 5, 2026

When tailwindCSS.files.exclude is configured, tsconfig discovery still parses excluded tsconfig.json and jsconfig.json files. In larger monorepos this can surface repeated EXTENDS_RESOLVE noise and add unnecessary project resolution work.

This change forwards tailwindCSS.files.exclude into the resolver and applies it while collecting configs and referenced projects. It also handles root-relative (repos/**), root-anchored (/repos/**), and absolute path patterns, with a regression test that covers all three.

Test plan

  • pnpm --filter @tailwindcss/language-server test run src/resolver/tsconfig.test.ts
  • pnpm --filter @tailwindcss/language-server build
  • pnpm --filter vscode-tailwindcss run _esbuild --minify
  • Verified in a local Cursor workspace that Tailwind initialization no longer scans repos/** (a large directory with 100+ git cloned repositories)

AI Disclosure

  • AI assistance used: yes
  • Model: gpt-5.3-codex-xhigh
  • Scope: implementation support, regression test authoring, and PR drafting
  • Human verification: manually reviewed diff and validated test/build commands and extension logs

Forward tailwindCSS.files.exclude patterns into tsconfig discovery so excluded folders do not produce parse noise or unnecessary work during project resolution.

Made-with: Cursor
@rifont rifont changed the title Respect file exclusions when discovering tsconfig files fix: Respect file exclusions when discovering tsconfig files Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant