diff --git a/crates/tinymist-query/src/analysis/completion/func.rs b/crates/tinymist-query/src/analysis/completion/func.rs index 6058c923..f0e1148c 100644 --- a/crates/tinymist-query/src/analysis/completion/func.rs +++ b/crates/tinymist-query/src/analysis/completion/func.rs @@ -60,6 +60,7 @@ impl CompletionPair<'_, '_, '_> { self.push_completion(Completion { apply: Some(eco_format!("{}()${{}}", name)), label: name, + command: None, ..base }); } else { diff --git a/crates/tinymist-query/src/completion.rs b/crates/tinymist-query/src/completion.rs index 5f34101d..3073db02 100644 --- a/crates/tinymist-query/src/completion.rs +++ b/crates/tinymist-query/src/completion.rs @@ -165,6 +165,7 @@ mod tests { sort_text: item.sort_text, kind: item.kind, text_edit: item.text_edit, + command: item.command, ..Default::default() }) .collect(); diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@base.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@base.typ.snap index d1e47597..7928bb71 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@base.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@base.typ.snap @@ -3,7 +3,6 @@ source: crates/tinymist-query/src/completion.rs description: Completion on c( (99..101) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/base.typ -snapshot_kind: text --- [ { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@bracket_strong.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@bracket_strong.typ.snap index e68aabd7..be5b43f0 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@bracket_strong.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@bracket_strong.typ.snap @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/bracket_strong.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "strong", "labelDetails": { @@ -30,6 +34,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/bracket_strong.typ } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "strong.bracket", "labelDetails": { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@bracket_strong_delta.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@bracket_strong_delta.typ.snap index 5ea49e54..70dcf360 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@bracket_strong_delta.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@bracket_strong_delta.typ.snap @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/bracket_strong_delta.t "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "delta", "labelDetails": { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@bracket_strong_delta2.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@bracket_strong_delta2.typ.snap index 52e9b5ec..e0b9050f 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@bracket_strong_delta2.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@bracket_strong_delta2.typ.snap @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/bracket_strong_delta2. "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "delta", "labelDetails": { 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 27ba2264..c7ccb22e 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 @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/colon_markup.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "attach", "labelDetails": { 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 01a31fb3..645781d6 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 @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/colon_math.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "attach", "labelDetails": { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@dot_content_math.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@dot_content_math.typ.snap index 2b53e12a..59fed8f7 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@dot_content_math.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@dot_content_math.typ.snap @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/dot_content_math.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "abs", "labelDetails": { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@dot_str_code.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@dot_str_code.typ.snap index 60626c12..407e2f57 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@dot_str_code.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@dot_str_code.typ.snap @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/dot_str_code.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "at", "textEdit": { 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 0fc94611..2299f5b7 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,13 +3,16 @@ 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 --- [ { "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "caption", "labelDetails": { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@field_code.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@field_code.typ.snap index 4c4bf891..13ed8bcc 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@field_code.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@field_code.typ.snap @@ -3,13 +3,16 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (29..30) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/field_code.typ -snapshot_kind: text --- [ { "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "odd", "textEdit": { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@field_markup.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@field_markup.typ.snap index 2c7bc16d..e5d24ab8 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@field_markup.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@field_markup.typ.snap @@ -3,13 +3,16 @@ source: crates/tinymist-query/src/completion.rs description: Completion on / (25..26) expression: "JsonRepr::new_pure(results)" input_file: crates/tinymist-query/src/fixtures/completion/field_markup.typ -snapshot_kind: text --- [ { "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "odd", "textEdit": { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@field_markup2.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@field_markup2.typ.snap index 1074c086..e7be97cb 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@field_markup2.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@field_markup2.typ.snap @@ -3,13 +3,16 @@ 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/field_markup2.typ -snapshot_kind: text --- [ { "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "odd", "textEdit": { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@field_math_postfix.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@field_math_postfix.typ.snap index d1880b08..5a1ea5b3 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@field_math_postfix.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@field_math_postfix.typ.snap @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/field_math_postfix.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "abs", "labelDetails": { 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 e782f252..2ed4020b 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,13 +3,16 @@ 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 --- [ { "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "authors", "labelDetails": { @@ -31,6 +34,10 @@ snapshot_kind: text } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "class", "labelDetails": { @@ -52,6 +59,10 @@ snapshot_kind: text } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "font", "labelDetails": { 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 f6f93976..4f11fd90 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,13 +3,16 @@ 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 --- [ { "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "class", "labelDetails": { @@ -31,6 +34,10 @@ snapshot_kind: text } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "font", "labelDetails": { 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 908fee4a..d6805fc8 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,13 +3,16 @@ 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 --- [ { "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "class", "labelDetails": { 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 d981c405..cf09d8b9 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 @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/func_builtin_args.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "columns", "labelDetails": { @@ -30,6 +34,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/func_builtin_args.typ } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "columns", "labelDetails": { 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 7664d3f9..fea99eb4 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,13 +3,16 @@ 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 --- [ { "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "aa", "labelDetails": { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@func_self.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@func_self.typ.snap index a2d14fcf..fce90619 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@func_self.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@func_self.typ.snap @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/func_self.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "flatten", "textEdit": { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@func_self4.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@func_self4.typ.snap index ac12b3a0..0cecfa26 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@func_self4.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@func_self4.typ.snap @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/func_self4.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "flatten", "labelDetails": { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@func_where_args.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@func_where_args.typ.snap index 3039e287..962fe7ce 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@func_where_args.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@func_where_args.typ.snap @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/func_where_args.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "level", "labelDetails": { 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 c2e08dad..2e03bc82 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,13 +3,16 @@ 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 --- [ { "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "authors", "labelDetails": { @@ -31,6 +34,10 @@ snapshot_kind: text } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "class", "labelDetails": { @@ -52,6 +59,10 @@ snapshot_kind: text } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "font", "labelDetails": { 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 d3837fa2..21348b86 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 @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/half_completion.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "font", "labelDetails": { @@ -35,6 +39,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/half_completion.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "font", "labelDetails": { 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 4a2081c0..c20c68aa 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,7 +3,6 @@ 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_star.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@import_star.typ.snap index 2d9574ee..daaaa48a 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,7 +3,6 @@ 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 5ae81334..feed5ac9 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,7 +3,6 @@ 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 350cadd8..1026b804 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 @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/keyword_ident.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "inset", "labelDetails": { 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 6fdbd388..af740005 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,7 +3,6 @@ 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@markup_chain.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@markup_chain.typ.snap index d88c835e..4fbed13b 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@markup_chain.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@markup_chain.typ.snap @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/markup_chain.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "sin", "textEdit": { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@markup_chain2.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@markup_chain2.typ.snap index 02c6f0c2..7b2ac14b 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@markup_chain2.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@markup_chain2.typ.snap @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/markup_chain2.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "sin", "textEdit": { 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 a0acfd0a..dc05628c 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,13 +3,16 @@ 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 --- [ { "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "box", "labelDetails": { @@ -31,6 +34,10 @@ snapshot_kind: text } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "box.bracket", "labelDetails": { 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 7abfa055..814deffa 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 @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/math_bold2.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "bold", "labelDetails": { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@math_call_in_call.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@math_call_in_call.typ.snap index 83fe82bd..00c8d558 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@math_call_in_call.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@math_call_in_call.typ.snap @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/math_call_in_call.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "abs", "sortText": "000", @@ -27,6 +31,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/math_call_in_call.typ } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "abs", "labelDetails": { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@math_call_in_call2.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@math_call_in_call2.typ.snap index fa7ad54c..5a2b4105 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@math_call_in_call2.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@math_call_in_call2.typ.snap @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/math_call_in_call2.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "abs", "labelDetails": { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@math_call_in_call3.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@math_call_in_call3.typ.snap index f68b7829..08b3f0be 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@math_call_in_call3.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@math_call_in_call3.typ.snap @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/math_call_in_call3.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "abs", "labelDetails": { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@math_call_in_call4.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@math_call_in_call4.typ.snap index eabfd9a1..c47cd674 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@math_call_in_call4.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@math_call_in_call4.typ.snap @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/math_call_in_call4.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "abs", "labelDetails": { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@math_dot3.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@math_dot3.typ.snap index 07de82cb..8fd495c7 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@math_dot3.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@math_dot3.typ.snap @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/math_dot3.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "abs", "labelDetails": { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@math_ident_in_call.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@math_ident_in_call.typ.snap index ccb93018..44cd76fb 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@math_ident_in_call.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@math_ident_in_call.typ.snap @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/math_ident_in_call.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "norm", "labelDetails": { diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@math_ident_in_call2.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@math_ident_in_call2.typ.snap index 4fb5a14c..bcb6c4a5 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@math_ident_in_call2.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@math_ident_in_call2.typ.snap @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/math_ident_in_call2.ty "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "norm", "labelDetails": { 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 ec726cee..8a7602aa 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 @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/set.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "raw", "labelDetails": { 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 1d12815d..fa6decc0 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 @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/set2.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "raw", "labelDetails": { 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 49d08b62..5b052e24 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,13 +3,16 @@ 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 --- [ { "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "block", "labelDetails": { 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 0c34bbcd..8b159281 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 @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/set_in_show.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "raw", "labelDetails": { 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 5a247e90..a6930135 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 @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/set_param.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "fill", "labelDetails": { 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 17300beb..f8789b88 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 @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "raw", "labelDetails": { @@ -30,6 +34,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show.typ } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "raw.where", "labelDetails": { @@ -72,6 +80,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show.typ } }, { + "command": { + "command": "editor.action.triggerSuggest", + "title": "" + }, "kind": 15, "label": "regex selector", "sortText": "140", 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 dc647c1b..618aae9b 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 @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show2.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "raw", "labelDetails": { @@ -30,6 +34,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show2.typ } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "raw.where", "labelDetails": { @@ -72,6 +80,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show2.typ } }, { + "command": { + "command": "editor.action.triggerSuggest", + "title": "" + }, "kind": 15, "label": "regex selector", "sortText": "140", 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 fd87a03e..4dac54c0 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 @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show3.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "raw", "labelDetails": { @@ -30,6 +34,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show3.typ } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "raw.where", "labelDetails": { @@ -51,6 +59,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show3.typ } }, { + "command": { + "command": "editor.action.triggerSuggest", + "title": "" + }, "kind": 15, "label": "regex selector", "sortText": "140", diff --git a/crates/tinymist-query/src/fixtures/completion/snaps/test@show_outline.typ.snap b/crates/tinymist-query/src/fixtures/completion/snaps/test@show_outline.typ.snap index 298bf19c..a009759e 100644 --- a/crates/tinymist-query/src/fixtures/completion/snaps/test@show_outline.typ.snap +++ b/crates/tinymist-query/src/fixtures/completion/snaps/test@show_outline.typ.snap @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show_outline.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "entry", "textEdit": { 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 b8cc55c9..b08ff578 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 @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show_transform.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "raw", "labelDetails": { @@ -30,6 +34,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show_transform.typ } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "raw.with", "labelDetails": { @@ -51,6 +59,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show_transform.typ } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "read", "labelDetails": { @@ -72,6 +84,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show_transform.typ } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "read.with", "labelDetails": { @@ -93,6 +109,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show_transform.typ } }, { + "command": { + "command": "editor.action.triggerSuggest", + "title": "" + }, "kind": 15, "label": "replacement", "sortText": "228", 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 aca1fabb..6bf1337c 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 @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show_transform2.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "raw", "labelDetails": { @@ -30,6 +34,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show_transform2.typ } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "raw.with", "labelDetails": { @@ -51,6 +59,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show_transform2.typ } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "read", "labelDetails": { @@ -72,6 +84,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show_transform2.typ } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "read.with", "labelDetails": { @@ -93,6 +109,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show_transform2.typ } }, { + "command": { + "command": "editor.action.triggerSuggest", + "title": "" + }, "kind": 15, "label": "replacement", "sortText": "228", 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 ef199f11..746fd562 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 @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show_transform3.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "raw", "labelDetails": { @@ -30,6 +34,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show_transform3.typ } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "raw.with", "labelDetails": { @@ -51,6 +59,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show_transform3.typ } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "read", "labelDetails": { @@ -72,6 +84,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show_transform3.typ } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "read.with", "labelDetails": { @@ -93,6 +109,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/show_transform3.typ } }, { + "command": { + "command": "editor.action.triggerSuggest", + "title": "" + }, "kind": 15, "label": "replacement", "sortText": "228", 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 d3f31d9d..ae499df3 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 @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/sig_dict.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "cap", "labelDetails": { @@ -30,6 +34,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/sig_dict.typ } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "paint", "labelDetails": { 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 59a42c96..cca08085 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 @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/completion/sig_dict_rest.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "cap", "labelDetails": { 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 19d21f41..6c85c4b4 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,7 +3,6 @@ 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 66ecccfc..0de06788 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 @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/pkgs/touying-core-slides.typ "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "config", "labelDetails": { @@ -30,6 +34,10 @@ input_file: crates/tinymist-query/src/fixtures/pkgs/touying-core-slides.typ } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "repeat", "labelDetails": { @@ -51,6 +59,10 @@ input_file: crates/tinymist-query/src/fixtures/pkgs/touying-core-slides.typ } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "repeat", "labelDetails": { 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 6bc6b439..90fd4f6c 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 @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/pkgs/touying-utils-cover-with-rec "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "fill", "labelDetails": { @@ -30,6 +34,10 @@ input_file: crates/tinymist-query/src/fixtures/pkgs/touying-utils-cover-with-rec } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "stroke", "labelDetails": { 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 a11a8f5f..7d5b59a0 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 @@ -9,6 +9,10 @@ input_file: crates/tinymist-query/src/fixtures/pkgs/touying-utils-current-headin "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "int", "sortText": "001", @@ -27,6 +31,10 @@ input_file: crates/tinymist-query/src/fixtures/pkgs/touying-utils-current-headin } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "int", "labelDetails": { 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 806fe868..11464712 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,13 +3,16 @@ 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 --- [ { "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "depth", "labelDetails": { @@ -31,6 +34,10 @@ snapshot_kind: text } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "hierachical", "labelDetails": { @@ -52,6 +59,10 @@ snapshot_kind: text } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "level", "labelDetails": { 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 3e4ce8c8..182a802a 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 @@ -45,6 +45,10 @@ input_file: crates/tinymist-query/src/fixtures/pkgs/touying-utils-markup-text.ty } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "str", "sortText": "002", @@ -63,6 +67,10 @@ input_file: crates/tinymist-query/src/fixtures/pkgs/touying-utils-markup-text.ty } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 3, "label": "str", "labelDetails": { 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 eb847c82..c4f4d153 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,13 +3,16 @@ 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 --- [ { "isIncomplete": false, "items": [ { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "body-name", "labelDetails": { @@ -31,6 +34,10 @@ snapshot_kind: text } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "labeled", "labelDetails": { @@ -52,6 +59,10 @@ snapshot_kind: text } }, { + "command": { + "command": "tinymist.triggerSuggestAndParameterHints", + "title": "" + }, "kind": 5, "label": "named", "labelDetails": { diff --git a/tests/e2e/main.rs b/tests/e2e/main.rs index ef5f1321..4b0af426 100644 --- a/tests/e2e/main.rs +++ b/tests/e2e/main.rs @@ -388,7 +388,7 @@ fn e2e() { }); let hash = replay_log(&tinymist_binary, &root.join("vscode")); - insta::assert_snapshot!(hash, @"siphash128_13:60813619e4478214e898a3d277ac031b"); + insta::assert_snapshot!(hash, @"siphash128_13:9a34d499b2c94fad67d2f700633bb9bf"); } }