diff --git a/crates/tinymist-query/src/docs/tidy.rs b/crates/tinymist-query/src/docs/tidy.rs index d95b073c2..9b89c55b1 100644 --- a/crates/tinymist-query/src/docs/tidy.rs +++ b/crates/tinymist-query/src/docs/tidy.rs @@ -216,7 +216,7 @@ See @@show-module() for outputting the results of this function. in all function and parameter descriptions. - preamble (string): Code to prepend to all code snippets shown with `#example()`. This can for instance be used to import something from the scope. --> string"###), @r###" +-> string"###), @r" >> docs: These again are dictionaries with the keys - `description` (optional): The description for the argument. @@ -250,7 +250,7 @@ See @@show-module() for outputting the results of this function. Code to prepend to all code snippets shown with `#example()`. This can for instance be used to import something from the scope. << arg - "###); + "); } #[test] @@ -265,7 +265,7 @@ See @@show-module() for outputting the results of this function. references. If `auto`, the label-prefix name will be the module name. - nested something - nested something 2 --> string"###), @r###" +-> string"###), @r" >> docs: These again are dictionaries with the keys - `description` (optional): The description for the argument. @@ -284,27 +284,27 @@ See @@show-module() for outputting the results of this function. - nested something - nested something 2 << arg - "###); + "); } #[test] fn test_identify_tidy_docs3() { insta::assert_snapshot!(var(r###"See @@show-module() for outputting the results of this function. --> string"###), @r###" +-> string"###), @r" >> docs: See @@show-module() for outputting the results of this function. << docs >>return string <name (string): The name for the module. --> string"###), @r###" +-> string"###), @r" >> docs: - name (string): The name for the module. @@ -312,6 +312,6 @@ See @@show-module() for outputting the results of this function. >>return string < (260..261) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/bug_cite_function_infer.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@bug_cite_function_infer2.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@bug_cite_function_infer2.typ.snap index d0e992ab6..c6cbc8508 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@bug_cite_function_infer2.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@bug_cite_function_infer2.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on > (275..276) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/bug_cite_function_infer2.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@bug_mix_context_type.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@bug_mix_context_type.typ.snap index 64643faea..625fc61e7 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@bug_mix_context_type.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@bug_mix_context_type.typ.snap @@ -1,8 +1,9 @@ --- source: crates/tinymist-query/src/completion.rs -description: Completion on (107..108) +description: Completion on (108..109) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/bug_mix_context_type.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@cite_heading.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@cite_heading.typ.snap index 627a56346..5b1e71883 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@cite_heading.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@cite_heading.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on t (135..136) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/cite_heading.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@colon_markup.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@colon_markup.typ.snap index 5f5d6ae6f..d8c553f25 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@colon_markup.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@colon_markup.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on (23..24) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/colon_markup.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@colon_markup2.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@colon_markup2.typ.snap index 5a6d0f5ba..764839341 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@colon_markup2.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@colon_markup2.typ.snap @@ -1,8 +1,9 @@ --- source: crates/tinymist-query/src/completion.rs -description: Completion on (46..47) +description: Completion on (48..49) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/colon_markup2.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@colon_math.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@colon_math.typ.snap index 81af18bf9..14d9e6827 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@colon_math.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@colon_math.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on (23..24) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/colon_math.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@colon_math2.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@colon_math2.typ.snap index de7260c47..866417662 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@colon_math2.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@colon_math2.typ.snap @@ -1,8 +1,9 @@ --- source: crates/tinymist-query/src/completion.rs -description: Completion on (46..47) +description: Completion on (48..49) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/colon_math2.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@colon_param.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@colon_param.typ.snap index 286d974a8..14ecad170 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@colon_param.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@colon_param.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on (65..66) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/colon_param.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@complete_purely_label.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@complete_purely_label.typ.snap index f3e807a24..84990a052 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@complete_purely_label.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@complete_purely_label.typ.snap @@ -1,8 +1,9 @@ --- source: crates/tinymist-query/src/completion.rs -description: Completion on t (100..101) +description: Completion on t (103..104) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/complete_purely_label.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@complete_purely_ref.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@complete_purely_ref.typ.snap index 227e85398..ccd6b16c3 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@complete_purely_ref.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@complete_purely_ref.typ.snap @@ -1,8 +1,9 @@ --- source: crates/tinymist-query/src/completion.rs -description: Completion on t (99..100) +description: Completion on t (102..103) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/complete_purely_ref.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@completion_title.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@completion_title.typ.snap index 1578382da..c526b0a77 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@completion_title.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@completion_title.typ.snap @@ -1,8 +1,9 @@ --- source: crates/tinymist-query/src/completion.rs -description: Completion on @R (132..134) +description: Completion on @R (135..137) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/completion_title.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@completion_title2.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@completion_title2.typ.snap index dd53e0849..9f3db7b36 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@completion_title2.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@completion_title2.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on 9 (109..110) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/completion_title2.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@completion_title3.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@completion_title3.typ.snap index 65268f70c..35e06b507 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@completion_title3.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@completion_title3.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on ) (139..140) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/completion_title3.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@element_where.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@element_where.typ.snap index f0f49cba5..0fc94611d 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@element_where.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@element_where.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (37..38) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/element_where.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@fp_dict_filter.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@fp_dict_filter.typ.snap index 7fde4575c..2d22e09d5 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@fp_dict_filter.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@fp_dict_filter.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on (93..94) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/fp_dict_filter.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@func_args.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@func_args.typ.snap index 4b8cb2713..e782f2528 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@func_args.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@func_args.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (349..350) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/func_args.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@func_args2.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@func_args2.typ.snap index bc0d4774a..f6f939761 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@func_args2.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@func_args2.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (361..362) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/func_args2.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@func_args_after.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@func_args_after.typ.snap index d92e842b0..908fee4ae 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@func_args_after.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@func_args_after.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on u (372..373) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/func_args_after.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@func_builtin_args.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@func_builtin_args.typ.snap index d6f383b26..0eb5033cf 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@func_builtin_args.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@func_builtin_args.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (30..31) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/func_builtin_args.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@func_params.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@func_params.typ.snap index 6e52c0bb3..454de95a0 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@func_params.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@func_params.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on c( (63..65) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/func_params.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@func_with_args.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@func_with_args.typ.snap index b0fba9844..c2e08dadb 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@func_with_args.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@func_with_args.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (354..355) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/func_with_args.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@half_completion.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@half_completion.typ.snap index d62ff97f9..510b36085 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@half_completion.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@half_completion.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on o (31..33) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/half_completion.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@import.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@import.typ.snap index c20c68aad..4a2081c0a 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@import.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@import.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on c( (84..86) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/import.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@import_self.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@import_self.typ.snap index 97a93b2ba..025868f2a 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@import_self.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@import_self.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on c( (74..76) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/import_self.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@import_self2.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@import_self2.typ.snap index c00867dea..3569cd46c 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@import_self2.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@import_self2.typ.snap @@ -1,8 +1,9 @@ --- source: crates/tinymist-query/src/completion.rs -description: Completion on c( (76..78) +description: Completion on c( (77..79) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/import_self2.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@import_self3.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@import_self3.typ.snap index 0cdaf6e6e..222ea81f8 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@import_self3.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@import_self3.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on c( (85..87) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/import_self3.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@import_self4.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@import_self4.typ.snap index afee1ad30..2377b6995 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@import_self4.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@import_self4.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on c( (88..90) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/import_self4.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@import_star.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@import_star.typ.snap index daaaa48a8..2d9574eef 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@import_star.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@import_star.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on c( (77..79) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/import_star.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@item_shadow.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@item_shadow.typ.snap index feed5ac96..5ae813341 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@item_shadow.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@item_shadow.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on c( (70..72) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/item_shadow.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@keyword_ident.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@keyword_ident.typ.snap index 0eaa2c3b3..1b94364e4 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@keyword_ident.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@keyword_ident.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on n (32..33) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/keyword_ident.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@let-context.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@let-context.typ.snap index 33c5d3724..3673fa5ab 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@let-context.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@let-context.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on (61..62) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/let-context.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@let.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@let.typ.snap index af7400056..6fdbd388b 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@let.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@let.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on c( (95..97) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/let.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@math_bold.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@math_bold.typ.snap index cddeb6d20..dd60d28cb 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@math_bold.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@math_bold.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (33..34) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/math_bold.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@math_bold2.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@math_bold2.typ.snap index 10d8eee4a..57aa2dbe8 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@math_bold2.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@math_bold2.typ.snap @@ -1,8 +1,9 @@ --- source: crates/tinymist-query/src/completion.rs -description: Completion on / (22..23) +description: Completion on / (30..31) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/math_bold2.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@modify_string.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@modify_string.typ.snap index b813f3041..69854280c 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@modify_string.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@modify_string.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: "Completion on \"\" (53..55)" expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/modify_string.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@modify_string_2.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@modify_string_2.typ.snap index db28d1278..04286f064 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@modify_string_2.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@modify_string_2.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: "Completion on \"\" (54..56)" expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/modify_string_2.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@paren_string.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@paren_string.typ.snap index dd178e57f..729dcd10e 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@paren_string.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@paren_string.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: "Completion on \" (41..42)" expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/paren_string.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@set.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@set.typ.snap index 79d284162..977f4ec07 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@set.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@set.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (92..93) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/set.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@set2.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@set2.typ.snap index 0ed4d46d8..1d7ae5d41 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@set2.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@set2.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (86..87) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/set2.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@set_block.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@set_block.typ.snap index e44ab7a15..49d08b62a 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@set_block.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@set_block.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (26..27) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/set_block.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@set_in_show.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@set_in_show.typ.snap index d07626be4..b5b62d07a 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@set_in_show.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@set_in_show.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (114..115) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/set_in_show.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@set_param.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@set_param.typ.snap index 9e60b62d6..5ea37c302 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@set_param.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@set_param.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (35..36) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/set_param.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@show.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@show.typ.snap index 1a18022dd..a76cabda8 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@show.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@show.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (109..110) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/show.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@show2.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@show2.typ.snap index 81834e63e..578c9700c 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@show2.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@show2.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (108..109) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/show2.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@show3.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@show3.typ.snap index 45296a784..5c667a78c 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@show3.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@show3.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (103..104) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/show3.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@show_transform.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@show_transform.typ.snap index 80b8033af..c2cb38000 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@show_transform.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@show_transform.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (93..94) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/show_transform.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@show_transform2.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@show_transform2.typ.snap index d6a6b18a6..6f9273586 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@show_transform2.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@show_transform2.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (92..93) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/show_transform2.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@show_transform3.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@show_transform3.typ.snap index c185eef41..633f80a3a 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@show_transform3.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@show_transform3.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (91..92) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/show_transform3.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@sig_dict.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@sig_dict.typ.snap index 9c8b86a64..0340f0028 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@sig_dict.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@sig_dict.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on ) (63..64) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/sig_dict.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@sig_dict_rest.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@sig_dict_rest.typ.snap index bb8d91dac..d538093cd 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@sig_dict_rest.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@sig_dict_rest.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on ) (75..76) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/sig_dict_rest.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/hover/snaps/test@builtin.typ.snap b/crates/tinymist-query/src/fixtures/hover/snaps/test@builtin.typ.snap index ddba3295a..40280aac4 100644 --- a/crates/tinymist-query/src/fixtures/hover/snaps/test@builtin.typ.snap +++ b/crates/tinymist-query/src/fixtures/hover/snaps/test@builtin.typ.snap @@ -2,6 +2,7 @@ source: crates/tinymist-query/src/hover.rs expression: "JsonRepr::new_redacted(result, &REDACT_LOC)" input_file: crates/tinymist-query/src/fixtures/hover/builtin.typ +snapshot_kind: text --- { "contents": "```typc\nlet table(\n ..children: content,\n align: alignment | array | auto | function = auto,\n column-gutter: array | auto | length | type = (),\n columns: array | auto | length | type = (),\n fill: color = none,\n gutter: array | auto | length | type = (),\n inset: inset = 0% + 5pt,\n row-gutter: array | auto | length | type = (),\n rows: array | auto | length | type = (),\n stroke: stroke = 1pt + black,\n);\n```\n\n---\nA table of items.\n\nTables are used to arrange content in cells. Cells can contain arbitrary\ncontent, including multiple paragraphs and are specified in row-major order.\nFor a hands-on explanation of all the ways you can use and customize tables\nin Typst, check out the [table guide](https://typst.app/docs/guides/table-guide/).\n\nBecause tables are just grids with different defaults for some cell\nproperties (notably `stroke` and `inset`), refer to the [grid\ndocumentation](https://typst.app/docs/reference/layout/grid/) for more information on how to size the table tracks\nand specify the cell appearance properties.\n\nIf you are unsure whether you should be using a table or a grid, consider\nwhether the content you are arranging semantically belongs together as a set\nof related data points or similar or whether you are just want to enhance\nyour presentation by arranging unrelated content in a grid. In the former\ncase, a table is the right choice, while in the latter case, a grid is more\nappropriate. Furthermore, Typst will annotate its output in the future such\nthat screenreaders will announce content in `table` as tabular while a\ngrid's content will be announced no different than multiple content blocks\nin the document flow.\n\nNote that, to override a particular cell's properties or apply show rules on\ntable cells, you can use the [`table.cell`](https://typst.app/docs/reference/model/table/#definitions-cell) element. See its\ndocumentation for more information.\n\nAlthough the `table` and the `grid` share most properties, set and show\nrules on one of them do not affect the other.\n\nTo give a table a caption and make it [referenceable](https://typst.app/docs/reference/model/ref/), put it into a\n[figure].\n\n# Example\n\nThe example below demonstrates some of the most common table options.\n```typ\n#table(\n columns: (1fr, auto, auto),\n inset: 10pt,\n align: horizon,\n table.header(\n [], [*Volume*], [*Parameters*],\n ),\n image(\"cylinder.svg\"),\n $ pi h (D^2 - d^2) / 4 $,\n [\n $h$: height \\\n $D$: outer radius \\\n $d$: inner radius\n ],\n image(\"tetrahedron.svg\"),\n $ sqrt(2) / 12 a^3 $,\n [$a$: edge length]\n)\n```\n\nMuch like with grids, you can use [`table.cell`](https://typst.app/docs/reference/model/table/#definitions-cell) to customize\nthe appearance and the position of each cell.\n\n```typ\n>>> #set page(width: auto)\n>>> #set text(font: \"IBM Plex Sans\")\n>>> #let gray = rgb(\"#565565\")\n>>>\n#set table(\n stroke: none,\n gutter: 0.2em,\n fill: (x, y) =>\n if x == 0 or y == 0 { gray },\n inset: (right: 1.5em),\n)\n\n#show table.cell: it => {\n if it.x == 0 or it.y == 0 {\n set text(white)\n strong(it)\n } else if it.body == [] {\n // Replace empty cells with 'N/A'\n pad(..it.inset)[_N/A_]\n } else {\n it\n }\n}\n\n#let a = table.cell(\n fill: green.lighten(60%),\n)[A]\n#let b = table.cell(\n fill: aqua.lighten(60%),\n)[B]\n\n#table(\n columns: 4,\n [], [Exam 1], [Exam 2], [Exam 3],\n\n [John], [], a, [],\n [Mary], [], a, a,\n [Robert], b, a, b,\n)\n```\n\n# Rest Parameters\n\n## children\n\n```typc\ntype: content\n```\n\nThe contents of the table cells, plus any extra table lines specified\nwith the [`table.hline`](https://typst.app/docs/reference/model/table/#definitions-hline) and\n[`table.vline`](https://typst.app/docs/reference/model/table/#definitions-vline) elements.\n\n# Named Parameters\n\n## align\n\n```typc\ntype: alignment | array | auto | function\n```\n\nHow to align the cells' content.\n\nThis can either be a single alignment, an array of alignments\n(corresponding to each column) or a function that returns an alignment.\nThe function receives the cells' column and row indices, starting from\nzero. If set to `auto`, the outer alignment is used.\n\n```typ\n#table(\n columns: 3,\n align: (left, center, right),\n [Hello], [Hello], [Hello],\n [A], [B], [C],\n)\n```\n\n## column-gutter (named)\n\n```typc\ntype: array | auto | length | type\n```\n\nThe gaps between columns. Takes precedence over `gutter`. See the\n[grid documentation](https://typst.app/docs/reference/layout/grid/) for more information on gutters.\n\n## columns (named)\n\n```typc\ntype: array | auto | length | type\n```\n\nThe column sizes. See the [grid documentation](https://typst.app/docs/reference/layout/grid/) for more\ninformation on track sizing.\n\n## fill (named)\n\n```typc\ntype: color\n```\n\nHow to fill the cells.\n\nThis can be a color or a function that returns a color. The function\nreceives the cells' column and row indices, starting from zero. This can\nbe used to implement striped tables.\n\n```typ\n#table(\n fill: (x, _) =>\n if calc.odd(x) { luma(240) }\n else { white },\n align: (x, y) =>\n if y == 0 { center }\n else if x == 0 { left }\n else { right },\n columns: 4,\n [], [*Q1*], [*Q2*], [*Q3*],\n [Revenue:], [1000 €], [2000 €], [3000 €],\n [Expenses:], [500 €], [1000 €], [1500 €],\n [Profit:], [500 €], [1000 €], [1500 €],\n)\n```\n\n## gutter (named)\n\n```typc\ntype: array | auto | length | type\n```\n\nThe gaps between rows and columns. This is a shorthand for setting\n`column-gutter` and `row-gutter` to the same value. See the [grid\ndocumentation](https://typst.app/docs/reference/layout/grid/) for more information on gutters.\n\n## inset (named)\n\n```typc\ntype: inset\n```\n\nHow much to pad the cells' content.\n\n```typ\n#table(\n inset: 10pt,\n [Hello],\n [World],\n)\n\n#table(\n columns: 2,\n inset: (\n x: 20pt,\n y: 10pt,\n ),\n [Hello],\n [World],\n)\n```\n\n## row-gutter (named)\n\n```typc\ntype: array | auto | length | type\n```\n\nThe gaps between rows. Takes precedence over `gutter`. See the\n[grid documentation](https://typst.app/docs/reference/layout/grid/) for more information on gutters.\n\n## rows (named)\n\n```typc\ntype: array | auto | length | type\n```\n\nThe row sizes. See the [grid documentation](https://typst.app/docs/reference/layout/grid/) for more information\non track sizing.\n\n## stroke (named)\n\n```typc\ntype: stroke\n```\n\nHow to [stroke] the cells.\n\nStrokes can be disabled by setting this to `none`.\n\nIf it is necessary to place lines which can cross spacing between cells\nproduced by the `gutter` option, or to override the stroke between\nmultiple specific cells, consider specifying one or more of\n[`table.hline`](https://typst.app/docs/reference/model/table/#definitions-hline) and [`table.vline`](https://typst.app/docs/reference/model/table/#definitions-vline)\nalongside your table cells.\n\nSee the [grid documentation](https://typst.app/docs/reference/layout/grid/#parameters-stroke) for more information on\nstrokes.\n\n---\n[Open docs](https://typst.app/docs/reference/model/table/)", diff --git a/crates/tinymist-query/src/fixtures/hover/snaps/test@value_repr.typ.snap b/crates/tinymist-query/src/fixtures/hover/snaps/test@value_repr.typ.snap index 528f1f4e8..5ce2fe6ee 100644 --- a/crates/tinymist-query/src/fixtures/hover/snaps/test@value_repr.typ.snap +++ b/crates/tinymist-query/src/fixtures/hover/snaps/test@value_repr.typ.snap @@ -2,6 +2,7 @@ source: crates/tinymist-query/src/hover.rs expression: "JsonRepr::new_redacted(result, &REDACT_LOC)" input_file: crates/tinymist-query/src/fixtures/hover/value_repr.typ +snapshot_kind: text --- { "contents": "```typc\nlet f(\n x: any,\n y: any,\n z: any,\n w01: int = 1,\n w02: str = \"test\",\n w03: any = 1 + 2,\n w04: any = Label(test),\n w05: (content | none, baseline: relative, clip: bool, fill: color, height: auto | relative, inset: inset, outset: outset, radius: radius, stroke: stroke, width: auto | fraction | relative) => box = (content | none, baseline: relative, clip: bool, fill: color, height: auto | relative, inset: inset, outset: outset, radius: radius, stroke: stroke, width: auto | fraction | relative) => box,\n w06: any = (body-indent: length, indent: length, marker: array | content | function, spacing: auto | length, tight: bool, ..: content) => list.item,\n w07: content = Expr(..),\n w08: any = Expr(..),\n w09: any = 1 + 2,\n w10: array = (\n 1,\n 2,\n ),\n w11: array = (),\n w12: dictionary = (:),\n w13: dictionary = (a: 1),\n w14: dictionary = (a: (content | none, baseline: relative, clip: bool, fill: color, height: auto | relative, inset: inset, outset: outset, radius: radius, stroke: stroke, width: auto | fraction | relative) => box),\n w15: dictionary = (a: (body-indent: length, indent: length, marker: array | content | function, spacing: auto | length, tight: bool, ..: content) => list.item),\n) = int;\n```\n\n---\n\n\n# Positional Parameters\n\n## x\n\n```typc\ntype: \n```\n\n\n\n## y (positional)\n\n```typc\ntype: \n```\n\n\n\n## z (positional)\n\n```typc\ntype: \n```\n\n\n\n# Named Parameters\n\n## w01\n\n```typc\ntype: 1\n```\n\n\n\n## w02 (named)\n\n```typc\ntype: \"test\"\n```\n\n\n\n## w03 (named)\n\n```typc\ntype: any\n```\n\n\n\n## w04 (named)\n\n```typc\ntype: \n```\n\n\n\n## w05 (named)\n\n```typc\ntype: (content | none, baseline: relative, clip: bool, fill: color, height: auto | relative, inset: inset, outset: outset, radius: radius, stroke: stroke, width: auto | fraction | relative) => box\n```\n\n\n\n## w06 (named)\n\n```typc\ntype: any\n```\n\n\n\n## w07 (named)\n\n```typc\ntype: content\n```\n\n\n\n## w08 (named)\n\n```typc\ntype: any\n```\n\n\n\n## w09 (named)\n\n```typc\ntype: any\n```\n\n\n\n## w10 (named)\n\n```typc\ntype: array\n```\n\n\n\n## w11 (named)\n\n```typc\ntype: array\n```\n\n\n\n## w12 (named)\n\n```typc\ntype: dictionary\n```\n\n\n\n## w13 (named)\n\n```typc\ntype: dictionary\n```\n\n\n\n## w14 (named)\n\n```typc\ntype: dictionary\n```\n\n\n\n## w15 (named)\n\n```typc\ntype: dictionary\n```\n\n", diff --git a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-core-slides.typ-2.snap b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-core-slides.typ-2.snap index 6c85c4b40..19d21f418 100644 --- a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-core-slides.typ-2.snap +++ b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-core-slides.typ-2.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (61..62) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/pkgs/touying-core-slides.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-core-slides.typ.snap b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-core-slides.typ.snap index 7fece690a..17979a101 100644 --- a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-core-slides.typ.snap +++ b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-core-slides.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (57..58) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/pkgs/touying-core-slides.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-cover-with-rect.typ.snap b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-cover-with-rect.typ.snap index f13c5758f..2e30942ac 100644 --- a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-cover-with-rect.typ.snap +++ b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-cover-with-rect.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (71..72) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/pkgs/touying-utils-cover-with-rect.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-current-heading.typ-2.snap b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-current-heading.typ-2.snap index 4a392beb7..1f3f81bf3 100644 --- a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-current-heading.typ-2.snap +++ b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-current-heading.typ-2.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (63..64) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/pkgs/touying-utils-current-heading.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-current-heading.typ-3.snap b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-current-heading.typ-3.snap index 8d2417b7c..cc5c8aca0 100644 --- a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-current-heading.typ-3.snap +++ b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-current-heading.typ-3.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (77..78) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/pkgs/touying-utils-current-heading.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-current-heading.typ-4.snap b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-current-heading.typ-4.snap index 4a0707c2b..918bc3813 100644 --- a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-current-heading.typ-4.snap +++ b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-current-heading.typ-4.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (67..68) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/pkgs/touying-utils-current-heading.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-current-heading.typ.snap b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-current-heading.typ.snap index 7536526f1..806fe868f 100644 --- a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-current-heading.typ.snap +++ b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-current-heading.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (78..79) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/pkgs/touying-utils-current-heading.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-markup-text.typ-2.snap b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-markup-text.typ-2.snap index 7c7b92378..d1518b791 100644 --- a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-markup-text.typ-2.snap +++ b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-markup-text.typ-2.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (58..59) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/pkgs/touying-utils-markup-text.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-markup-text.typ.snap b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-markup-text.typ.snap index f6903b30f..33cc1eb7c 100644 --- a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-markup-text.typ.snap +++ b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-markup-text.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (71..72) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/pkgs/touying-utils-markup-text.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-reconstruct.typ-2.snap b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-reconstruct.typ-2.snap index da9668d39..aa1d5a613 100644 --- a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-reconstruct.typ-2.snap +++ b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-reconstruct.typ-2.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (66..67) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/pkgs/touying-utils-reconstruct.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-reconstruct.typ-3.snap b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-reconstruct.typ-3.snap index a3a222c49..a70cffd18 100644 --- a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-reconstruct.typ-3.snap +++ b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-reconstruct.typ-3.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (69..70) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/pkgs/touying-utils-reconstruct.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-reconstruct.typ-4.snap b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-reconstruct.typ-4.snap index 6831043fd..42a5a3eea 100644 --- a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-reconstruct.typ-4.snap +++ b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-reconstruct.typ-4.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (67..68) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/pkgs/touying-utils-reconstruct.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-reconstruct.typ.snap b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-reconstruct.typ.snap index 0d1629f36..eb847c828 100644 --- a/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-reconstruct.typ.snap +++ b/crates/tinymist-query/src/fixtures/pkgs/snaps/test@touying-utils-reconstruct.typ.snap @@ -3,6 +3,7 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (88..89) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/pkgs/touying-utils-reconstruct.typ +snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font2.typ.snap b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font2.typ.snap index 267b1c041..099be546f 100644 --- a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font2.typ.snap +++ b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font2.typ.snap @@ -3,5 +3,6 @@ source: crates/tinymist-query/src/analysis.rs description: "Check on \"(\" (30)" expression: literal_type input_file: crates/tinymist-query/src/fixtures/post_type_check/text_font2.typ +snapshot_kind: text --- TextFont diff --git a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font3.typ.snap b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font3.typ.snap index f29830cd2..860ee5308 100644 --- a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font3.typ.snap +++ b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font3.typ.snap @@ -3,5 +3,6 @@ source: crates/tinymist-query/src/analysis.rs description: "Check on \"(\" (33)" expression: literal_type input_file: crates/tinymist-query/src/fixtures/post_type_check/text_font3.typ +snapshot_kind: text --- TextFont diff --git a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font4.typ.snap b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font4.typ.snap index 058cc0de2..eb7536771 100644 --- a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font4.typ.snap +++ b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font4.typ.snap @@ -3,5 +3,6 @@ source: crates/tinymist-query/src/analysis.rs description: "Check on \"(\" (31)" expression: literal_type input_file: crates/tinymist-query/src/fixtures/post_type_check/text_font4.typ +snapshot_kind: text --- TextFont diff --git a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font5.typ.snap b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font5.typ.snap index bb12c36ba..040d840c0 100644 --- a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font5.typ.snap +++ b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font5.typ.snap @@ -3,5 +3,6 @@ source: crates/tinymist-query/src/analysis.rs description: "Check on \"(\" (47)" expression: literal_type input_file: crates/tinymist-query/src/fixtures/post_type_check/text_font5.typ +snapshot_kind: text --- TextFont diff --git a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font_element.typ.snap b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font_element.typ.snap index 5c5ece2bd..4fa3bb6da 100644 --- a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font_element.typ.snap +++ b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font_element.typ.snap @@ -3,5 +3,6 @@ source: crates/tinymist-query/src/analysis.rs description: "Check on \"\\\"Test\\\"\" (34)" expression: literal_type input_file: crates/tinymist-query/src/fixtures/post_type_check/text_font_element.typ +snapshot_kind: text --- ( ⪰ TextFont | (TextFont | Array)) diff --git a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font_element3.typ.snap b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font_element3.typ.snap index 3e603fdfc..6a344e493 100644 --- a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font_element3.typ.snap +++ b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font_element3.typ.snap @@ -3,5 +3,6 @@ source: crates/tinymist-query/src/analysis.rs description: "Check on \"\\\"Test\\\"\" (34)" expression: literal_type input_file: crates/tinymist-query/src/fixtures/post_type_check/text_font_element3.typ +snapshot_kind: text --- TextFont diff --git a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font_element4.typ.snap b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font_element4.typ.snap index 2b6788304..0bc9ddf8e 100644 --- a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font_element4.typ.snap +++ b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_font_element4.typ.snap @@ -3,5 +3,6 @@ source: crates/tinymist-query/src/analysis.rs description: "Check on \"\\\"Test\\\"\" (31)" expression: literal_type input_file: crates/tinymist-query/src/fixtures/post_type_check/text_font_element4.typ +snapshot_kind: text --- TextFont diff --git a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_stroke.typ.snap b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_stroke.typ.snap index 484e2df4d..f61da882a 100644 --- a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_stroke.typ.snap +++ b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_stroke.typ.snap @@ -3,5 +3,6 @@ source: crates/tinymist-query/src/analysis.rs description: "Check on \")\" (82)" expression: literal_type input_file: crates/tinymist-query/src/fixtures/post_type_check/text_stroke.typ +snapshot_kind: text --- ( ⪰ "cap": Any | "dash": Any | "join": Any | "miter-limit": Any | "paint": Any | "thickness": Any) diff --git a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_stroke1.typ.snap b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_stroke1.typ.snap index b141ab8ce..c965a0574 100644 --- a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_stroke1.typ.snap +++ b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_stroke1.typ.snap @@ -3,5 +3,6 @@ source: crates/tinymist-query/src/analysis.rs description: "Check on \"(\" (61)" expression: literal_type input_file: crates/tinymist-query/src/fixtures/post_type_check/text_stroke1.typ +snapshot_kind: text --- ( ⪰ "cap": Any | "dash": Any | "join": Any | "miter-limit": Any | "paint": Any | "thickness": Any) diff --git a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_stroke2.typ.snap b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_stroke2.typ.snap index 2845d8faa..cd01ba93e 100644 --- a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_stroke2.typ.snap +++ b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_stroke2.typ.snap @@ -3,5 +3,6 @@ source: crates/tinymist-query/src/analysis.rs description: "Check on \")\" (69)" expression: literal_type input_file: crates/tinymist-query/src/fixtures/post_type_check/text_stroke2.typ +snapshot_kind: text --- "stroke": Stroke diff --git a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_stroke3.typ.snap b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_stroke3.typ.snap index f9a830a27..a5889d865 100644 --- a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_stroke3.typ.snap +++ b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_stroke3.typ.snap @@ -3,5 +3,6 @@ source: crates/tinymist-query/src/analysis.rs description: "Check on \"(\" (49)" expression: literal_type input_file: crates/tinymist-query/src/fixtures/post_type_check/text_stroke3.typ +snapshot_kind: text --- ( ⪰ "cap": Any | "dash": Any | "join": Any | "miter-limit": Any | "paint": Any | "thickness": Any) diff --git a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_stroke4.typ.snap b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_stroke4.typ.snap index 30c10ca6c..369479a55 100644 --- a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_stroke4.typ.snap +++ b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@text_stroke4.typ.snap @@ -3,5 +3,6 @@ source: crates/tinymist-query/src/analysis.rs description: "Check on \"(\" (48)" expression: literal_type input_file: crates/tinymist-query/src/fixtures/post_type_check/text_stroke4.typ +snapshot_kind: text --- "stroke": Stroke diff --git a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_external.typ.snap b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_external.typ.snap index afb119564..58edb5519 100644 --- a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_external.typ.snap +++ b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_external.typ.snap @@ -3,5 +3,6 @@ source: crates/tinymist-query/src/analysis.rs description: "Check on \"(\" (56)" expression: literal_type input_file: crates/tinymist-query/src/fixtures/post_type_check/user_external.typ +snapshot_kind: text --- TextFont diff --git a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_external_alias.typ.snap b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_external_alias.typ.snap index fe6759a61..2ab976ba8 100644 --- a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_external_alias.typ.snap +++ b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_external_alias.typ.snap @@ -3,5 +3,6 @@ source: crates/tinymist-query/src/analysis.rs description: "Check on \"(\" (59)" expression: literal_type input_file: crates/tinymist-query/src/fixtures/post_type_check/user_external_alias.typ +snapshot_kind: text --- TextFont diff --git a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_external_ever.typ.snap b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_external_ever.typ.snap index 6f6caafae..964e1f5a6 100644 --- a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_external_ever.typ.snap +++ b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_external_ever.typ.snap @@ -3,5 +3,6 @@ source: crates/tinymist-query/src/analysis.rs description: "Check on \":\" (34)" expression: literal_type input_file: crates/tinymist-query/src/fixtures/post_type_check/user_external_ever.typ +snapshot_kind: text --- ( ⪰ "article" | "letter") diff --git a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_func.typ.snap b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_func.typ.snap index 491bd880b..1f417aa27 100644 --- a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_func.typ.snap +++ b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_func.typ.snap @@ -3,5 +3,6 @@ source: crates/tinymist-query/src/analysis.rs description: "Check on \"(\" (105)" expression: literal_type input_file: crates/tinymist-query/src/fixtures/post_type_check/user_func.typ +snapshot_kind: text --- TextFont diff --git a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_func_pos.typ.snap b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_func_pos.typ.snap index 60b62acf8..603568ef3 100644 --- a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_func_pos.typ.snap +++ b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_func_pos.typ.snap @@ -3,5 +3,6 @@ source: crates/tinymist-query/src/analysis.rs description: "Check on \",\" (83)" expression: literal_type input_file: crates/tinymist-query/src/fixtures/post_type_check/user_func_pos.typ +snapshot_kind: text --- "stroke": Stroke diff --git a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_func_pos2.typ.snap b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_func_pos2.typ.snap index 8ba3bd812..ed4d89f8c 100644 --- a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_func_pos2.typ.snap +++ b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_func_pos2.typ.snap @@ -3,5 +3,6 @@ source: crates/tinymist-query/src/analysis.rs description: "Check on \"(\" (85)" expression: literal_type input_file: crates/tinymist-query/src/fixtures/post_type_check/user_func_pos2.typ +snapshot_kind: text --- ( ⪰ "cap": Any | "dash": Any | "join": Any | "miter-limit": Any | "paint": Any | "thickness": Any) diff --git a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_named.typ.snap b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_named.typ.snap index c36fba00c..25eeb8483 100644 --- a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_named.typ.snap +++ b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@user_named.typ.snap @@ -3,5 +3,6 @@ source: crates/tinymist-query/src/analysis.rs description: "Check on \")\" (98)" expression: literal_type input_file: crates/tinymist-query/src/fixtures/post_type_check/user_named.typ +snapshot_kind: text --- ( ⪰ "content": None | "font": ( ⪰ None ⪯ (TextFont | Array))) diff --git a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@with_element.typ.snap b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@with_element.typ.snap index ed622c914..38dd8872f 100644 --- a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@with_element.typ.snap +++ b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@with_element.typ.snap @@ -3,5 +3,6 @@ source: crates/tinymist-query/src/analysis.rs description: "Check on \"(\" (18)" expression: literal_type input_file: crates/tinymist-query/src/fixtures/post_type_check/with_element.typ +snapshot_kind: text --- ( ⪰ "alternates": Type(bool) | "baseline": Type(length) | "body": Type(content) | "bottom-edge": (Type(length) | "baseline" | "bounds" | "descender") | "cjk-latin-spacing": (Type(auto) | Type(none)) | "costs": Type(dictionary) | "dir": Dir | "discretionary-ligatures": Type(bool) | "fallback": Type(bool) | "features": (Type(array) | Type(dictionary)) | "fill": Color | "font": (TextFont | Array) | "fractions": Type(bool) | "historical-ligatures": Type(bool) | "hyphenate": (Type(auto) | Type(bool)) | "kerning": Type(bool) | "lang": TextLang | "ligatures": Type(bool) | "number-type": (Type(auto) | "lining" | "old-style") | "number-width": (Type(auto) | "proportional" | "tabular") | "overhang": Type(bool) | "region": TextRegion | "script": (Type(auto) | Type(str)) | "size": TextSize | "slashed-zero": Type(bool) | "spacing": Type(relative) | "stretch": Type(ratio) | "stroke": Stroke | "style": ("italic" | "normal" | "oblique") | "stylistic-set": (Type(array) | Type(int) | Type(none)) | "top-edge": (Type(length) | "ascender" | "baseline" | "bounds" | "cap-height" | "x-height") | "tracking": Type(length) | "weight": (Type(int) | "black" | "bold" | "extrabold" | "extralight" | "light" | "medium" | "regular" | "semibold" | "thin")) diff --git a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@with_user_func.typ.snap b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@with_user_func.typ.snap index ca7025d0c..f1185f37b 100644 --- a/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@with_user_func.typ.snap +++ b/crates/tinymist-query/src/fixtures/post_type_check/snaps/test@with_user_func.typ.snap @@ -3,5 +3,6 @@ source: crates/tinymist-query/src/analysis.rs description: "Check on \"(\" (72)" expression: literal_type input_file: crates/tinymist-query/src/fixtures/post_type_check/with_user_func.typ +snapshot_kind: text --- "font": (TextFont | Array) diff --git a/crates/tinymist-query/src/fixtures/type_check/snaps/test@annotation_fn.typ.snap b/crates/tinymist-query/src/fixtures/type_check/snaps/test@annotation_fn.typ.snap index 970a254e9..db22e1bd7 100644 --- a/crates/tinymist-query/src/fixtures/type_check/snaps/test@annotation_fn.typ.snap +++ b/crates/tinymist-query/src/fixtures/type_check/snaps/test@annotation_fn.typ.snap @@ -2,6 +2,7 @@ source: crates/tinymist-query/src/analysis.rs expression: result input_file: crates/tinymist-query/src/fixtures/type_check/annotation_fn.typ +snapshot_kind: text --- "touying-fn-wrapper" = ((Type(function), "max-repetitions": Type(int), "repetitions": Type(int), ...: Any) => None).with(..("max-repetitions": None, "repetitions": None) => any) "fn" = Any diff --git a/crates/tinymist-query/src/fixtures/type_check/snaps/test@annotation_fn2.typ.snap b/crates/tinymist-query/src/fixtures/type_check/snaps/test@annotation_fn2.typ.snap index 6111e2109..e6e27bf5e 100644 --- a/crates/tinymist-query/src/fixtures/type_check/snaps/test@annotation_fn2.typ.snap +++ b/crates/tinymist-query/src/fixtures/type_check/snaps/test@annotation_fn2.typ.snap @@ -2,6 +2,7 @@ source: crates/tinymist-query/src/analysis.rs expression: result input_file: crates/tinymist-query/src/fixtures/type_check/annotation_fn2.typ +snapshot_kind: text --- "args" = Any "fn-wrapper" = ((Type(function) | (...: Any) => Any), ...: Any) => None diff --git a/crates/tinymist-query/src/fixtures/type_check/snaps/test@annotation_sum.typ.snap b/crates/tinymist-query/src/fixtures/type_check/snaps/test@annotation_sum.typ.snap index 95a5baca2..86586d5c7 100644 --- a/crates/tinymist-query/src/fixtures/type_check/snaps/test@annotation_sum.typ.snap +++ b/crates/tinymist-query/src/fixtures/type_check/snaps/test@annotation_sum.typ.snap @@ -2,6 +2,7 @@ source: crates/tinymist-query/src/analysis.rs expression: result input_file: crates/tinymist-query/src/fixtures/type_check/annotation_sum.typ +snapshot_kind: text --- "sum" = (...: Array) => None "args" = Args diff --git a/crates/tinymist-query/src/fixtures/type_check/snaps/test@bug_cite_func_infer.typ.snap b/crates/tinymist-query/src/fixtures/type_check/snaps/test@bug_cite_func_infer.typ.snap index 0c1794f20..54cfae1e9 100644 --- a/crates/tinymist-query/src/fixtures/type_check/snaps/test@bug_cite_func_infer.typ.snap +++ b/crates/tinymist-query/src/fixtures/type_check/snaps/test@bug_cite_func_infer.typ.snap @@ -2,6 +2,7 @@ source: crates/tinymist-query/src/analysis.rs expression: result input_file: crates/tinymist-query/src/fixtures/type_check/bug_cite_func_infer.typ +snapshot_kind: text --- "cite_prose" = (RefLabel) => Element(ref) "labl" = Any diff --git a/crates/tinymist-query/src/fixtures/type_check/snaps/test@external.typ.snap b/crates/tinymist-query/src/fixtures/type_check/snaps/test@external.typ.snap index e970fb33c..33060648a 100644 --- a/crates/tinymist-query/src/fixtures/type_check/snaps/test@external.typ.snap +++ b/crates/tinymist-query/src/fixtures/type_check/snaps/test@external.typ.snap @@ -2,6 +2,7 @@ source: crates/tinymist-query/src/analysis.rs expression: result input_file: crates/tinymist-query/src/fixtures/type_check/external.typ +snapshot_kind: text --- "base" = Any "bad-instantiate" = Any diff --git a/crates/tinymist-query/src/fixtures/type_check/snaps/test@fn_named.typ.snap b/crates/tinymist-query/src/fixtures/type_check/snaps/test@fn_named.typ.snap index dd1c0b7b6..b76455bb9 100644 --- a/crates/tinymist-query/src/fixtures/type_check/snaps/test@fn_named.typ.snap +++ b/crates/tinymist-query/src/fixtures/type_check/snaps/test@fn_named.typ.snap @@ -2,6 +2,7 @@ source: crates/tinymist-query/src/analysis.rs expression: result input_file: crates/tinymist-query/src/fixtures/type_check/fn_named.typ +snapshot_kind: text --- "foo" = (("d": Any) => Any).with(..("d": 3) => any) "d" = ( ⪰ Type(int) | 3) diff --git a/crates/tinymist-query/src/fixtures/type_check/snaps/test@fn_named3.typ.snap b/crates/tinymist-query/src/fixtures/type_check/snaps/test@fn_named3.typ.snap index e09fb84b9..911bb444a 100644 --- a/crates/tinymist-query/src/fixtures/type_check/snaps/test@fn_named3.typ.snap +++ b/crates/tinymist-query/src/fixtures/type_check/snaps/test@fn_named3.typ.snap @@ -2,6 +2,7 @@ source: crates/tinymist-query/src/analysis.rs expression: result input_file: crates/tinymist-query/src/fixtures/type_check/fn_named3.typ +snapshot_kind: text --- "fun" = () => TypeUnary { lhs: 2, op: Return } "foo" = (("b": Any) => Any).with(..("b": TypeUnary { lhs: 2, op: Return }) => any) diff --git a/crates/tinymist-query/src/fixtures/type_check/snaps/test@fn_named4.typ.snap b/crates/tinymist-query/src/fixtures/type_check/snaps/test@fn_named4.typ.snap index 3bf6ed1bb..d9b2f90a8 100644 --- a/crates/tinymist-query/src/fixtures/type_check/snaps/test@fn_named4.typ.snap +++ b/crates/tinymist-query/src/fixtures/type_check/snaps/test@fn_named4.typ.snap @@ -2,6 +2,7 @@ source: crates/tinymist-query/src/analysis.rs expression: result input_file: crates/tinymist-query/src/fixtures/type_check/fn_named4.typ +snapshot_kind: text --- "dict" = {"x": 3} "foo" = (("c": Any) => Any).with(..("c": (3 | {"x": 3}.x)) => any) diff --git a/crates/tinymist-query/src/fixtures/type_check/snaps/test@op_contains.typ.snap b/crates/tinymist-query/src/fixtures/type_check/snaps/test@op_contains.typ.snap index a2bad700e..a461fc456 100644 --- a/crates/tinymist-query/src/fixtures/type_check/snaps/test@op_contains.typ.snap +++ b/crates/tinymist-query/src/fixtures/type_check/snaps/test@op_contains.typ.snap @@ -2,6 +2,7 @@ source: crates/tinymist-query/src/analysis.rs expression: result input_file: crates/tinymist-query/src/fixtures/type_check/op_contains.typ +snapshot_kind: text --- "f" = (("line" | "number")) => Type(none) "x" = Any diff --git a/crates/tinymist-query/src/fixtures/type_check/snaps/test@op_contains_str.typ.snap b/crates/tinymist-query/src/fixtures/type_check/snaps/test@op_contains_str.typ.snap index 75c618f3d..729bd21ab 100644 --- a/crates/tinymist-query/src/fixtures/type_check/snaps/test@op_contains_str.typ.snap +++ b/crates/tinymist-query/src/fixtures/type_check/snaps/test@op_contains_str.typ.snap @@ -2,6 +2,7 @@ source: crates/tinymist-query/src/analysis.rs expression: result input_file: crates/tinymist-query/src/fixtures/type_check/op_contains_str.typ +snapshot_kind: text --- "f" = (TypeUnary { lhs: "abc", op: ElementOf }) => Type(none) "x" = Any diff --git a/crates/tinymist-query/src/fixtures/type_check/snaps/test@op_type_of.typ.snap b/crates/tinymist-query/src/fixtures/type_check/snaps/test@op_type_of.typ.snap index baadf2ea1..eee483204 100644 --- a/crates/tinymist-query/src/fixtures/type_check/snaps/test@op_type_of.typ.snap +++ b/crates/tinymist-query/src/fixtures/type_check/snaps/test@op_type_of.typ.snap @@ -2,6 +2,7 @@ source: crates/tinymist-query/src/analysis.rs expression: result input_file: crates/tinymist-query/src/fixtures/type_check/op_type_of.typ +snapshot_kind: text --- "f" = (Any) => Type(none) "x" = Type(integer) diff --git a/crates/tinymist-query/src/fixtures/type_check/snaps/test@recursive.typ.snap b/crates/tinymist-query/src/fixtures/type_check/snaps/test@recursive.typ.snap index c76b997ba..494058a1a 100644 --- a/crates/tinymist-query/src/fixtures/type_check/snaps/test@recursive.typ.snap +++ b/crates/tinymist-query/src/fixtures/type_check/snaps/test@recursive.typ.snap @@ -2,6 +2,7 @@ source: crates/tinymist-query/src/analysis.rs expression: result input_file: crates/tinymist-query/src/fixtures/type_check/recursive.typ +snapshot_kind: text --- "base" = Any "a" = Any diff --git a/crates/tinymist-query/src/fixtures/type_check/snaps/test@recursive_use.typ.snap b/crates/tinymist-query/src/fixtures/type_check/snaps/test@recursive_use.typ.snap index fbe262fc6..e8d3e3cce 100644 --- a/crates/tinymist-query/src/fixtures/type_check/snaps/test@recursive_use.typ.snap +++ b/crates/tinymist-query/src/fixtures/type_check/snaps/test@recursive_use.typ.snap @@ -2,6 +2,7 @@ source: crates/tinymist-query/src/analysis.rs expression: result input_file: crates/tinymist-query/src/fixtures/type_check/recursive_use.typ +snapshot_kind: text --- "base" = Any "a" = Any diff --git a/crates/tinymist-query/src/fixtures/type_check/snaps/test@sig_template_set.typ.snap b/crates/tinymist-query/src/fixtures/type_check/snaps/test@sig_template_set.typ.snap index 5b5e721ab..b094c225e 100644 --- a/crates/tinymist-query/src/fixtures/type_check/snaps/test@sig_template_set.typ.snap +++ b/crates/tinymist-query/src/fixtures/type_check/snaps/test@sig_template_set.typ.snap @@ -2,6 +2,7 @@ source: crates/tinymist-query/src/analysis.rs expression: result input_file: crates/tinymist-query/src/fixtures/type_check/sig_template_set.typ +snapshot_kind: text --- "tmpl" = ((Any, "authors": (Type(array) | Type(str)), "class": Any, "font": (TextFont | Array)) => Any).with(..("authors": (), "class": "article", "font": None) => any) "content" = Any diff --git a/crates/tinymist-query/src/fixtures/type_check/snaps/test@tuple_map.typ.snap b/crates/tinymist-query/src/fixtures/type_check/snaps/test@tuple_map.typ.snap index 9c533be41..f3482ac03 100644 --- a/crates/tinymist-query/src/fixtures/type_check/snaps/test@tuple_map.typ.snap +++ b/crates/tinymist-query/src/fixtures/type_check/snaps/test@tuple_map.typ.snap @@ -2,6 +2,7 @@ source: crates/tinymist-query/src/analysis.rs expression: result input_file: crates/tinymist-query/src/fixtures/type_check/tuple_map.typ +snapshot_kind: text --- "a" = (1, ) "f" = ((Type(bytes) | Type(decimal) | Type(float) | Type(int) | Type(label) | Type(str) | Type(type) | Type(version))) => Type(str) diff --git a/crates/tinymist-query/src/fixtures/type_check/snaps/test@with.typ.snap b/crates/tinymist-query/src/fixtures/type_check/snaps/test@with.typ.snap index d8c6a68ec..1b00febd9 100644 --- a/crates/tinymist-query/src/fixtures/type_check/snaps/test@with.typ.snap +++ b/crates/tinymist-query/src/fixtures/type_check/snaps/test@with.typ.snap @@ -2,6 +2,7 @@ source: crates/tinymist-query/src/analysis.rs expression: result input_file: crates/tinymist-query/src/fixtures/type_check/with.typ +snapshot_kind: text --- "f" = (Any) => Any "x" = Type(int) diff --git a/crates/tinymist-query/src/syntax/matcher.rs b/crates/tinymist-query/src/syntax/matcher.rs index 2ef031a43..0b622b459 100644 --- a/crates/tinymist-query/src/syntax/matcher.rs +++ b/crates/tinymist-query/src/syntax/matcher.rs @@ -906,7 +906,7 @@ mod tests { assert_snapshot!(map_deref(r#"#let x = 1 Text = Heading #let y = 2; -== Heading"#).trim(), @r###" +== Heading"#).trim(), @r" #let x = 1 nnnnvvnnn Text @@ -914,11 +914,11 @@ Text = Heading #let y = 2; nnnnvvnnn == Heading - "###); - assert_snapshot!(map_deref(r#"#let f(x);"#).trim(), @r###" + "); + assert_snapshot!(map_deref(r#"#let f(x);"#).trim(), @r" #let f(x); nnnnv v - "###); + "); } #[test] @@ -926,7 +926,7 @@ Text assert_snapshot!(map_check(r#"#let x = 1 Text = Heading #let y = 2; -== Heading"#).trim(), @r###" +== Heading"#).trim(), @r" #let x = 1 nnnnnnnnn Text @@ -934,36 +934,36 @@ Text = Heading #let y = 2; nnnnnnnnn == Heading - "###); - assert_snapshot!(map_check(r#"#let f(x);"#).trim(), @r###" + "); + assert_snapshot!(map_check(r#"#let f(x);"#).trim(), @r" #let f(x); nnnnn n - "###); - assert_snapshot!(map_check(r#"#f(1, 2) Test"#).trim(), @r###" + "); + assert_snapshot!(map_check(r#"#f(1, 2) Test"#).trim(), @r" #f(1, 2) Test npppppp - "###); - assert_snapshot!(map_check(r#"#() Test"#).trim(), @r###" + "); + assert_snapshot!(map_check(r#"#() Test"#).trim(), @r" #() Test ee - "###); - assert_snapshot!(map_check(r#"#(1) Test"#).trim(), @r###" + "); + assert_snapshot!(map_check(r#"#(1) Test"#).trim(), @r" #(1) Test PPP - "###); - assert_snapshot!(map_check(r#"#(a: 1) Test"#).trim(), @r###" + "); + assert_snapshot!(map_check(r#"#(a: 1) Test"#).trim(), @r" #(a: 1) Test eeeeee - "###); - assert_snapshot!(map_check(r#"#(1, 2) Test"#).trim(), @r###" + "); + assert_snapshot!(map_check(r#"#(1, 2) Test"#).trim(), @r" #(1, 2) Test eeeeee - "###); + "); assert_snapshot!(map_check(r#"#(1, 2) - Test"#).trim(), @r###" + Test"#).trim(), @r" #(1, 2) eeeeee Test - "###); + "); } } diff --git a/crates/typlite/src/tests.rs b/crates/typlite/src/tests.rs index 1c3d48601..2a6a7e16c 100644 --- a/crates/typlite/src/tests.rs +++ b/crates/typlite/src/tests.rs @@ -58,43 +58,39 @@ fn test_converted() { insta::assert_snapshot!(conv(r###" = Hello, World! This is a typst document. - "###), @r###" - # Hello, World! - This is a typst document. - "###); + "###), @r" + # Hello, World! + This is a typst document. + "); insta::assert_snapshot!(conv(r###" Some inlined raw `a`, ```c b``` "###), @"Some inlined raw `a`, `b`"); insta::assert_snapshot!(conv(r###" - Some *item* - Another _item_ - "###), @r###" - - Some **item** - - Another _item_ - "###); + "###), @r" + - Some **item** + - Another _item_ + "); insta::assert_snapshot!(conv(r###" + A + B - "###), @r###" - 1. A - 1. B - "###); + "###), @r" + 1. A + 1. B + "); insta::assert_snapshot!(conv(r###" 2. A + B - "###), @r###" - 2. A - 1. B - "###); + "###), @r" + 2. A + 1. B + "); insta::assert_snapshot!(conv(r###" $ 1/2 + 1/3 = 5/6 $ - "###), @r###" - -

typst-block

- - "###); + "###), @r#"

typst-block

"#); } #[test] @@ -118,8 +114,7 @@ See @@show-module() for outputting the results of this function. - preamble (string): Code to prepend to all code snippets shown with `#example()`. This can for instance be used to import something from the scope. -> string - "###), @r###" - + "###), @r" These again are dictionaries with the keys - `description` (optional): The description for the argument. - `types` (optional): A list of accepted argument types. @@ -138,8 +133,7 @@ See @@show-module() for outputting the results of this function. - preamble (string): Code to prepend to all code snippets shown with `#example()`. This can for instance be used to import something from the scope. -> string - - "###); + "); insta::assert_snapshot!(conv_docs(r###" These again are dictionaries with the keys - `description` (optional): The description for the argument. @@ -152,8 +146,7 @@ See @@show-module() for outputting the results of this function. - nested something - nested something 2 -> string - "###), @r###" - + "###), @r" These again are dictionaries with the keys - `description` (optional): The description for the argument. @@ -165,6 +158,5 @@ See @@show-module() for outputting the results of this function. - nested something - nested something 2 -> string - - "###); + "); } diff --git a/crates/typlite/src/tests/rendering.rs b/crates/typlite/src/tests/rendering.rs index 529534e83..bbd083d1b 100644 --- a/crates/typlite/src/tests/rendering.rs +++ b/crates/typlite/src/tests/rendering.rs @@ -4,16 +4,8 @@ use crate::tests::*; fn test_math_equation() { insta::assert_snapshot!(conv(r###" $integral x dif x$ - "###), @r###" - - typst-block - - "###); + "###), @r#"typst-block"#); insta::assert_snapshot!(conv(r###" $ integral x dif x $ - "###), @r###" - -

typst-block

- - "###); + "###), @r#"

typst-block

"#); }