-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add tests for inlay hints (#8)
- Loading branch information
1 parent
9823dfa
commit 47a9b88
Showing
6 changed files
with
64 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#text("") |
1 change: 1 addition & 0 deletions
1
crates/tinymist-query/src/fixtures/inlay_hints/imcomplete-expression.typ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#context |
15 changes: 15 additions & 0 deletions
15
crates/tinymist-query/src/fixtures/inlay_hints/[email protected]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
source: crates/tinymist-query/src/inlay_hint.rs | ||
expression: "JsonRepr::new_redacted(result, &REDACT_LOC)" | ||
input_file: crates/tinymist-query/src/fixtures/inlay_hints/base.typ | ||
--- | ||
[ | ||
{ | ||
"kind": 2, | ||
"label": ": body", | ||
"position": { | ||
"character": 8, | ||
"line": 0 | ||
} | ||
} | ||
] |
6 changes: 6 additions & 0 deletions
6
crates/tinymist-query/src/fixtures/inlay_hints/[email protected]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
source: crates/tinymist-query/src/inlay_hint.rs | ||
expression: "JsonRepr::new_redacted(result, &REDACT_LOC)" | ||
input_file: crates/tinymist-query/src/fixtures/inlay_hints/imcomplete-expression.typ | ||
--- | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters