Skip to content

Commit 7a30871

Browse files
dyc3l0ngvh
authored andcommitted
feat(cli): show html full support configuration in biome rage output (biomejs#8296)
1 parent 1854001 commit 7a30871

File tree

7 files changed

+11
-0
lines changed

7 files changed

+11
-0
lines changed

.changeset/fair-planets-kneel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
5+
`biome rage` now shows if you have experimental HTML full support enabled.

crates/biome_cli/src/commands/rage.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ impl Display for RageConfiguration<'_> {
255255
{KeyValuePair("Linter enabled", markup!({DebugDisplay(settings.is_linter_enabled())}))}
256256
{KeyValuePair("Assist enabled", markup!({DebugDisplay(settings.is_assist_enabled())}))}
257257
{KeyValuePair("VCS enabled", markup!({DebugDisplay(vcs_enabled)}))}
258+
{KeyValuePair("HTML full support enabled", markup!({DisplayOption(configuration.html.as_ref().and_then(|html| html.experimental_full_support_enabled))}))}
258259
).fmt(fmt)?;
259260

260261
// Print formatter configuration if --formatter option is true

crates/biome_cli/tests/snapshots/main_commands_rage/with_configuration.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Biome Configuration:
4141
Linter enabled: true
4242
Assist enabled: true
4343
VCS enabled: false
44+
HTML full support enabled: unset
4445
4546
Server:
4647
Version: 0.0.0

crates/biome_cli/tests/snapshots/main_commands_rage/with_formatter_configuration.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Biome Configuration:
7878
Linter enabled: true
7979
Assist enabled: true
8080
VCS enabled: false
81+
HTML full support enabled: unset
8182
8283
Formatter:
8384
Format with errors: true

crates/biome_cli/tests/snapshots/main_commands_rage/with_jsonc_configuration.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Biome Configuration:
4242
Linter enabled: true
4343
Assist enabled: true
4444
VCS enabled: false
45+
HTML full support enabled: unset
4546
4647
Server:
4748
Version: 0.0.0

crates/biome_cli/tests/snapshots/main_commands_rage/with_linter_configuration.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ Biome Configuration:
5959
Linter enabled: true
6060
Assist enabled: true
6161
VCS enabled: false
62+
HTML full support enabled: unset
6263
6364
Linter:
6465
JavaScript enabled: unset

crates/biome_cli/tests/snapshots/main_commands_rage/with_malformed_configuration.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Biome Configuration:
4242
Linter enabled: true
4343
Assist enabled: true
4444
VCS enabled: false
45+
HTML full support enabled: unset
4546
4647
Server:
4748
Version: 0.0.0

0 commit comments

Comments
 (0)