diff --git a/.changeset/clean-coins-hide.md b/.changeset/clean-coins-hide.md new file mode 100644 index 000000000000..5f6f73282756 --- /dev/null +++ b/.changeset/clean-coins-hide.md @@ -0,0 +1,8 @@ +--- +"@biomejs/biome": patch +"@biomejs/wasm-bundler": patch +"@biomejs/wasm-nodejs": patch +"@biomejs/wasm-web": patch +--- + +Fixed an issue where the function `scanProject` wouldn't work as expected. diff --git a/crates/biome_service/src/scanner.rs b/crates/biome_service/src/scanner.rs index dafb455a4582..f0b0f14a2a4c 100644 --- a/crates/biome_service/src/scanner.rs +++ b/crates/biome_service/src/scanner.rs @@ -404,7 +404,10 @@ impl Scanner { .. } = self.scan_folder(folder, &ctx); + // Close the diagnostics channel before collecting to avoid a deadlock on WASM. + drop(ctx); let diagnostics = collector.run(diagnostics_receiver); + (duration, diagnostics, configuration_files) };