-
-
Notifications
You must be signed in to change notification settings - Fork 382
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
refactor(project): new crate biome_configuration #2269
Conversation
✅ Deploy Preview for biomejs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
CodSpeed Performance ReportMerging #2269 will improve performances by 6.05%Falling back to comparing Summary
Benchmarks breakdown
|
@@ -111,58 +107,6 @@ impl FromStr for FormatterConfiguration { | |||
} | |||
} | |||
|
|||
pub fn to_format_settings( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These conversion logics (to_*_settings
) are moved in crates/biome_service/src/settings.rs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code that depends on the implementation within the biome_service
crate has not been moved out of this crate
} | ||
|
||
impl FusedIterator for ConfigurationDiagnosticsIter<'_> {} | ||
pub trait PartialConfigurationExt { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This new trait to implement logic that depends on the biome_serivce
's implementation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to merge it once the conflicts are fixed
Co-authored-by: shoaibkh4n <shoaibkh4n@users.noreply.github.com> Co-authored-by: ematipico <my.burning@gmail.com>
8b8b4d5
to
c46270e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ematipico @Conaclos (I saw you recently updated it)
I'm unsure about how these snapshot files /biome_configuration/src/snapshots/*.snap
(previously at biome_service/src/configuration/snapshots/*.snap
) are executed, because I couldn't find the original snapshot files (here it should be some json files). please let me know if you know anything about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just updated this snapshot by running just test
. I have no more info...
Summary
This PR moves
biome_service
's config-related code tobiome_configuration
.But some code that depends
biomie_service
(e.g.WorkspaceError
) is still there.Closes #1738 #1742
Test Plan
All tests should pass.