biomejs / biome-vscode

Biome extension for Visual Studio Code and VSCodium
https://marketplace.visualstudio.com/items?itemName=biomejs.biome
Apache License 2.0
237 stars 32 forks source link

Files are randomly and temporarily ignored #341

Closed emilte closed 2 months ago

emilte commented 2 months ago

VS Code version

1.93.0

Extension version

2.3.0

Biome version

1.8.3

Operating system

Description

I'm setting up biome in vscode (note, this is still fresh for me) but the exact same file sometimes apply formatting, and other times is ignored. This alternates even though no config has been changed.

Example of problematic file: frontend/src/main.tsx

Don't waste too much energy on this ticket, it might just be on my computer. Just wanted to start a thread in case someone else is experiencing the same. I'll continue trying, and update the issue if needed

"include": [
      "*.js",
      "*.jsx",
      "*.ts",
      "*.tsx",
      "*.json",
      "*.jsonc"
    ],
"ignore": [
      "Project/templates/",
      "Project/schemas/",
      "Project/static/",
      "docs/",
      "venv/",
      "static/",
      "frontend/reports/",
      "frontend/src/types/api-types.d.ts",
      "node_modules/",
      "frontend/src/app/permissions/permissions.ts",
      "frontend/src/routes/backend.ts",
      "htmlcov/",
      "frontend/src/i18n/translations.ts",
      "frontend/src/i18n/keys.ts"
    ]

Steps to reproduce

Don't know how to reproduce.

Expected behavior

Consistent selection of files included/ignored.

Does this issue occur when using the CLI directly?

Not sure / Not applicable

Link to a minimal reproduction

No response

Logs

[Warn  - 14:56:53] The file frontend/src/main.tsx was ignored.
nhedger commented 2 months ago

Thanks for opening. Any chance you could provide a reproduction repository ? I may be able to take a look.

emilte commented 2 months ago

Impressively fast response, thanks :) There are many variables involved still. I have restarted vscode amongst some other things. I'll let you know if I experience the same thing again, you may ignore this issue for now. I can make a repo if the issue persists.

nhedger commented 2 months ago

Alright, then I'll close the issue for the sake of organization. Feel free to reopen if you have more details!