From e5ed0635d9aa66c6c2f7eac3235e6a8eb2de0653 Mon Sep 17 00:00:00 2001 From: pseudometa <73286100+chrisgrieser@users.noreply.github.com> Date: Fri, 6 Oct 2023 18:45:14 +0200 Subject: fix(biome): do not use stdin due to biome bug (#120) --- lua/conform/formatters/biome.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lua') diff --git a/lua/conform/formatters/biome.lua b/lua/conform/formatters/biome.lua index f6d6ae8..3fb0c08 100644 --- a/lua/conform/formatters/biome.lua +++ b/lua/conform/formatters/biome.lua @@ -5,6 +5,10 @@ return { description = "A toolchain for web projects, aimed to provide functionalities to maintain them.", }, command = "biome", - stdin = true, - args = { "format", "--stdin-file-path", "$FILENAME" }, + + -- pending this bug, do not use stdin: https://github.com/biomejs/biome/issues/455 + stdin = false, + args = { "format", "--write", "$FILENAME" }, + -- stdin = true, + -- args = { "format", "--stdin-file-path", "$FILENAME" }, } -- cgit v1.2.3-70-g09d2