biomejs/biome-vscode

๐Ÿ› Could not resolve Biome in the dependencies of workspace folder

Closed this issue ยท 2 comments

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

  1. Open VS Code
  2. Install the extension biomejs.biome
  3. Reload VS Code
  4. 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

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.

i got it ๐Ÿ‘
Thank you for your rapid response!