Commit graph

525 commits

Author SHA1 Message Date
Myriad-Dreamin
f3ccb4a186
build: bump version to 0.11.22 (#611)
* build: bump version to 0.11.22

* fix: bugs in package view

* feat: check release version for nightly releases
2024-09-28 07:38:25 +08:00
Myriad-Dreamin
114955194f
build: bump version to 0.11.22-rc1 (#607)
* docs: update changelog

* docs: update changelog

* build: bump version to 0.11.22-rc1

* fix: reqwest dep
2024-09-20 15:42:50 +08:00
Derived Cat
67bc986e01
feat: show first occurrence locations for used fonts (#598)
* feat: show first occurrence locations for used fonts

add source typst file path

clean up

rename variables

* Fix a logic error in `work_text`

Corrected a logic flaw that caused incorrect results of `uses`

* add span_offset

* add `first_occur_column`

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2024-09-20 14:11:48 +08:00
Myriad-Dreamin
dc6a4482c1
fix: ignore invalid tokens in typst's syntax tree (#605) 2024-09-20 13:59:15 +08:00
Myriad-Dreamin
fcde0efb22
fix: deduplicate value completion correctly (#604) 2024-09-20 13:14:07 +08:00
Myriad-Dreamin
6ce6bb8018
fix: refine label types to remove hacking citation filter (#603)
* test: check types

* test: confirm bug

* fix: refine label types

* dev: update snapshot

* dev: update snapshot
2024-09-20 12:30:36 +08:00
Myriad-Dreamin
58fea291ad
fix: ignore system fonts correctly (#597) 2024-09-12 21:46:35 +08:00
Myriad-Dreamin
78f3893185
feat: provide package view and local documentation (#596)
* feat: move featured components

* feat: provide package view and local documentation

* stage

* fix: compile error by merged commits
2024-09-12 21:17:07 +08:00
ricOC3
b06447ffe2
feat: support for custom certificate configuration (#592)
* feat: add certificate option

* refactor: move SystemCompilerFeat into tinymist-world

* feat: move HttpRegistry as HttpsRegistry into tinymist-world

* feat: add reading pem file

* feat: update LspUniverseBuilder::build

* feat: fill missing argument of LspUniverseBuilder::build

* chore: update lock file for additional dependencies

* chore:  refine comment for certification

* refactor: simplify by new constructor

* refactor: sort arguments for threaded_http

* refactor: split https.rs from lib.rs in tinymist-world
2024-09-12 09:02:54 +08:00
ParaN3xus
ce107efc7e
refactor: add compatibility for typst_syntax::LinkedNode.leaf_at (#582)
* refactor: add compatibility for `typst_syntax::LinkedNode.leaf_at`

* feat: `LinkedNodeExt` trait with `leaf_at_compat`
2024-09-08 22:10:01 +08:00
Myriad-Dreamin
ffa12bc2c9
fix: create function scopes for nest symbols (#589)
* dev: nest symbols into of functions

* dev: update snapshot
2024-09-07 09:30:54 +08:00
Myriad-Dreamin
50fadf453f
fix: process overlapping cases in line folding only mode (3ab4fa62) (#588)
* fix: process overlapping cases in line folding only mode (3ab4fa62)

* fix: snapshot
2024-09-07 08:12:09 +08:00
Myriad-Dreamin
3ab4fa625f dev: process overlapping cases in line folding only mode 2024-09-06 23:34:55 +08:00
Myriad-Dreamin
67f148ce44
feat: listen data plane socket and serve frontend html on same address (#577)
* g1

* g2

* g3

* g4

* dev: clean up

* dev: remove deps

* dev: extract recv function

* move serve function

* hide generics

* recover fut change

* remove a useless function

* rename message back

* remove dyn frontend_html

* remove duplicated types

* remove wrong comment

* reduce glue codes

* remove dirty code

* feat: maintain compatibility

* dev: human name
2024-09-06 15:33:40 +08:00
Tim Voßhenrich
5b1d5ce331
feat: add shell completions script for Fig and Nushell (#578) 2024-09-06 07:18:33 +08:00
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
a53b9d92d7
docs: add notes to stateful pin commands (#562) 2024-08-26 21:41:09 +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
093f2af6dc
feat: support include expressions in typlite (#547) 2024-08-19 09:36:36 +08:00
Myriad-Dreamin
41e83b38e2
dev: merge {typlite,typst-preview,tinymist} world and compile argument parsers (#546)
* dev: merge lite world and lsp world

* dev: merge {typlite,typst-preview,tinymist} compile arg parsers
2024-08-19 09:12:01 +08:00
Yifan Song
63ade4f893
remove feature texmath (#535) 2024-08-15 21:51:24 +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
6b8380ade7
feat: export text in range as ansi highlighted code (#526)
* feat: export text in range as ansi highlighted code

* dev: update snapshot
2024-08-12 11:25:55 +08:00
Yifan Song
190b09d4b5
feat: generate shell completion (#525)
* basic clap_complete for shell

* dev: remove an unwrap and split a command function

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2024-08-12 11:15:37 +08:00
Myriad-Dreamin
3a6ace59a7
fix: bad configuration initialization (#523) 2024-08-10 20:58:23 +08:00
Myriad-Dreamin
99f9d6ccb7
fix: bad configuration document (#521) 2024-08-10 20:43:08 +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
c4c3d6f3fa
feat: convert editor READMEs to docs.typ (#498) 2024-08-05 23:32:18 +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
0134de41c1
fix: retrieve environments even if typstExtraArgs is unspecified (#482) 2024-08-02 10:13:17 +08:00
Myriad-Dreamin
acd22b71a5
feat: convert introduction.typ to README.md (#479)
* dev: supports some functions for README

* feat: convert introduction.typ to README.md
2024-07-30 17:12:20 +08:00
Myriad-Dreamin
bc3bd9f762
feat: add error framework and parse sys arguments for typlite (#478)
* feat: parse sys arguments for typlite

* feat: add error framework to typlite

* dev: allow output to stdout

* fix: error in docs
2024-07-30 16:49:04 +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
雪域冰龍
a6c81c80b0
feat(invert-colors): add normal-image option (#464)
* feat(invert-colors): add normal-image option

* fix: type bug

* dev: simplify and refine implementation

* build: lock version

* fix: comment

* chore: add warnings about unknown strategy

* dev: reformat package.json

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2024-07-28 17:49:02 +08:00
Myriad-Dreamin
08b9c10aa1
docs: improve and add contribution guide for syntaxes (#471)
* dev: reformat metadata of raw languages

* docs: improve and add contribution guide for syntaxes
2024-07-27 23:04:52 +08:00
Myriad-Dreamin
f97c6c1222
dev: reduce clone of frontend html (#467) 2024-07-27 11:22:10 +08:00
Chad Skeeters
4ead324c7e
fix: modify static host to send Content-Type: text/html (#465) 2024-07-27 10:34:39 +08:00
Myriad-Dreamin
d9767a63f6
fix: process lagged compile reason (#456) 2024-07-25 12:09:17 +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