Open
Description
IDE and version
IntelliJ 2025.1.2 (Ultimate Edition)
Extension version
1.7.2
Biome version
2.0.0
Operating system
- Windows
- macOS
- Linux
Description
When I try to reformat a file via the hotkey β₯β§β+L, the Biome formatter options are ignored. Instead, the options configured in Editor | Code Style | JavaScript
are used.
It seems the root cause is that the Biome language service is never active for the files that it should support: .vue, .js, etc.
Steps to reproduce
- Setup an IntelliJ project with
biome-web-module
andjava-module
as separate modules as per the reproduction repository - Install the Biome IntelliJ plugin if necessary
- In the Biome IntelliJ settings, enable Biome and "Enable LSP-based code formatting"
- Notice that the Biome language service does not run when
biome-web-module/src/script.js
is opened, so reformatting with Biome doesn't work - Remove the
java-module
module from the project - Re-open
biome-web-module/src/script.js
and you should see that the Biome language service is now running, so reformatting with Biome does work
Expected behavior
When an eligible file (JavaScript, TypeScript, etc.) in any module with a biome config file is opened, the Biome language service should run, thus enabling reformatting with Biome.
The number of modules in the project shouldn't make any difference to the behaviour.
Does this issue occur when using the CLI directly?
Not sure / Not applicable