Skip to content

Update default file exclusions #1336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion packages/tailwindcss-language-service/src/util/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion packages/vscode-tailwindcss/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down