biomejs/biome-vscode

๐Ÿ› Biome doesn't ignore files if they have parse errors

Closed this issue ยท 3 comments

VS Code version

1.90.1

Extension version

2.3.0

Biome version

1.8.1

Operating system

  • Windows
  • macOS
  • Linux

Description

Parse errors in files.ignore are ignored in CLI but not in extension.

Rage:

CLI:
  Version:                      1.8.1
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           macos

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v20.12.2"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "pnpm/8.15.8"

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 true

Workspace:
  Open Documents:               0

Minimal reproducible example:

In my very use case, I'm working with .svx files (Svelte MDX) in VSCode, and I want to suppress errors indicating that I can't use svelte:head (as the image below, i have *.svx files associated with svelte in vscode).

image image

So I added *.svx files in the files.ignored, expecting errors to be suppressed, but nothing changes, errors still showing up.

In the CLI, files are correctly ignored.

Btw, thanks all for the great work you all are doing!

Steps to reproduce

  1. Add a file to biome files.ignore
  2. Create a parse error in that file (in minimal reproducible, i used ts syntax in js file)

Expected behavior

Ignored files shouldn't be checked by Biome LSP

Does this issue occur when using the CLI directly?

No

Logs

No response

That's intended, because Biome wants to be a language server, so it provides parsing diagnostics, like typescript language server

ops, in fact if I enable checkJS on the repo and ignore the file from the tsconfig, I still end up with a TS Error on the JS file with the types, sorry I hadn't even taken this into consideration.

Thank you! :)

Is there any way to configure the extension to ignore specific files (i.e. don't even parse)?