Commit graph

881 commits

Author SHA1 Message Date
Myriad-Dreamin
db20807153
build: bump version to 0.12.14 (#1066) 2024-12-25 21:05:07 +08:00
Myriad-Dreamin
c66615934c
docs: add dev guide of tinymist-query (#1064) 2024-12-25 12:20:09 +08:00
Myriad-Dreamin
dd67518248
chore: fix naming of universal platform (#1063) 2024-12-24 12:30:16 +08:00
Myriad-Dreamin
7e3c0b2e18
dev: improve types when accessing element fields (#1062)
* dev: improve types when accessing element fields

* test: update snapshot
2024-12-24 10:34:16 +08:00
Myriad-Dreamin
223a142931
dev: generate extension installation table (#1061)
* dev: generate extension installation table

* dev: collapse style
2024-12-24 09:42:36 +08:00
Myriad-Dreamin
e5f88431dd
build: bump version to 0.12.14-rc1 (#1060)
* docs: update changelog

* docs: update changelog

* build: bump version to 0.12.14-rc1

* dev: exclude typlite from dist publish
2024-12-23 21:15:15 +08:00
Myriad-Dreamin
8f88f248a9
ci: build universe target vscode extension for other platforms (#1059)
* ci: build universe target vscode extension for other platforms

* chore: add comments
2024-12-23 20:21:24 +08:00
Yifan Song
7fdfca9201
docs: doc preview dev (#1058)
* doc: doc preview

* fix to uncomment

* docs: improve a bit

* docs: improve a little bit

* chore: add link to root cargo.toml

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2024-12-23 19:08:43 +08:00
Myriad-Dreamin
a5133b0146
build: bump typst-ansi-hl to v0.3.0 (#1057) 2024-12-23 16:22:50 +08:00
Myriad-Dreamin
0078874088
build: bump typstfmt to v0.12.1 (#1056)
* build: bump typstfmt to v0.12.0

* build: bump typstfmt to 0.12.1
2024-12-23 14:45:07 +08:00
Myriad-Dreamin
fde578c7a6
refactor: construct formatting configuration earlier (#1048)
* dev: construct configuration earlier

* dev: rename

* test: recover `formatter_print_width` test

* test: add `set_width` test
2024-12-23 14:03:53 +08:00
Myriad-Dreamin
249de8250f
fix: words in typst document should not contain dollars (#1054) 2024-12-23 13:46:05 +08:00
Myriad-Dreamin
b7f44e882a
test: add more tests about completing in middle of strings/labels (#1052) 2024-12-22 20:15:23 +08:00
Myriad-Dreamin
8a88b50cb1
fix: adjust offset from start when completing labels (#1051) 2024-12-22 19:19:01 +08:00
Myriad-Dreamin
362f625949
feat: complete fields by type (#1050)
* feat: complete fields by type

* test: update snapshot

* dev: store documentation

* test: check content type

* test: update snapshot

* test: update snapshot
2024-12-22 15:27:03 +08:00
Wenzhuo Liu
1cf20585f4
build: bump typstyle to v0.12.13 (#1047)
* chore: bump typstyle to v0.12.13

* dev: code style

* dev: code style cont

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2024-12-22 15:11:00 +08:00
Myriad-Dreamin
497a1e0aea
refactor: simplify and document lsp_typst_boundary crate (#1049) 2024-12-22 11:21:04 +08:00
Myriad-Dreamin
5db1cf984a
feat: infer types of show rule transformers (#1045)
* feat: infer types of show rule transformers

* test: add test for show rules

* feat: more selector cases

* test: update snapshot
2024-12-22 10:42:07 +08:00
Myriad-Dreamin
458695b3a0
feat: check input constraints of simple functions (#1042) 2024-12-21 17:57:42 +08:00
Myriad-Dreamin
a814c7a63d
dev: move field_access_completions (#1041) 2024-12-21 13:51:09 +08:00
Myriad-Dreamin
a4de68a1ca
fix: determine name_started in sig constructors (#1038)
* fix: name_started in sig constructors

* fix: test it
2024-12-21 13:50:37 +08:00
Myriad-Dreamin
97541d54f8
fix: identify closure as regular surrounding syntax (#1040) 2024-12-21 13:23:36 +08:00
Myriad-Dreamin
1c157adadf
fix: don't check context of field accesses' target (#1039) 2024-12-21 13:23:21 +08:00
Myriad-Dreamin
6d36195964
dev: less sync and clone (#1037) 2024-12-21 12:52:36 +08:00
Yifan Song
d9cec6e89b
feat: comment complete for tidy style doc comment (#1029)
* feat: basic dot comment completion

* fix: add parameter desc placeholders

* add todo

* fix: spread repr

* update snapshot hash

* fix: handle pattern single ident

* refactor: remove a useless log

* update e2e hash

* fix: rename Tidy Doc into Document function

* fix: get rid of additional edit with trim prefix

* fix: strict doc comment condition
2024-12-21 10:42:55 +08:00
Myriad-Dreamin
1eb63870fd
refactor: final touch and complete matchers (#1036)
* perf: minor optimize matches to dot access

* refactor: final touch and complete matchers

* dev: change name back
2024-12-20 20:56:45 +08:00
Myriad-Dreamin
980571ad61
feat: use field access classifier for completion (#1035)
* feat: use field access classifier for completion

* dev: more cases about dot access
2024-12-20 19:15:59 +08:00
Myriad-Dreamin
39243ba626
feat: classify field accesses for ide functions (#1034)
* feat: classify field accesses for ide functions

* test: update snapshot
2024-12-20 18:47:44 +08:00
Myriad-Dreamin
7dbaca8851
refactor: update names and documentation of matchers (cont.) (#1033) 2024-12-20 18:35:36 +08:00
Myriad-Dreamin
2ba650a0fd
dev: make compiler task async (#1032)
* dev: make compiler task async

* dev: reduce some clones
2024-12-20 16:48:45 +08:00
Myriad-Dreamin
de8e45a539
refactor: rename local variables (cont.) (#1026) 2024-12-18 19:48:34 +08:00
Myriad-Dreamin
9017e05afa
refactor: merge typlite bin and lib crate (#1024) 2024-12-18 19:24:44 +08:00
Myriad-Dreamin
be1d659719
refactor: rename local variables and some types (#1023)
* fix: naming

* refactor: rename local variables and some types
2024-12-18 19:23:31 +08:00
Myriad-Dreamin
ad0c1e8aca
refactor: improving names of matched structs and documenting matchers (#1022) 2024-12-18 16:35:15 +08:00
Myriad-Dreamin
902bd17cba
test: add tests about math dot completion (#1021) 2024-12-18 15:53:54 +08:00
Myriad-Dreamin
0f512dd09e
fix: forbid ident code completion in field access (#1020)
* feat: forbid ident code completion in field access

* test: update snapshot
2024-12-18 15:53:34 +08:00
Myriad-Dreamin
142138297e
fix: complete field access even if its parent is a closure (#1019)
* dev: complete field access even if it's parent is a closure

* test: update snapshot
2024-12-18 15:06:57 +08:00
Myriad-Dreamin
e116b0b645
test: cover cases about completing after the dot operator (#1017)
* test: add field tests

* dev: add a snapshot
2024-12-18 13:12:55 +08:00
Myriad-Dreamin
c0c6503f17
test: cases about completing field access in function call (#958) 2024-12-18 11:59:36 +08:00
Yifan Song
5f8a11bdc0
fix: resolve #986 avoid wrong offset on Neovim for some postfix snippets (#966)
* fix: avoid additional text_edit

* unify redundant to_lsp_snippet

* fix: remove redundant default_postfix_snippet

* fix: with single complete

* clean import

* chore: revert move to_lsp_snippet
2024-12-18 11:27:52 +08:00
Myriad-Dreamin
b1bb3196b7
ci: build binaries for riscv64-linux-musl, loongarch64-linux-{musl,gnu} (#1014)
* dev: patch cargo-dist

* dev: patch cargo-dist 2
2024-12-17 15:53:34 +08:00
Myriad-Dreamin
83fe1e7987
ci: generate binaries using cargo-dist (#1009)
* ci: generate binaries using `cargo-dist`

* chore: clean script

* fix: checking

* dev: update dist workspace

* dev: fix script

* docs: move announcement
2024-12-17 01:55:54 +08:00
Myriad-Dreamin
df03b36880
build: remove native-tls from dependencies (#1012) 2024-12-17 01:52:53 +08:00
Myriad-Dreamin
d3269f521a
build: bump version to 0.12.12 (#1013) 2024-12-17 01:45:02 +08:00
Myriad-Dreamin
80d9106520
build: bump tinymist to 0.12.12-rc3 (#1011) 2024-12-17 00:24:16 +08:00
Wenzhuo Liu
0a42b8728f
build: bump typstyle to v0.12.12 (#1010) 2024-12-17 00:10:35 +08:00
Myriad-Dreamin
9d93e3bb27
ci: check that the specified msrv is tested correctly (#1008) 2024-12-16 22:34:11 +08:00
Myriad-Dreamin
3cdd9f2508
build: bump version to 0.12.12-rc2 (#1005)
* build: bump version to 0.12.12-rc2

* build: upload crates

* docs: edit changelog
2024-12-15 18:49:50 +08:00
Myriad-Dreamin
2712654457
fix: account for preview jump bugs introduced in #997 (#1004)
* fix: many bugs in #997

* fix: definition of x, y
2024-12-15 16:35:41 +08:00
Myriad-Dreamin
0a97de3cf5
feat: check affiliated column for a hidden typst source document (#1003) 2024-12-15 16:06:24 +08:00