Commit graph

34 commits

Author SHA1 Message Date
Myriad-Dreamin
25a446cd99
dev: fix meta and rename preview crates for publish crates (#1804)
* dev: fix meta and rename preview crates for publish crates

* dev: fix meta for publish crates
2025-06-09 09:40:05 +08:00
Myriad-Dreamin
d6d3766b6f
feat: add command to profile the entire server (#1438)
* feat: declare and bind tinymist.profileServer command

* feat: editor bridge with the frontend

* feat: start and stop server profiling

* feat: add profile-server prototype (#1440)

* Add profile-server prototype

* fix: use branch

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>

* feat: make it good

* build: update cargo.lock

* dev: ls profile impl and hook

* test: update snapshot

---------

Co-authored-by: Derived Cat <hooyuser@outlook.com>
2025-05-09 15:29:24 +08:00
Myriad-Dreamin
72e33e461d
refactor: remove once_cell use from tinymist (#1632)
* refactor: remove `once_cell` use from tinymist

* feat: remove more
2025-04-08 02:11:44 +08:00
Myriad-Dreamin
35b718452e
feat: scroll or kill all preview panels (#1451)
* feat: scroll or kill all preview panels

* feat: implement it

* docs: update comment
2025-04-07 22:04:55 +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
9790153381
refactor: clean up the tool::preview crate (#1582) 2025-03-25 17:21:57 +08:00
Myriad-Dreamin
bbed728b82
feat: bump msrv and rust to v1.83 and v1.85 (#1407) 2025-02-26 14:40:23 +08:00
Myriad-Dreamin
21c6492254
feat: use jump_from_click from typst-ide (#1399) 2025-02-25 19:15:05 +08:00
Myriad-Dreamin
d21ebc38dc
feat: bump typst to v0.13.0-rc1 (#1342)
* dev: use range type from lsp-types

* feat: add html document variant

* feat: use new-style bytes constructors

* fix: broken span usages

* fix: syntax kind is changed

* fix: label use pico str

* fix: bib element is changed

* fix: raw element is changed

* fix: typst use codex

* fix: package fn is removed from world trait

* feat: reflexo accept typst document

* docs: update changelog

* dev: cargo patch

* fix: typst pdf timestamp is changed

* fix: pattern is renamed to tiling

* dev: make eval compat

* test: update snapshots

* build: bump version to nightly 0.12.19-rc4

* build: bump version to 0.12.19-rc1 (#1164)

  * build update changelog

  * build: bump version to 0.12.19-rc1

* build: bump version to nightly 0.12.19-rc2 (#1221)

  * feat: update typst to `85d1778`

  * deps: lock git deps version

  * build: bump version to 0.12.19-rc2

  * docs: remove rc in changelog

  * fix: mathtext formatting of typstyle

  * fix: completion related to mathtext

  * build: update cargo.lock

* build: bump version to nightly 0.12.19-rc3 (#1232)

* build: bump version to nightly 0.12.19-rc4 (#1239)

* feat: add typst-html

* feat: add typst-html

* cargo patch

* fix: features doesn't take effect

* fix: casting

* fix: broken no-content-hint

* fix: snapshot

* fix: remove unnecessary `fs` feature

* fix: move system features feature

* feat: remove nightly shim

* test: update snapshot

* dev: nightly v0.12.21 (#1279)

* feat: update typst to `0ea6680`

feat: update typst to `0ea6680`

build: bump version to nightly 0.12.19 (#1261)

* fix: fix lint errors

* styl: fotmat

* fix: build web ci

* build: update cargo.toml

* build: bump version to nightly 0.12.21-rc1 (#1280)

* build: update typstyle & reflexo (#1336)

* build: update typstyle & reflexo

* dev: remove useless patches

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>

* build: update version

* fix: pdf gate were broken (#1285)

* fix: panic on convert_datetime (#1286)

* feat: run language sever with targeting html (#1284)

* dev: add some debug logging

* feat: html compilation

* fix: revert changes

* feat: adjust html interfaces

* feat: lock reflexo

* feat: provide exportTarget configuration

* feat: export html actions when target is html

* build: bump reflexo

* fix: system feature gate

* fix: feature gate 2

* fix: feature gate 3

* feat: make tinymist-world featured by lsp

* feat: text export over typst's HTML export (#1289)

* feat: add more doc, world, and task apis (#1290)

* feat: add num of pages method

* feat: add from_snapshot_inner method

* feat: add clear_dedicates method

* feat: more convertion traits

* feat: add doc_get_as_value method

* feat: add doc_get_as_value method

* feat: add cast_run method

* fix: set is compiling flag (#1293)

* feat: publish {tinymist-{derive,analysis,std,vfs,world,project},typlite,crityp} crates (#1310)

* build: bump version to 0.12.21-pre-rc1

* fix: deps

* build: set nightly in nightly branch

* docs: add readmes for publish

* feat: add release crates action

* dev: remove publish of sync-lsp

* dev: remove useless setup

* fix: remove readme

* fix: publish ignore errors

* fix: specify version for publish

* fix: specify version for publish

* feat: update tinymist-web version

* test: update snapshot

* fix: diverged deps

---------

Co-authored-by: ParaN3xus <136563585+ParaN3xus@users.noreply.github.com>
2025-02-21 03:18:04 +08:00
Myriad-Dreamin
cdd9282c37
fix: log error on channel closed (#1347) 2025-02-20 20:45:44 +08:00
Myriad-Dreamin
3bc5f19cf5
feat: convert TypstDocument to enum (#1256)
* feat: convert `TypstDocument` to enum

* fix: errors

* build: update cargo.lock

* fix: warnings

* fix: error

* html changes

* Revert "html changes"

This reverts commit f9fc0e4872.

* Revert "Revert "html changes""

This reverts commit 7dc554a9e4.

* use std typst docs

* span

* paged

* paged

* html change

* paged

* html change

* bytes

* paged

* paged

* paged

* html changes

* paged

* html changes

* paged
2025-02-03 11:17:58 +08:00
Myriad-Dreamin
4eb747f883
refactor: finally remove all headless logging (#1242) 2025-02-02 13:15:54 +08:00
Myriad-Dreamin
02a14c9cc9
fix: push resolved span to editor (#1194) 2025-01-19 18:49:01 +08:00
Myriad-Dreamin
9cf5f294e9
fix: clean up the render actor a bit and fix the issue that editor_conn_sender is not used (#1159) 2025-01-13 11:27:11 +08:00
Myriad-Dreamin
18d37433b3
feat: remove the typst actor (#1156)
* feat: remove the typst actor

* feat: merge the editor server and the compile host

* feat: change the naming a bit
2025-01-13 10:36:46 +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
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
Myriad-Dreamin
d9717fffa2
test(ci): add fmt, clippy, doc, and msrv tests to CI (#926)
* test(ci): add fmt, clippy, doc, and msrv tests to CI

* test(ci): check and build typst-preview

* fix: checks
2024-12-02 20:28:29 +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
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
雪域冰龍
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
f97c6c1222
dev: reduce clone of frontend html (#467) 2024-07-27 11:22:10 +08:00
Myriad-Dreamin
d9767a63f6
fix: process lagged compile reason (#456) 2024-07-25 12:09:17 +08:00
Myriad-Dreamin
39a3bd8634
feat: allow multiple-tasked preview (#427)
* feat: implement it

* fix: faster doc propagation, but may still have bugs
2024-07-20 11:36:58 +08:00
Myriad-Dreamin
1d011155cf
refactor: rearrange preview entry for future improvement (#426)
* dev: refactor preview entry for future improvement

* dev: move watcher ahead

* dev: move host ahead
2024-07-18 13:53:18 +08:00
Myriad-Dreamin
adff5a8a96
dev: reduce dependencies a bit (#400)
* dev: disable default feature of typstyle

* dev: add release launch

* dev: remove threads and await tree

* dev: remove await-tree
2024-07-11 15:35:08 +08:00
Myriad-Dreamin
4acc39b237
build: rearrange dependencies (#399) 2024-07-11 11:03:55 +08:00
Myriad-Dreamin
4b1f8cd80c
fix: broken preview feature flag (#381) 2024-07-08 14:12:30 +08:00
Myriad-Dreamin
a8d470222f
feat: support single-task preview commands (#368)
* refactor: adjust compat code

* refactor: extension side code

* dev: setup preview state

* refactor: lsp side code

* dev: first successful preview

* dev: respect compile reason

* dev: update snapshot

* dev: log a bit

* fix: refresh style

* dev: properly start and stop

* dev: throw error correctly

* dev: update deprecation note

* dev: remove preview cli input/font arguments

* build: don't ignore frontend file

* dev: polyfill non-text editions

* dev: clean some code

* dev: clean some code

* dev: eliminate preview html in tinymist extension

* dev: eliminate CompilationHandleImpl and CompileServer

* dev: stop browser preview correctly

* dev: update configuration
2024-07-06 13:27:17 +08:00
Myriad-Dreamin
1a5b146d36
refactor: combine typst-preview and tinymist extension code (#364)
* dev: move preview methods to compile handler

* dev: move preview code

* refactor: combine typst-preview and tinymist extension code

* fix: indent
2024-07-03 23:25:18 +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
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
b265dd49d6
refactor: combine typst-preview and tinymist binary (#332)
* refactor: combine typst-preview and tinymist binary

* dev: externalize assets

* dev: improve deps

* dev: bad deps
2024-06-21 19:23:31 +08:00
Myriad-Dreamin
bb9f30fcdf
feat: move typst-preview to tinymist (#323)
* merge preview crates

Co-authored-by: mgt <mgt@oi-wiki.org>
Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
Co-authored-by: slanterns <slanterns.w@gmail.com>
Co-authored-by: Bubbleioa <1342130847@QQ.com>
Co-authored-by: 7mile <i@7li.moe>
Co-authored-by: 7sDream <7822577+7sDream@users.noreply.github.com>
Co-authored-by: Aldric.li <31800073+Parsifa1@users.noreply.github.com>
Co-authored-by: Andrew Voynov <37143421+Andrew15-5@users.noreply.github.com>
Co-authored-by: AsukaMinato <i@asukaminato.eu.org>
Co-authored-by: Banson <xzcxzcyy@126.com>
Co-authored-by: Kian-Meng Ang <kianmeng.ang@gmail.com>
Co-authored-by: Marlon Regenhardt <marlon.r@hotmail.de>
Co-authored-by: OrangeX4 <34951714+OrangeX4@users.noreply.github.com>
Co-authored-by: Severi Salminen <severi.salminen@iki.fi>
Co-authored-by: Wisha W <49518157+wishawa@users.noreply.github.com>
Co-authored-by: werifu <wohu1363195380@outlook.com>

* chore: minimize images

* feat: move typst-preview to tinymist

* build: merge npm dependencies

* build: merge npm dependencies 2

* build: use assets TYPST_PREVIEW_HTML

* build(ci): bundle typst-preview package

* dev: add convenient script for building

* build: update yarn.lock

---------

Co-authored-by: mgt <mgt@oi-wiki.org>
Co-authored-by: slanterns <slanterns.w@gmail.com>
Co-authored-by: Bubbleioa <1342130847@QQ.com>
Co-authored-by: 7mile <i@7li.moe>
Co-authored-by: 7sDream <7822577+7sDream@users.noreply.github.com>
Co-authored-by: Aldric.li <31800073+Parsifa1@users.noreply.github.com>
Co-authored-by: Andrew Voynov <37143421+Andrew15-5@users.noreply.github.com>
Co-authored-by: AsukaMinato <i@asukaminato.eu.org>
Co-authored-by: Banson <xzcxzcyy@126.com>
Co-authored-by: Kian-Meng Ang <kianmeng.ang@gmail.com>
Co-authored-by: Marlon Regenhardt <marlon.r@hotmail.de>
Co-authored-by: OrangeX4 <34951714+OrangeX4@users.noreply.github.com>
Co-authored-by: Severi Salminen <severi.salminen@iki.fi>
Co-authored-by: Wisha W <49518157+wishawa@users.noreply.github.com>
Co-authored-by: werifu <wohu1363195380@outlook.com>
2024-06-17 17:22:45 +08:00