Commit graph

944 commits

Author SHA1 Message Date
Myriad-Dreamin
fb528ec70a
refactor: move completion code in request into worker (#1076)
* refactor: matcher tests

* refactor: move completion code in request into worker

* dev: move one use
2024-12-27 13:59:04 +08:00
Myriad-Dreamin
9c8d1461b7
refactor: merge completion stuff (#1074)
* dev: move two syntax completion to ext

* feat: move mode completion in ext.rs

* dev: clean code

* refactor: merge completion stuff

* test: update snapshot
2024-12-27 13:00:38 +08:00
Myriad-Dreamin
1059ea7e66
fix: complete raw language again (#1073) 2024-12-26 17:00:21 +08:00
Myriad-Dreamin
38941b8169
fix: complete body of let/closure in markup mode (#1072) 2024-12-26 16:47:57 +08:00
Myriad-Dreamin
1dcb034b91
fix: complete hash expression in math mode (#1071)
* fix: complete hash expression in math mode

* fix: `interpret_mode_at_kind` on hash
2024-12-26 16:19:46 +08:00
Myriad-Dreamin
98a0e60b20
fix: complete context expression in code mode (#1070) 2024-12-26 16:05:20 +08:00
Myriad-Dreamin
53b19dda24
test: add more completion tests (#1069)
* test: add more completion tests

* test: add more completion tests

* test: add more tests

* test: update snapshot
2024-12-26 15:54:02 +08:00
Myriad-Dreamin
c66615934c
docs: add dev guide of tinymist-query (#1064) 2024-12-25 12:20:09 +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
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
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
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
df03b36880
build: remove native-tls from dependencies (#1012) 2024-12-17 01:52:53 +08:00
Wenzhuo Liu
0a42b8728f
build: bump typstyle to v0.12.12 (#1010) 2024-12-17 00:10:35 +08:00
Yifan Song
c54d1d31cb
feat: jump to neareast position in preview from cursor (#997)
* return multiple positions from jump_to_cursor

* format

* remove an alert

* add a simple doc for jump test

* feat: resolve currentPosition

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2024-12-14 16:49:23 +01:00
Yifan Song
b19810ea6f
feat: add in postfix snippet (#963) 2024-12-12 15:01:55 +08:00
Myriad-Dreamin
382d73ddeb
refactor: remove inlay_hint function for simplicity (#992)
* refactor: remove `inlay_hint` function for simplicity

* test: update snapshots of inlay hints

* test: update snapshot
2024-12-12 14:21:04 +08:00
Myriad-Dreamin
ca3c29fc2d
docs: rename link_exprs crate to link_expr (#991) 2024-12-12 13:48:04 +08:00
Myriad-Dreamin
57e209f7e0
docs: split and documenting document highlight worker (#989) 2024-12-12 13:26:01 +08:00
Myriad-Dreamin
5747dd6ba6
feat: explicitly trigger suggest after completed import/include snippets (#984)
* feat: explicitly trigger suggest on completing import/include snippets

* fix: comment

* test: update snapshot
2024-12-11 14:40:57 +08:00
Myriad-Dreamin
a86f7a494a
perf: prefetch package index for completion (#983) 2024-12-11 14:05:52 +08:00