mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-03 17:58:17 +00:00
test: add tests about math dot completion (#1021)
This commit is contained in:
parent
0f512dd09e
commit
902bd17cba
2 changed files with 38 additions and 0 deletions
|
@ -0,0 +1,4 @@
|
|||
/// contains: b
|
||||
|
||||
// @typstyle off
|
||||
$ arrow./* range 0..1 */ $
|
|
@ -0,0 +1,34 @@
|
|||
---
|
||||
source: crates/tinymist-query/src/completion.rs
|
||||
description: Completion on / (42..43)
|
||||
expression: "JsonRepr::new_pure(results)"
|
||||
input_file: crates/tinymist-query/src/fixtures/completion/field_math_dot.typ
|
||||
snapshot_kind: text
|
||||
---
|
||||
[
|
||||
{
|
||||
"isIncomplete": false,
|
||||
"items": [
|
||||
{
|
||||
"kind": 5,
|
||||
"label": "b",
|
||||
"labelDetails": {
|
||||
"description": "↓"
|
||||
},
|
||||
"textEdit": {
|
||||
"newText": "b",
|
||||
"range": {
|
||||
"end": {
|
||||
"character": 8,
|
||||
"line": 3
|
||||
},
|
||||
"start": {
|
||||
"character": 8,
|
||||
"line": 3
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue