summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoload/ale/fixers/biome.vim2
-rw-r--r--test/fixers/test_biome_fixer_callback.vader15
2 files changed, 16 insertions, 1 deletions
diff --git a/autoload/ale/fixers/biome.vim b/autoload/ale/fixers/biome.vim
index 903d7f39..0f210657 100644
--- a/autoload/ale/fixers/biome.vim
+++ b/autoload/ale/fixers/biome.vim
@@ -3,7 +3,7 @@ function! ale#fixers#biome#Fix(buffer) abort
let l:options = ale#Var(a:buffer, 'biome_options')
return {
- \ 'command': '%e format'
+ \ 'command': ale#Escape(l:executable) . ' format'
\ . (!empty(l:options) ? ' ' . l:options : '')
\ . ' --stdin-file-path=%s',
\}
diff --git a/test/fixers/test_biome_fixer_callback.vader b/test/fixers/test_biome_fixer_callback.vader
new file mode 100644
index 00000000..632a7ec4
--- /dev/null
+++ b/test/fixers/test_biome_fixer_callback.vader
@@ -0,0 +1,15 @@
+Before:
+ call ale#assert#SetUpFixerTest('typescript', 'biome')
+
+After:
+ call ale#assert#TearDownFixerTest()
+
+Execute(The default biome command should be correct):
+ call ale#test#SetFilename('../test-files/typescript/test.ts')
+
+ AssertFixer
+ \ {
+ \ 'command': ale#Escape('biome')
+ \ . ' format --stdin-file-path=%s'
+ \ }
+