Commit graph

217 commits

Author SHA1 Message Date
Myriad-Dreamin
b8d933615d
feat: add label view (#570)
* feat: add label view

* fix: typo

* fix: snapshot

* chore: final tune
2024-08-27 19:31:57 +08:00
ParaN3xus
0fa1bab9d0
feat: add compatibility for Typst's util (stable) and utils (nightly) (#573) 2024-08-27 18:38:03 +08:00
Myriad-Dreamin
9f9c710906
fix: deadlock when iterating dependencies (#568) 2024-08-27 14:49:58 +08:00
Myriad-Dreamin
c6da5590ca
fix: symbols doesn't show if pattern is not provided (#569) 2024-08-27 12:19:57 +08:00
Myriad-Dreamin
233a04af9f
feat: display all imported definitions for wildcard imports (#565) 2024-08-26 22:45:54 +08:00
OrangeX4
0438808fe8
feat: local package manager (#458)
* feat: import local packages

* feat: create and open local packages

* dev: unwrap nested block

* dev: data directory as resource

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2024-08-26 22:43:08 +08:00
Myriad-Dreamin
fbd22d2601
build: bump typst.ts to v0.5.0-rc7 (#554)
* dev: sync typ_server code

* build: bump typst.ts to v0.5.0-rc7
2024-08-25 17:43:54 +08:00
Myriad-Dreamin
68911d91cb
dev: perform simple rate limit on heavy dynamic analysis (#532)
* dev: perform simple rate limit on heavy dynamic analysis

* chore: wording

* dev: remove a todo
2024-08-15 13:04:27 +08:00
Yifan Song
1295c8754a
feat: find references for Ref and Label (#527)
* add test for `goto_definition` with label reference

* simplify test for `goto_definition` with reference

* abstract compile doc for test

* add snap for goto_definition label reference

* basic goto_reference with simple test

* basic find_reference for Ref

* fix: a bug in linked def

* Remove unwanted compile directive compile: true

* simply compile and get depended files fail for corss_file_ref_label

* update ref reference but still fail to get source from path

* fix: reuse find definition effort and handle undefined references for labels

* dev: update test case

* fix: label reference analysis

* fix: rust analyzer doing bad

* dev: update snapshot

* dev: lift common pattern

* fix: unstable snapshot

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2024-08-14 09:21:44 +08:00
Yifan Song
0fce237d57
test: add test for goto_definition for label (#510)
* add test for `goto_definition` with label reference

* simplify test for `goto_definition` with reference

* abstract compile doc for test

* add snap for goto_definition label reference
2024-08-12 17:08:34 +08:00
Myriad-Dreamin
04cdcd3ac2
feat: show target of label and con tent of metadata when hovering (#517) 2024-08-10 20:22:42 +08:00
Myriad-Dreamin
85c459d4c8
feat: support vscode tasks for exporting query and pdfpc (#490)
* feat: support vscode tasks for exporting query and pdfpc

* test: update snapshot
2024-08-05 02:14:03 +08:00
Myriad-Dreamin
56e20b2590
feat: support vscode tasks for exporting html, md, and txt (#489)
* feat: support vscode tasks for exporting html, md, and txt

* chore: styling

* docs: update

* test: update snapshot
2024-08-05 01:00:25 +08:00
Myriad-Dreamin
140299f0ce
feat: support vscode tasks for exporting pdf, svg, and png (#488)
* feat: support vscode tasks for exporting pdf, svg, and png

* fix: parse errors

* dev: update fill, gap arguments

* fix: merged props
2024-08-04 23:41:52 +08:00
Zike Xu
60f3200088
fix: apply label instead of bib title name in at completion (#485)
* fix: apply label instead of bib title name in `at` completion

* test: snapshot testing for #483

* test: add more label-related snapshot testings

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2024-08-04 23:33:02 +08:00
Myriad-Dreamin
859fb468e2
dev: a false positive of clippy (#487) 2024-08-04 22:24:09 +08:00
Myriad-Dreamin
0c9d6623b4
build: cherry pick concurrent id error (#472)
* dev: commit reference changes

* build: cherry pick concurrent id error
2024-07-28 18:06:43 +08:00
Zike Xu
7b8b3938a2
feat: support querying label with paper name in bib items (#365)
* feat: support querying label with paper name in bib items

* dev: distinguish ref and bib title

* dev: distinguish ref and bib title 2

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2024-07-25 10:14:31 +08:00
Myriad-Dreamin
1bbf800643
test: add rename testing (#448) 2024-07-22 14:29:53 +08:00
Myriad-Dreamin
103e0f3b3e
feat: support creation-timestamp configuration for exporting PDF (#439)
* feat: support creation-timestamp configuration for exporting PDF

* fix: respect config
2024-07-20 06:58:27 +08:00
Myriad-Dreamin
8413c66c51
fix: wrong checked prefix on completing strings (#422) 2024-07-17 15:34:33 +08:00
Myriad-Dreamin
6a142dca01
dev: refactor tasks (#411)
* dev: improve export task

* aba aba

* dev: less indent

* dev: reorder

* dev: reduce some clone

* dev: improve format task

* fix: documentation links

* dev: doesn't rely on hash entry state
2024-07-14 17:40:01 +08:00
Myriad-Dreamin
4acc39b237
build: rearrange dependencies (#399) 2024-07-11 11:03:55 +08:00
Myriad-Dreamin
96c8e08b50
feat: render example code in typst docs as typst syntax (#397)
* feat: render example code in typst docs as typst syntax

* fix: snapshot
2024-07-11 09:03:08 +08:00
Myriad-Dreamin
653789c1e6
fix: cyclic loop detection in cross-module def-use relation checking (#396) 2024-07-10 12:01:22 +08:00
Myriad-Dreamin
7cf100ec96
dev: remove threaded_receive uses (#391) 2024-07-09 12:37:33 +08:00
Myriad-Dreamin
692b87eeb8
dev: introduce task concept and rewrite export actor as export task (#383)
* dev: introduce task concept and rewrite export actor as export task

* dev: delete useless code

* fix: export mode
2024-07-08 19:18:52 +08:00
Myriad-Dreamin
db314c2ea9
docs: write some developer guides (#372) 2024-07-07 11:26:35 +08:00
Myriad-Dreamin
4c949e8816
feat: fully concurrent lsp (#363)
* fix: dep hash

* dev: exp concurrent hash

* feat: fully concurrent lsp

* dev: disable concurrent compilation
2024-07-02 14:01:42 +08:00
Myriad-Dreamin
ce8baa80b2
fix: completion in string context a bit (#351)
* fix: completion in string context a bit

* fix: side effect snapshot
2024-06-27 18:30:34 +08:00
Myriad-Dreamin
6967dc5a22
fix: bad early return in param_completions (#350)
* fix: bad early return in param_completions

* dev: update snapshot

* dev: filter result
2024-06-27 16:31:50 +08:00
Myriad-Dreamin
0a1c625397
fix: avoid duplicated method completion (#349) 2024-06-27 16:00:08 +08:00
Myriad-Dreamin
a3724bc87f
feat: remove cast completion (#348)
* feat: remove cast completion

* fix: update snapshot
2024-06-27 15:42:40 +08:00
Myriad-Dreamin
6fcad1c1c7
feat: prepare for parallelizing lsp requests (#342)
* feat: migrate steal_sync to snapshot_sync

* feat: correctly make world/analysis snapshot

* very rayon

* dev: recover async lsp request

* gg

* dev: pin

* fix: make server stable

* dev: disable concurrent server by default

* dev: very sync
2024-06-26 10:37:57 +08:00
Myriad-Dreamin
5e4e1e9877
refactor: pick state changes (#338)
* dev: make clippy happy

* refactor: pick state changes

---------

Co-authored-by: QuarticCat <QuarticCat@pm.me>
2024-06-23 12:31:03 +08:00
Myriad-Dreamin
7d65829ed7
refactor: combine typst-preview and tinymist compiler (#337)
* refactor: combine typst-preview and tinymist compiler

* dev: update link

* fix: bad changes

* dev: sync snapshot compiler
2024-06-22 15:06:42 +08:00
Myriad-Dreamin
a1bd1c6698
dev: accurate warn on out-of-bound conversion (#329) 2024-06-17 11:06:10 +08:00
Myriad-Dreamin
95a68d2559
feat: implements experimental/onEnter (#328)
* feat: implements `experimental/onEnter`

* docs: update readme

* dev: update snapshot

* dev: allow configuration
2024-06-16 17:33:46 +08:00
Myriad-Dreamin
8d753d8c56
fix: handle the conversion of offset at the EOF (#325)
* fix: handle the conversion of offset at the EOF

* fix: clippy error

* fix: snapshot
2024-06-15 03:37:39 +08:00
Lars Wrenger
257a6bcb86
feat: generate names for destructuring closure params (#319) 2024-05-31 12:24:08 +08:00
Myriad-Dreamin
82e75f362a
feat: highlights all break points for that loop context (#317)
* feat: highlights all break points for that loop or block context

* docs: update readme

* dev: remove a debug logging

* QAQ
2024-05-26 17:44:32 +08:00
Myriad-Dreamin
0e853363dd
feat: complete CSL paths (#310)
* feat: complete csl paths

* dev: update snapshot
2024-05-23 17:49:26 +08:00
Myriad-Dreamin
247c6d5848
feat: check and move the exactly single punctuation after the math equation to refactor (#306) 2024-05-19 16:17:58 +08:00
Myriad-Dreamin
8f5725f51a
feat: complete both open and closed labels (#302)
* feat: complete both open and closed labels

* QAQ
2024-05-18 12:36:42 +08:00
Myriad-Dreamin
071d9072e1
build: bump typst to 0.11.1 (#301) 2024-05-18 12:17:24 +08:00
Myriad-Dreamin
71591b1f08
dev: remove some debug logging (#300) 2024-05-18 12:12:40 +08:00
Myriad-Dreamin
937f6f042f
fix: search newline character in utf-8 bytes sequence (#299) 2024-05-18 12:12:06 +08:00
Myriad-Dreamin
7336c61453
dev: simplify a bit (#296) 2024-05-16 11:59:23 +08:00
Myriad-Dreamin
9835ffe6ab
docs: add documents to type system (#295)
* docs: simplify a bit

* docs: add documents to type system code

* docs: update

* refactor: rename
2024-05-16 11:52:41 +08:00
Myriad-Dreamin
c182c5fadc
chore: move typst-specific types (#294)
* chore: move typst-specific types

* QAQ
2024-05-16 00:30:32 +08:00