-
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.
Loading status checks…
feat: implement inlay hint configuration (#37)
* fix: unstable order of reference results * feat: inlay hint configuration * dev: test inlay hint on `lr`
- v0.12.19-rc1
- v0.12.18
- v0.12.18-rc2
- v0.12.18-rc1
- v0.12.16
- v0.12.16-rc1
- v0.12.14
- v0.12.14-rc1
- v0.12.12
- v0.12.12-rc2
- v0.12.10
- v0.12.10-rc1
- v0.12.8
- v0.12.6
- v0.12.6-rc3
- v0.12.6-rc1
- v0.12.4
- v0.12.4-rc3
- v0.12.4-rc2
- v0.12.4-rc1
- v0.12.2
- v0.12.2-rc1
- v0.12.0
- v0.12.0-rc1
- v0.11.34-rc1
- v0.11.33
- v0.11.33-3
- v0.11.32
- v0.11.31
- v0.11.31-2
- v0.11.29
- v0.11.28
- v0.11.28-4
- v0.11.28-2
- v0.11.27
- v0.11.25
- v0.11.23
- v0.11.23-rc1
- v0.11.22
- v0.11.20
- v0.11.20-rc1
- v0.11.19
- v0.11.19-rc1
- v0.11.18
- v0.11.18-rc1
- v0.11.17
- v0.11.17-rc1
- v0.11.16
- v0.11.16-rc1
- v0.11.15
- v0.11.15-rc3
- v0.11.15-rc2
- v0.11.14
- v0.11.13
- v0.11.12
- v0.11.11
- v0.11.10
- v0.11.9
- v0.11.8
- v0.11.7
- v0.11.6
- v0.11.5
- v0.11.4
- v0.11.3
- v0.11.2
- v0.11.1
- v0.11.1-rc2
- v0.11.1-rc1
- v0.11.0
- v0.10.3
- 0.12.12-rc3
- 0.11.22-rc1
- 0.11.4-qc-typos
1 parent
dbd1726
commit 61be2f7
Showing
17 changed files
with
216 additions
and
18 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
#text("") | ||
#let f(x, y) = x + y | ||
#f(1, 2) |
2 changes: 2 additions & 0 deletions
2
crates/tinymist-query/src/fixtures/inlay_hints/math_markup_mod.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,2 @@ | ||
#let f(x, y) = [#(x + y)]; | ||
$lr(#f(1, 2))$ |
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 @@ | ||
$lr(1, 2, 3)$ |
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 @@ | ||
#table(align: left)[] |
3 changes: 3 additions & 0 deletions
3
crates/tinymist-query/src/fixtures/inlay_hints/named_or_pos.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,3 @@ | ||
#text("") | ||
#text(red, "") | ||
#text(18pt, red, "") |
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
File renamed without changes.
23 changes: 23 additions & 0 deletions
23
crates/tinymist-query/src/fixtures/inlay_hints/snaps/smart@math_markup_mod.typ.snap
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,23 @@ | ||
--- | ||
source: crates/tinymist-query/src/inlay_hint.rs | ||
expression: "JsonRepr::new_redacted(result, &REDACT_LOC)" | ||
input_file: crates/tinymist-query/src/fixtures/inlay_hints/math_markup_mod.typ | ||
--- | ||
[ | ||
{ | ||
"kind": 2, | ||
"label": ": x", | ||
"position": { | ||
"character": 8, | ||
"line": 1 | ||
} | ||
}, | ||
{ | ||
"kind": 2, | ||
"label": ": y", | ||
"position": { | ||
"character": 11, | ||
"line": 1 | ||
} | ||
} | ||
] |
6 changes: 6 additions & 0 deletions
6
crates/tinymist-query/src/fixtures/inlay_hints/snaps/smart@math_mod.typ.snap
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/math_mod.typ | ||
--- | ||
[] |
6 changes: 6 additions & 0 deletions
6
crates/tinymist-query/src/fixtures/inlay_hints/snaps/smart@named.typ.snap
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/named.typ | ||
--- | ||
[] |
6 changes: 6 additions & 0 deletions
6
crates/tinymist-query/src/fixtures/inlay_hints/snaps/smart@named_or_pos.typ.snap
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/named_or_pos.typ | ||
--- | ||
[] |
6 changes: 6 additions & 0 deletions
6
crates/tinymist-query/src/fixtures/inlay_hints/snaps/smart@unique_positional.typ.snap
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/unique_positional.typ | ||
--- | ||
[] |
2 changes: 2 additions & 0 deletions
2
crates/tinymist-query/src/fixtures/inlay_hints/unique_positional.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,2 @@ | ||
#text("") | ||
#align(left)[] |
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
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