๐ Could not resolve Biome in the dependencies of workspace folder
Closed this issue ยท 2 comments
y-okamoto-1113 commented
VS Code version
1.90.2
Extension version
2.3.0
Biome version
1.8.2
Operating system
- Windows
- macOS
- Linux
Description
Hi, i love Biome ๐
Thank you for developing ๐ซถ
when i open vscode, Biome extension logs below.
Could not resolve Biome in the dependencies of workspace folder: /Users/xxx/Public/poc/bun-hono-nextjs
Searching for Biome in PATH
But, when i run bunx biome format
, this works very well.
Users/xxx/Public/poc/bun-hono-nextjs
is the project root.
i put biome.jsonc
on Users/xxx/Public/poc/bun-hono-nextjs/backend/biome.jsonc
.
this is my settings.json
{
"extensions.ignoreRecommendations": false,
"prettier.requireConfig": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports.biome": "always",
"quickfix.biome": "always",
"source.fixAll": "always"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[javascriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"eslint.validate": ["javascript", "typescript"],
"typescript.tsdk": "node_modules/typescript/lib"
}
Steps to reproduce
- Open VS Code
- Install the extension
biomejs.biome
- Reload VS Code
- CHeck
Output
tab, and it shows below.
Could not resolve Biome in the dependencies of workspace folder: /Users/okamotoyuki/Public/poc/bun-hono-nextjs
Searching for Biome in PATH
Expected behavior
when i save files, formatter is executed.
Does this issue occur when using the CLI directly?
No
Logs
Could not resolve Biome in the dependencies of workspace folder: /Users/xxx/Public/poc/bun-hono-nextjs
Searching for Biome in PATH
ematipico commented
We advise you to have Biome configuration at the root of your project, and use include
only to handle specific folders.
At the moment the extension doesn't support workspace directories of VSCode.
We have an issue to track support for workspace folders in the extension.
y-okamoto-1113 commented
i got it ๐
Thank you for your rapid response!