You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CLI:
Version: 1.6.1
Color support: true
Platform:
CPU Architecture: x86_64
OS: windows
Environment:
BIOME_LOG_DIR: unset
NO_COLOR: unset
TERM: "cygwin"
JS_RUNTIME_VERSION: unset
JS_RUNTIME_NAME: unset
NODE_PACKAGE_MANAGER: unset
Biome Configuration:
Status: unset
Workspace:
Open Documents: 0
What happened?
Set environment variable BIOME_CONFIG_PATH to a custom default configuration file (e.g. C:\MyFiles\biome.default.json).
Start VSCode (with the Biome VSCode extension installed and Biome configured as the default formatter for TypeScript).
Open a TypeScript project (with or without a local biome.json) and try to format a TypeScript file.
Formatting fails and an error message pops up, stating that Extension 'Biome' is configured as formatter but it cannot format 'TypeScript'-files
Expected result
Biome should format the code. If the project has a biome.json, it should use the configuration from there. If the project does not have a Biome configuration, it should use the file specified in the BIOME_CONFIG_PATH.
The environment variable was a good way to define a default configuration that's applied when a VSCode project does not have a local Biome configuration. It has stopped working some time ago. Setting BIOME_CONFIG_PATH now prevents the VSCode extension from working at all (even if the project has a local biome.json).
Code of Conduct
I agree to follow Biome's Code of Conduct
The text was updated successfully, but these errors were encountered:
david-04
changed the title
Settinig BIOME_CONFIG_PATH breaks VSCode extension
Setting BIOME_CONFIG_PATH breaks VSCode extension
Mar 29, 2024
Thanks for the clarification, Nicolas. It does work as expected when BIOME_CONFIG_PATH points to the directory rather than the file. I'm closing this issue.
Environment information
What happened?
C:\MyFiles\biome.default.json
).biome.json
) and try to format a TypeScript file.Extension 'Biome' is configured as formatter but it cannot format 'TypeScript'-files
Expected result
Biome should format the code. If the project has a
biome.json
, it should use the configuration from there. If the project does not have a Biome configuration, it should use the file specified in theBIOME_CONFIG_PATH
.The environment variable was a good way to define a default configuration that's applied when a VSCode project does not have a local Biome configuration. It has stopped working some time ago. Setting
BIOME_CONFIG_PATH
now prevents the VSCode extension from working at all (even if the project has a localbiome.json
).Code of Conduct
The text was updated successfully, but these errors were encountered: