Commit graph

944 commits

Author SHA1 Message Date
Myriad-Dreamin
03a30f241e
feat: reduce deps of the tests crate (#1612)
* feat: reduce deps of the tests crate

* feat: reduce deps of the tests crate (2)
2025-04-01 16:42:25 +08:00
Myriad-Dreamin
b97335c0ef
fix: order to publish crates (#1609)
* fix: order to publish crates

* fix: bad version
2025-03-31 17:03:26 +08:00
Myriad-Dreamin
71116758ef
build: bump world crates to 0.13.12-rc1 (#1608)
* refactor: move `debug_loc`

* build: fix rev

* build: bump tinymist inner version

* build: bump tinymist world version

* build: bump world crates to 0.13.12-rc1

* fix: used bad patch

* fix: clippy errors
2025-03-31 16:01:51 +08:00
Myriad-Dreamin
4844419bd8
fix: tolerate the fact that plugin functions don't have params (#1605) 2025-03-31 10:24:48 +08:00
Luyan Zhou
e6c0a9b10d
feat: fold list and enum items (#1598)
* feat: fold list and enum item content

* chore: format code

* feat: add new fixtures for folding range tests with list and enum structures

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2025-03-30 22:17:27 +08:00
Myriad-Dreamin
53ceba2801
refactor: bib worker (#1585)
* refactor: bib worker

* fix: stupid slash
2025-03-30 21:47:06 +08:00
QuadnucYard
7b74506dcc
feat: remove extra linebreak in diagnostic message (#1599) 2025-03-30 21:03:44 +08:00
Myriad-Dreamin
90f9949f8c
feat: support --feature and --pdf-standard. (#1596) 2025-03-28 17:42:03 +08:00
Myriad-Dreamin
c33542739c
feat: hot update editor actor config (#1584)
* feat: hot update editor actor config

* feat: apply update
2025-03-27 17:05:18 +08:00
Myriad-Dreamin
41f8881e8e
fix: correct jump_from_cursor and add tests (#1589)
* test: add tests to jump from cursor

* fix: fuzzy search

* fix: stupid filter

* docs: add comments

* docs: add some todos

* fix: comment wording

* dev: add a todo

* dev: edit a todo

* fix: comment
2025-03-27 01:44:49 +08:00
Myriad-Dreamin
ee1c0ace46
refactor: order of functions in link expression (#1583) 2025-03-26 14:13:50 +08:00
Myriad-Dreamin
e4a4fc568f
fix: correct rename on unix platforms caused by pathdiff#8 (#1587)
* fix: correct rename on unix platforms caused by pathdiff#8

* fix: ensure all calls to pathdiff

* fix: names

* fix: file path on windows
2025-03-26 12:46:33 +08:00
7mile
c102ace9ab
feat: use atomic file writing for export (#1586)
* feat: use atomic file writing for export

* chore: refactor

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2025-03-26 12:13:31 +08:00
Myriad-Dreamin
d4fffe3543
fix: resolve relative path in subfolders (#1574) 2025-03-26 11:10:51 +08:00
Myriad-Dreamin
9790153381
refactor: clean up the tool::preview crate (#1582) 2025-03-25 17:21:57 +08:00
Myriad-Dreamin
10ec787cc9
dev: stateful requests now accept snapshot (#1581)
* dev: stateful requests now accept snapshot

* dev: add some convenient methods

* dev: remove unused latest_doc state

* dev: use graph

* docs: comment

* fix: bad flag
2025-03-25 16:28:00 +08:00
Myriad-Dreamin
6ea14bb180
build: bump version to 0.13.10 (#1572)
* feat: expose the test command

* docs: edit CLI and testing sections

* docs: edit changelog

* build: bump version to v0.13.10

* build: bump assets to v0.13.10
2025-03-23 16:46:30 +08:00
Myriad-Dreamin
6f945c0c80
feat: make test dashboard optional (#1568) 2025-03-23 14:12:29 +08:00
Myriad-Dreamin
97bcc486fd
build: bump version to 0.13.10-rc2 (#1566)
* build: bump version to 0.13.10-rc2

* build: update changelog

* build: set typst tag to v0.13.10 (typst v0.13.1)

* fix: bugged tag

* build: update assets
2025-03-21 16:40:49 +08:00
Myriad-Dreamin
87651913af
fix: correct bound self checking (#1564) 2025-03-21 14:40:07 +08:00
Myriad-Dreamin
af78414788
fix: replace last scope when checking import wildcard (#1563)
* fix: replace last scope when checking import wildcard

* test: add some tests
2025-03-21 13:31:25 +08:00
Myriad-Dreamin
92e9f797de
feat: don't trigger parameter hints when skipping parameters (#1557)
* build: record command in completion snapshots

* feat: don't trigger parameter hints when skipping parameters

* test: update snapshot
2025-03-20 21:53:38 +08:00
Myriad-Dreamin
27c31c7238
feat: forbid bad postfix completion in math mode (#1556) 2025-03-20 20:30:47 +08:00
Myriad-Dreamin
e33688336d
feat: forbid bad field access syntax in math mode (#1550) 2025-03-20 19:44:28 +08:00
Myriad-Dreamin
d4f00b86b0
feat: export to format regardless of export target (#1549)
* feat: export to format regardless of export target

* chore: move todo comment
2025-03-20 17:11:55 +08:00
Myriad-Dreamin
fadf85e68a
feat: make all export available by commands (#1547) 2025-03-20 16:18:13 +08:00
7mile
8d9a8f8bed
feat: fledge diagnostic hint patterns by updating 2 refiners (#1544)
* feat: support more diagnostic hint patterns about typst v0.13 deprecation

* feat: add out of root hint diagnostic refiner

* optimize multi-pattern search with `RegexSet`

* add "cannot spread content"

* fix test

* Revert "add "cannot spread content""

This reverts commit 7d6c981413.
2025-03-20 14:30:35 +08:00
Myriad-Dreamin
766a41f4d5
build: bump version to 0.13.10-rc1 (#1540)
* docs: edit changelog

* build: bump version to 0.13.10-rc1

* build: bump typst to 0.13.1

* build: pre-rc1

* build: build with l10n

* build: lock version
2025-03-19 17:14:53 +08:00
7mile
57ce935f54
feat: add diagnostics refiner to provide extra hints from tinymist side (#1539)
* feat: add diagnostics refiner to provide extra information from tinymist side

* apply naming suggestion

* add note for caching

* fix the migration guide url

* reorganize tests

* fix clippy
2025-03-19 16:19:42 +08:00
Myriad-Dreamin
13fb22f4fa
feat: downgrade some config errors and show warnings (#1538) 2025-03-19 13:30:00 +08:00
Myriad-Dreamin
9b9a674118
fix: revert the explicit detection again (#1525)
* fix: revert the explicit detection again

* test: revert the snapshot

* test: add more tests
2025-03-19 13:07:10 +08:00
Myriad-Dreamin
c8c891fbc3
feat: pass tests if warnings happens (#1535) 2025-03-19 12:02:40 +08:00
Myriad-Dreamin
4bb16b5b93
feat: watch tests and print test information (#1534)
* feat: test watch support

* feat: terminal printer

* feat: print coverage

* feat: update docs
2025-03-18 16:13:08 +08:00
Myriad-Dreamin
157703ef67
docs: update description about testing (#1532) 2025-03-18 00:11:13 +08:00
Myriad-Dreamin
b4e5f4ff62
feat: add test framework with coverage support (#1518)
* feat: test framework with coverage support

* feat: clean up

* fix: dangling else block

* feat: implement show set

* feat: implement show replace content

* feat: compare framework

* feat: preserve extension

* feat: exit 1 if failed testing

* docs: update docs about it

* docs: wording

* docs: wording

* docs: wording
2025-03-17 22:41:33 +08:00
Myriad-Dreamin
c67b2020e5
refactor: clean up the config crate (#1528)
* feat: clean up config crates

* refactor: reorder config items

* refactor: a bit
2025-03-17 20:04:25 +08:00
Myriad-Dreamin
6a5bea8bcf
feat: add instrument-based breakpoints support to dap (#1529)
* dev: clean up debug crate

* feat: instrument support

* feat: evaluate infra
2025-03-17 18:19:31 +08:00
Myriad-Dreamin
42fd5d3bc9
feat: use window/showDocument to show previewing document (#1450)
* feat: use `window/showDocument` to show previewing document

* feat: implement it

* feat: take focus
2025-03-17 17:52:59 +08:00
Myriad-Dreamin
8a8cac096e
feat: implement debugging console (#1445)
* feat: dap server parts

* dev: remove comments

* feat: dap client parts

* fix: test
2025-03-17 13:06:22 +08:00
Andrew Voynov
1e9fea0337
docs: fix Neovim name casing everywhere (#1520) 2025-03-17 10:12:06 +08:00
Myriad-Dreamin
b2e9d7bbcd
feat: implements dap-server scaffold (#1517)
* feat: implements dap-server scaffold

* dev: revert

* fix: diagnostics is only available when typst is enabled

* feat: proper feature gating and testing

* feat: reduce dep and publish sync-ls

* docs: update readme

* fix: compile error

* fix: permission

* fix: examples

* fix: doc example
2025-03-17 09:33:59 +08:00
Myriad-Dreamin
520a26f088
feat: split config crate (#1516) 2025-03-16 17:33:41 +08:00
Myriad-Dreamin
478842c6bc
feat: exit if compile errors happen (#1512) 2025-03-16 16:41:04 +08:00
Myriad-Dreamin
3d83885778
feat: improve the export error message (#1510) 2025-03-15 21:43:34 +08:00
Myriad-Dreamin
36bc5226ba
feat: improve the error formatting (#1509) 2025-03-15 14:31:17 +08:00
Myriad-Dreamin
bc5960ec39
feat: support l10n message with arguments (#1508)
* feat: support l10n message with arguments

* dev: edit message

* dev: edit message

* fix: message error
2025-03-15 12:50:50 +08:00
Myriad-Dreamin
75aa73ba69
feat: initialize locale as soon as possible (#1507) 2025-03-15 12:19:06 +08:00
Myriad-Dreamin
c96ea6d77f
feat: profile and visualize coverage of the current document (#1490)
* feat: draft

* feat: run coverage command in vscode

* feat: create and move location crate

* feat: run and visualize coverage

* feat: l10n
2025-03-15 11:49:51 +08:00
tmistele
99900b2c76
fix: cleanup CORS checks (v2) (#1382)
* fix: cleanup CORS checks

* Add back the warning on empty Origin header for websocket requests

* Don't accidentally revert change from other PR

* docs: edit comment

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2025-03-15 11:01:46 +08:00
Myriad-Dreamin
4cbe35a286
feat: employ l10n to tinymist-cli and vscode extension (#1505)
* feat: runtime translation

* feat: poc of rust translation

* feat: clean up implementation

* feat: initialize correctly

* dev: remove dirty log

* dev: rename l10nMsg

* fix: desc

* feat: update assets building

* feat: update assets building

* build: update cargo.lock

* fix: warnings

* fix: warnings

* dev: expose api

* fix: compile error

* fix: compile errors in scripts
2025-03-15 10:38:07 +08:00