Closed ZeroPie closed 1 month ago
Yikes, I thought that was fixed. This is an issue that belongs to core. Suppose you're doing formatting via stdin?
hi emat,
i hope i am hehe, this is how my config looks like:
"languages": {
"TypeScript": {
"language_servers": ["biome", "!typescript-language-server", "!eslint"]
}
},
"formatter": {
"external": {
"command": "/Users/zp/.bun/bin/biome",
"arguments": [
"format",
"--write",
"--stdin-file-path",
"{buffer_path}"
]
}
},
Just assumed is the plugin since
biome format +page.svelte
didn't do that.
but could Zed be doing something additional to cause this?
I believe Zed is at fault here. Other clients work correctly (VScode, IntelliJ), and our tests seems to return the correct output: https://github.com/biomejs/biome/blob/main/crates/biome_cli/tests/snapshots/main_cases_handle_svelte_files/format_stdin_write_successfully.snap?plain=1
Seems the HTML get's purged. https://github.com/biomejs/biome-zed/assets/8741666/54bd4c63-97ab-46ab-9ee5-349e733a3e04