Skip to content

🐛 Cannot format unsaved files #818

@diminutivesloop

Description

@diminutivesloop

VS Code version

1.105.1

Extension version

3.2.0

Biome version

2.2.6

Operating system

  • Windows
  • macOS
  • Linux

Description

Unsaved files are not formatted even with Biome installed globally and even though Biome shows up as an available formatter. This is a regression on #460.

Steps to reproduce

  1. Open VSCode
  2. Create a new 'Untitled' tab
  3. Add some JSON content. For example:
{
"hello": "word",
"foo": 1, "bar": 2
}
  1. In the command palette, go to "Format document with..." and select Biome.

Expected behavior

Formatting should work for unsaved files

Does this issue occur when using the CLI directly?

Not sure / Not applicable

Link to a minimal reproduction

N/A (no files needed, see steps above)

Logs


Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions