diff --git a/packages/tailwindcss-language-service/src/util/state.ts b/packages/tailwindcss-language-service/src/util/state.ts index 26cc2ed0..a08cbdce 100644 --- a/packages/tailwindcss-language-service/src/util/state.ts +++ b/packages/tailwindcss-language-service/src/util/state.ts @@ -208,7 +208,39 @@ export function getDefaultTailwindSettings(): Settings { }, showPixelEquivalents: true, includeLanguages: {}, - files: { exclude: ['**/.git/**', '**/node_modules/**', '**/.hg/**', '**/.svn/**'] }, + files: { + exclude: [ + // These paths need to be universally ignorable. This means that we + // should only consider hidden folders with a commonly understood + // meaning unless there is a very good reason to do otherwise. + // + // This means that things like `build`, `target`, `cache`, etc… are + // not appropriate to include even though _in many cases_ they might + // be ignorable. The names are too general and ignoring them could + // cause us to ignore actual project files. + + // Version Control + '**/.git/**', + '**/.hg/**', + '**/.svn/**', + + // NPM + '**/node_modules/**', + + // Yarn v2+ metadata & caches + '**/.yarn/**', + + // Python Virtual Environments + '**/.venv/**', + '**/venv/**', + + // Build caches + '**/.next/**', + '**/.turbo/**', + '**/.parcel-cache/**', + '**/__pycache__/**', + ], + }, experimental: { classRegex: [], configFile: null, diff --git a/packages/vscode-tailwindcss/CHANGELOG.md b/packages/vscode-tailwindcss/CHANGELOG.md index 122181c8..1e1196ec 100644 --- a/packages/vscode-tailwindcss/CHANGELOG.md +++ b/packages/vscode-tailwindcss/CHANGELOG.md @@ -2,7 +2,9 @@ ## Prerelease -- Nothing yet! +- Ignore Python virtual env directories by default ([#1336](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1336)) +- Ignore Yarn v2+ metadata & cache directories by default ([#1336](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1336)) +- Ignore some build caches by default ([#1336](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1336)) # 0.14.16