Skip to content

Extension uses 100% of CPU when files.excludes contains a path starting with / #1303

Closed
@kupuma-ru21

Description

@kupuma-ru21

What version of VS Code are you using?
v1.99.0

For example: v1.78.2

What version of Tailwind CSS IntelliSense are you using?
v0.14.14

For example: v0.7.0

What version of Tailwind CSS are you using?
Not using

For example: v2.0.4

What package manager are you using?
pnpm

For example: npm, yarn

What operating system are you using?
macOS

For example: macOS, Windows

Tailwind config

No config

// Paste the contents of your Tailwind config file here

VS Code settings

{
  "// Typescript": "",
  "[typescriptreact]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": true
  },
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": true
  },
  "typescript.surveys.enabled": false,
  "typescript.updateImportsOnFileMove.enabled": "always",
  "typescript.tsserver.experimental.enableProjectDiagnostics": false,
  "typescript.tsserver.log": "off",
  "// Go": "",
  "[go]": {
    "editor.defaultFormatter": "golang.go",
    "editor.formatOnSave": true
  },
  "gopls": {
    "ui.diagnostic.staticcheck": true
  },
  "go.showWelcome": false,
  "go.toolsManagement.autoUpdate": true,
  "// Javascript": "",
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": true
  },
  "javascript.updateImportsOnFileMove.enabled": "always",
  "// Json": "",
  "[json]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": true
  },
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": true
  },
  "// Graphql": "",
  "[graphql]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": true
  },
  "// Markdown": "",
  "[markdown]": {
    "REF": "https://jsnotice.com/posts/2021-05-27/",
    "editor.formatOnSave": false
  },
  "// HTML": "",
  "// REF: html.autoClosingTags": "https://stackoverflow.com/questions/49391798/vs-code-turn-off-auto-close-tags-but-leave-on-autocomplete#:~:text=Go%20to%20File%20%3E%20Preferences%20%3E%20Settings,make%20it%20autocomplete%20for%20you",
  "html.autoClosingTags": true,
  "// Terminal": "",
  "terminal.integrated.tabs.enabled": false,
  "terminal.integrated.letterSpacing": -0.5,
  "terminal.integrated.env.osx": {
    "VSCODE_WORKSPACE": "${workspaceFolder}",
    "Q_NEW_SESSION": "1"
  },
  "terminal.integrated.env.linux": {
    "VSCODE_WORKSPACE": "${workspaceFolder}"
  },
  "terminal.integrated.defaultProfile.osx": "tmux",
  "terminal.integrated.suggest.enabled": true,
  "// Editor": "",
  "editor.guides.bracketPairs": true,
  "editor.codeActionsOnSave": {
    "source.addMissingImports": "explicit",
    "source.fixAll.eslint": "explicit"
  },
  "editor.tabSize": 2,
  "editor.glyphMargin": false,
  "editor.minimap.enabled": false,
  "editor.letterSpacing": -0.7,
  "editor.rename.enablePreview": false,
  "extensions.ignoreRecommendations": true,
  "editor.wordWrap": "on",
  "editor.renderControlCharacters": true,
  "editor.accessibilitySupport": "off",
  "editor.lineHeight": 14,
  "// Window": "",
  "window.zoomLevel": 1.5,
  "window.commandCenter": false,
  "window.title": " ",
  "// Files": "",
  "files.insertFinalNewline": true,
  "files.autoSave": "afterDelay",
  "files.autoSaveDelay": 1000,
  "files.trimTrailingWhitespace": true,
  "// Workbench": "",
  "workbench.iconTheme": "vscode-icons",
  "workbench.editor.enablePreview": false,
  "workbench.welcomePage.walkthroughs.openOnInstall": false,
  "workbench.startupEditor": "none",
  "workbench.colorCustomizations": {
    "editor.lineHighlightBackground": "#ffeb3b66"
  },
  "// Explorer": "",
  "explorer.confirmDelete": false,
  "explorer.compactFolders": false,
  "// Prettier": "",
  "prettier.bracketSpacing": false,
  "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "vsicons.dontShowNewVersionMessage": true,
  "gitlens.plusFeatures.enabled": false,
  "workbench.colorTheme": "Gruvbox Dark (Hard)",
  "files.exclude": {
    "frontend/node_modules": true,
    "/.cache": true,
    "/build": true,
    "backend/node_modules": true,
    ".git": true
  },
  "files.watcherExclude": {
    "frontend/node_modules": true,
    "/.cache": true,
    "/build": true,
    "backend/node_modules": true,
    ".git": true
  },
  "search.exclude": {
    "frontend/node_modules": true,
    "/.cache": true,
    "/build": true,
    "backend/node_modules": true,
    ".git": true
  },
  "workbench.activityBar.location": "hidden"
}

Reproduction URL

A public GitHub repo that includes a minimal reproduction of the bug. Please do not link to your actual project, what we need instead is a minimal reproduction in a fresh project without any unnecessary code. This means it doesn't matter if your real project is private/confidential, since we want a link to a separate, isolated reproduction anyways.

Describe your issue

When I open vscode with this extension, CPU becomes 100% all the time

Image

Describe the problem you're seeing, any important steps to reproduce and what behavior you expect instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions