0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-15 01:57:09 -05:00
This commit is contained in:
Bartek Iwańczuk 2024-12-02 15:39:22 +01:00
parent a3960a5bb4
commit 9b820ee41a
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750
4 changed files with 8 additions and 8 deletions

4
Cargo.lock generated
View file

@ -4682,9 +4682,9 @@ dependencies = [
[[package]]
name = "markup_fmt"
version = "0.17.0"
version = "0.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "970199616be5c40792e77371123b4618e9b7eceb589a11c2b3323f692f3fb586"
checksum = "fa7605bb4ad755a9ab5c96f2ce3bfd4eb8acd559b842c041fc8a5f84d63aed3a"
dependencies = [
"aho-corasick",
"css_dataset",

View file

@ -130,7 +130,7 @@ libz-sys.workspace = true
log = { workspace = true, features = ["serde"] }
lsp-types.workspace = true
malva = "=0.11.0"
markup_fmt = "=0.17.0"
markup_fmt = "=0.18.0"
memmem.workspace = true
monch.workspace = true
notify.workspace = true

View file

@ -443,8 +443,7 @@ pub fn format_html(
let mut typescript_config_builder =
get_typescript_config_builder(fmt_options);
eprintln!("indent level {}", hints.indent_level);
typescript_config_builder
.file_indent_level(hints.indent_level.try_into().unwrap_or(0));
typescript_config_builder.file_indent_level(hints.indent_level);
let mut typescript_config = typescript_config_builder.build();
typescript_config.line_width = hints.print_width as u32;
dprint_plugin_typescript::format_text(
@ -1083,6 +1082,7 @@ fn get_resolved_markup_fmt_config(
};
let language_options = LanguageOptions {
script_formatter: Some(markup_fmt::config::ScriptFormatter::Dprint),
quotes: Quotes::Double,
format_comments: false,
script_indent: true,

View file

@ -1,6 +1,6 @@
<!-- tt.html -->
<script>
"{"; // This line cause panic
`
"{"; // This line cause panic
`
`;
</script>
</script>