mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-24 05:05:00 +00:00
feat: don't trigger parameter hints when skipping parameters (#1557)
* build: record command in completion snapshots * feat: don't trigger parameter hints when skipping parameters * test: update snapshot
This commit is contained in:
parent
27c31c7238
commit
92e9f797de
63 changed files with 371 additions and 20 deletions
|
@ -60,6 +60,7 @@ impl CompletionPair<'_, '_, '_> {
|
|||
self.push_completion(Completion {
|
||||
apply: Some(eco_format!("{}()${{}}", name)),
|
||||
label: name,
|
||||
command: None,
|
||||
..base
|
||||
});
|
||||
} else {
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
---
|
||||
[
|
||||
{
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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
|
||||
---
|
||||
[
|
||||
{
|
||||
|
|
|
@ -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
|
||||
---
|
||||
[
|
||||
{
|
||||
|
|
|
@ -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
|
||||
---
|
||||
[
|
||||
{
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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
|
||||
---
|
||||
[
|
||||
{
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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
|
||||
---
|
||||
[
|
||||
{
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue