@@ -440,14 +440,13 @@ fn debug_formatter_ir(
440
440
. map ( |settings| CssParserOptions {
441
441
css_modules : settings. css_modules . unwrap_or_default ( ) ,
442
442
allow_wrong_line_comments : settings. allow_wrong_line_comments . unwrap_or_default ( ) ,
443
- grit_metavariable : true ,
443
+ grit_metavariables : true ,
444
444
} )
445
445
. unwrap_or_default ( ) ;
446
446
let css_format_options = settings. format_options :: < CssLanguage > ( path, document_file_source) ;
447
447
let format_with_errors = settings
448
448
. settings ( )
449
- . map ( |settings| settings. formatter . format_with_errors )
450
- . unwrap_or_default ( ) ;
449
+ . is_some_and ( |settings| settings. formatter . format_with_errors ) ;
451
450
let multi_language_formatter = MultiLanguageFormatter {
452
451
css_parse_options,
453
452
css_format_options,
@@ -764,23 +763,25 @@ pub(crate) fn fix_all(params: FixAllParams) -> Result<FixFileResult, WorkspaceEr
764
763
}
765
764
}
766
765
None => {
767
- let css_parse_options = workspace
766
+ let css_parse_options = params
767
+ . workspace
768
768
. settings ( )
769
769
. map ( |settings| settings. languages . css . parser . clone ( ) )
770
770
. map ( |settings| CssParserOptions {
771
771
css_modules : settings. css_modules . unwrap_or_default ( ) ,
772
772
allow_wrong_line_comments : settings
773
773
. allow_wrong_line_comments
774
774
. unwrap_or_default ( ) ,
775
- grit_metavariable : true ,
775
+ grit_metavariables : true ,
776
776
} )
777
777
. unwrap_or_default ( ) ;
778
- let css_format_options =
779
- workspace. format_options :: < CssLanguage > ( biome_path, & document_file_source) ;
780
- let format_with_errors = workspace
778
+ let css_format_options = params
779
+ . workspace
780
+ . format_options :: < CssLanguage > ( params. biome_path , & params. document_file_source ) ;
781
+ let format_with_errors = params
782
+ . workspace
781
783
. settings ( )
782
- . map ( |settings| settings. formatter . format_with_errors )
783
- . unwrap_or_default ( ) ;
784
+ . is_some_and ( |settings| settings. formatter . format_with_errors ) ;
784
785
let multi_language_formatter = MultiLanguageFormatter {
785
786
css_parse_options,
786
787
css_format_options,
@@ -830,15 +831,14 @@ pub(crate) fn format(
830
831
. map ( |settings| CssParserOptions {
831
832
css_modules : settings. css_modules . unwrap_or_default ( ) ,
832
833
allow_wrong_line_comments : settings. allow_wrong_line_comments . unwrap_or_default ( ) ,
833
- grit_metavariable : true ,
834
+ grit_metavariables : true ,
834
835
} )
835
836
. unwrap_or_default ( ) ;
836
837
let css_format_options =
837
838
settings. format_options :: < CssLanguage > ( biome_path, document_file_source) ;
838
839
let format_with_errors = settings
839
840
. settings ( )
840
- . map ( |settings| settings. formatter . format_with_errors )
841
- . unwrap_or_default ( ) ;
841
+ . is_some_and ( |settings| settings. formatter . format_with_errors ) ;
842
842
let multi_language_formatter = MultiLanguageFormatter {
843
843
css_parse_options,
844
844
css_format_options,
@@ -871,15 +871,14 @@ pub(crate) fn format_range(
871
871
. map ( |settings| CssParserOptions {
872
872
css_modules : settings. css_modules . unwrap_or_default ( ) ,
873
873
allow_wrong_line_comments : settings. allow_wrong_line_comments . unwrap_or_default ( ) ,
874
- grit_metavariable : true ,
874
+ grit_metavariables : true ,
875
875
} )
876
876
. unwrap_or_default ( ) ;
877
877
let css_format_options =
878
878
settings. format_options :: < CssLanguage > ( biome_path, document_file_source) ;
879
879
let format_with_errors = settings
880
880
. settings ( )
881
- . map ( |settings| settings. formatter . format_with_errors )
882
- . unwrap_or_default ( ) ;
881
+ . is_some_and ( |settings| settings. formatter . format_with_errors ) ;
883
882
let multi_language_formatter = MultiLanguageFormatter {
884
883
css_parse_options,
885
884
css_format_options,
@@ -930,14 +929,13 @@ pub(crate) fn format_on_type(
930
929
. map ( |settings| CssParserOptions {
931
930
css_modules : settings. css_modules . unwrap_or_default ( ) ,
932
931
allow_wrong_line_comments : settings. allow_wrong_line_comments . unwrap_or_default ( ) ,
933
- grit_metavariable : true ,
932
+ grit_metavariables : true ,
934
933
} )
935
934
. unwrap_or_default ( ) ;
936
935
let css_format_options = settings. format_options :: < CssLanguage > ( path, document_file_source) ;
937
936
let format_with_errors = settings
938
937
. settings ( )
939
- . map ( |settings| settings. formatter . format_with_errors )
940
- . unwrap_or_default ( ) ;
938
+ . is_some_and ( |settings| settings. formatter . format_with_errors ) ;
941
939
let multi_language_formatter = MultiLanguageFormatter {
942
940
css_parse_options,
943
941
css_format_options,
0 commit comments