Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: regression of latest refactor #2594

Merged
merged 2 commits into from
Apr 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion crates/biome_formatter_test/src/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ use biome_fs::BiomePath;
use biome_parser::AnyParse;
use biome_rowan::{TextRange, TextSize};
use biome_service::settings::{ServiceLanguage, Settings};
use biome_service::workspace::{DocumentFileSource, FeaturesBuilder, SupportsFeatureParams};
use biome_service::workspace::{
DocumentFileSource, FeaturesBuilder, RegisterProjectFolderParams, SupportsFeatureParams,
};
use biome_service::App;
use std::ops::Range;
use std::path::{Path, PathBuf};
Expand Down Expand Up @@ -40,6 +42,12 @@ impl<'a> SpecTestFile<'a> {
spec_input_file.display()
);

app.workspace
.register_project_folder(RegisterProjectFolderParams {
set_as_current_workspace: true,
path: None,
})
.unwrap();
let mut input_file = BiomePath::new(file_path);
let can_format = app
.workspace
Expand Down
Loading