Commit graph

944 commits

Author SHA1 Message Date
Myriad-Dreamin
644494b1dc
feat: rename links in files (#869) 2024-11-20 16:55:48 +08:00
Myriad-Dreamin
6f4b916598
feat: provide both bracket and paren completion (#867)
* feat: provide both bracket and paren completion

* test: update snapshot
2024-11-20 16:55:34 +08:00
Myriad-Dreamin
9885c45fb2
dev: cache link expressions (#866) 2024-11-20 16:24:12 +08:00
Myriad-Dreamin
19a83bc942
feat: reorder snippet completion items (#865) 2024-11-20 16:19:45 +08:00
Myriad-Dreamin
18c6cdd9d4
feat: add search index to quickly filter unrelated files (#864) 2024-11-20 16:14:32 +08:00
Myriad-Dreamin
06773da8af
feat: pass completion configs via context (#863) 2024-11-20 16:06:28 +08:00
Myriad-Dreamin
ba2f1bcfb2
fix: refine some scope condition for type completion (#862) 2024-11-20 16:06:15 +08:00
Myriad-Dreamin
d8ee287b77
feat: replace rule completion with scoped type completion (#861)
* feat: replace rule completion with scoped type completion

* test: update snapshot
2024-11-20 15:49:58 +08:00
Yifan Song
e2c8418c35
fix: use correct base directory for path completion (#854)
* fix wrong diff_path

* refactor: simplify no base.parent()
2024-11-20 11:14:29 +08:00
Myriad-Dreamin
6c342eb23e
dev: don't complete bracket in math context (#860) 2024-11-20 09:20:20 +08:00
Myriad-Dreamin
698d86f9b0
dev: check previous syntax first for show/set syntax (#859) 2024-11-20 02:43:10 +08:00
Myriad-Dreamin
6f8d9750d7
feat: improve and filter completion in show/set syntax (#858) 2024-11-20 02:15:53 +08:00
Myriad-Dreamin
37ea3b8d3d
dev: filter settable parameter if is in set context (#857) 2024-11-20 01:47:56 +08:00
Myriad-Dreamin
ab3716d866
feat: postfix completion on values (#850)
* feat: postfix completion on values

* dev: delete an ovo-log
2024-11-19 13:36:14 +08:00
Myriad-Dreamin
d0b40dbfa6
feat: provide UFCS-style completion on content types (#849)
* feat: UFCS completion on content types

* dev: cleanup panics

* feat: add configuration about postfix completion

* test: update snapshot

* fix: lazily determine default values
2024-11-19 12:48:04 +08:00
Myriad-Dreamin
a1a15a6795
feat: complete bracket if the function accepts an only content arg (#848)
* feat: complete bracket if the function will accept an only content argument

* test: update snapshot
2024-11-19 11:04:27 +08:00
Myriad-Dreamin
ccd3cea08c
feat: improve caches of calls and module exports type checking (#847)
* dev: optimize log on critical paths

* dev: optimize `check_module_item`

* dev: cache source queries

* dev: cache call checking

* dev: remove source cache
2024-11-18 17:20:05 +08:00
Myriad-Dreamin
256dd3b3a5
feat: replace param_completions with post type checking (#846)
* feat: replace param_completions with post type checking

* dev: dirty code and snapshot
2024-11-18 17:01:28 +08:00
Myriad-Dreamin
90626f0a5f
test: add more completion tests (#845) 2024-11-18 13:12:57 +08:00
Myriad-Dreamin
8a15eb9d66
dev: simplify let type (#844)
* fix: simplify let type

* test: update snapshot
2024-11-18 13:09:37 +08:00
Myriad-Dreamin
a9800bc802
dev: introduce TypeType and Module type (#843)
* dev: introduce `TypeType` and `Module` type

g

* test: update snapshot

* test: update snapshot
2024-11-18 12:52:27 +08:00
Myriad-Dreamin
c551950a85
feat: check union type annotation (#842) 2024-11-18 11:44:28 +08:00
Myriad-Dreamin
a2e7e4c88c
fix: bugs in post checking node and call (#841)
* fix: bugs in post checking node and call

* test: update snapshot

* test: update snapshot
2024-11-18 11:44:13 +08:00
Myriad-Dreamin
378d412cf7
fix: check signature of partially specialized functions (#840) 2024-11-18 11:10:12 +08:00
Myriad-Dreamin
78a4117ec6
fix: open exported files using rust's open crate (#838)
* fix: open exported files using rust's `open` crate

* feat: explorer as file opener on windows

* dev: link related issue
2024-11-17 22:08:13 +08:00
Myriad-Dreamin
263458a80b
feat: take configuration items from tinymist section (#835)
* feat: take configuration items from `tinymist` section

* docs: update configuration guide in emacs
2024-11-16 17:32:11 +08:00
Myriad-Dreamin
8e36f25cf2
feat: add package related arguments to typstExtraArgs (#833) 2024-11-16 17:16:56 +08:00
Myriad-Dreamin
d2afe78fee
feat: use typst-kit's package functions (#832) 2024-11-16 16:27:17 +08:00
Myriad-Dreamin
0a8010fe53
dev: update header description of snapshots (#831)
* dev: update header description of snapshots

* dev: update header description of snapshots
2024-11-16 14:41:45 +08:00
Myriad-Dreamin
57c6c7a4f6
dev: replace FieldTy with ParamTy (#830) 2024-11-16 13:50:50 +08:00
MrLego8_9
d618430f6e
fix: statically register formatting and semantic tokens capabilities (#814)
* fix: statically register formatting and semantic tokens capabilities

* fix: inline variables and remove comment

* dev: inline variables

* fix: not working on vscode

* test: update snapshot

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2024-11-15 22:28:51 +08:00
Myriad-Dreamin
5ce0a8feba
fix: enclose fallback docs in code block (#828) 2024-11-15 20:59:26 +08:00
Myriad-Dreamin
da1e68ad1f
feat: conditionally render code in docs (#824)
* feat: conditionally render code in docs

* fix: fmt

* fix: config
2024-11-15 13:40:30 +08:00
Myriad-Dreamin
8b3a0e986a
feat: fully support onEnter edits inside comments (#823)
- select with range
- multiple cursor
2024-11-14 22:21:14 +08:00
Myriad-Dreamin
a2eb405430
feat: goto field definition of concrete values (#822) 2024-11-14 22:20:59 +08:00
Myriad-Dreamin
f18ed7d1b2
fix: query underlying file type when listing packages (#821) 2024-11-14 21:22:36 +08:00
Myriad-Dreamin
4581d10703
feat: evict analysis caches before exact min revision (#819) 2024-11-14 21:22:05 +08:00
Myriad-Dreamin
b844240212
dev: clean up log to print (#818) 2024-11-14 21:21:47 +08:00
Myriad-Dreamin
dd2a22a67d
dev: use more safe retainer for gc (#817) 2024-11-14 21:21:27 +08:00
Myriad-Dreamin
bbcca41909
dev: add time limit to lsp replay command (#816) 2024-11-14 21:21:17 +08:00
Myriad-Dreamin
1c08256e9c
fix: describe dictionary object by correct name (#815) 2024-11-14 21:21:08 +08:00
Myriad-Dreamin
808da99092
feat: improve style of hover param docs (#813)
* feat: improve style of hover param docs

* feat: give value example in parameter docs
2024-11-14 20:49:14 +08:00
Myriad-Dreamin
c128f633d4
feat: merge func and variable docs parser (#812)
* feat: merge func and variable docs parser

* test: update snapshot
2024-11-14 20:35:21 +08:00
Myriad-Dreamin
7ab125bbc2
fix: ensure expr and type enum are not too big (#811) 2024-11-14 11:47:34 +08:00
Myriad-Dreamin
3469e215eb
dev: refactor semantic_tokens crate (#809)
* dev: move semantic_tokens crate

* dev: remove bad comment
2024-11-14 02:39:26 +08:00
Myriad-Dreamin
fc3099a27c
feat: lock and snapshot {analysis,token} caches on main thread (#806)
* refactor: hide lock in `query_snapshot`

* refactor: hide lock in `query_snapshot`

* test: update snapshot

* dev: update comments

* dev: update snapshot
2024-11-14 01:40:27 +08:00
Myriad-Dreamin
61f2273e2e
dev: convert diagnostics without analysis snapshot (#805) 2024-11-13 23:51:48 +08:00
Myriad-Dreamin
cadc70ceec
dev: use fixtures/playground if name is not provided (#804) 2024-11-13 23:51:39 +08:00
Myriad-Dreamin
41868aa0f4
fix: strip out the line containing the return type (#803) 2024-11-13 23:51:29 +08:00
Myriad-Dreamin
58b8015386
dev: refactor semantic token apis (#802) 2024-11-13 23:51:20 +08:00