🐛 formatter.ignore
matched against absolute paths
#4868
Labels
A-Core
Area: core
A-LSP
Area: language server protocol
S-Bug-confirmed
Status: report has been confirmed as a valid bug
VS Code version
1.96.2
Extension version
2.3.0
Biome version
1.9.4
Operating system
Description
When trying out biome and the biome VSCode extension on a project, I was not able to get the extension to format js/jsx/ts/tsx files. Running
Format Document
did nothing and no feedback was apparent.The extension and daemon logs showed an error but with no message (see attached logs).
Running biome through the CLI worked as expected.
I pinpointed the issue to one of the entries in
formatter.ignore
matching one of the parent directories of my project (removing such entry or renaming the parent directory fixed the issue). It looks likeformatter.ignore
is getting matched against the files' absolute path instead of their path relative to the project root which does not feel like the correct behavior. Better error logs would also have helped.NB: I encountered no issue formatting JSON files
Steps to reproduce
yarn
Format Document
onsrc/index.js
Expected behavior
src/index.js
should get formatted, it does not.Does this issue occur when using the CLI directly?
No
Link to a minimal reproduction
https://github.com/ahumeau/biome-vscode-formatter-ignore-matched-against-absolute-paths
Logs
The text was updated successfully, but these errors were encountered: