Commit graph

66 commits

Author SHA1 Message Date
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
f33ea4913c
build: bump typst.ts to v0.6.0-rc1 (#1707)
* build: bump typst.ts to v0.6.0-rc1

* build: update lock and docs
2025-04-29 12:46:16 +08:00
zica
1cd566aedc
fix: in preview, click on empty area now clears selection (#1644)
also fix selection disappears temporarily while dragging
2025-04-12 03:46:55 +08:00
zica
9376b89b08
fix: allow drag preview horizontally (#1597) 2025-03-28 20:14:34 +08:00
Myriad-Dreamin
20746e3acd
feat: improve ArgSlots a bit (#1479) 2025-03-10 17:42:23 +08:00
Myriad-Dreamin
51530034f7
fix: use the background rect to calculate cursor position in the page (#1427) 2025-02-28 01:40:19 +08:00
Myriad-Dreamin
7faef58186
build: bump reflexo to v0.5.5-rc7 (#1414) 2025-02-27 11:41:45 +08:00
Myriad-Dreamin
21c6492254
feat: use jump_from_click from typst-ide (#1399) 2025-02-25 19:15:05 +08:00
Myriad-Dreamin
15f2329bc1
fix: use new wasm renderer (#1398) 2025-02-25 14:47:54 +08:00
Myriad-Dreamin
5659b0bc6c
dev: move package to reflexo_world part (#1177)
* dev: move package to reflexo_world part

fix: compile error

* dev: update the package.json

* fix: compile error

* dev: remove dry compile
2025-01-16 10:13:37 +08:00
tmistele
6813a1081e
feat: rescale with ctrl/cmd + =/- in browser (#1110)
* feat: Rescaling with Ctrl+=/- in browser (in addition to ctrl+wheel)

* Change function name also in comment

* Use Command instead of Ctrl on Macs

to match default key bindings in browsers
2025-01-13 10:05:17 +08:00
Myriad-Dreamin
2712654457
fix: account for preview jump bugs introduced in #997 (#1004)
* fix: many bugs in #997

* fix: definition of x, y
2024-12-15 16:35:41 +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
b18c3ca71c
fix: compatibility for some old chromium core (#995)
* fix: compatibility for some old chromium core

* feat: resolve relative URL manually

* dev: revert the change

* dev: add some comment

* fix: wrong regrex in 50228956

* dev: upgrade version to use

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2024-12-14 14:41:28 +08:00
Yifan Song
672a95c908
feat: search in template gallery (#922)
* feat: Search Gallery by name

* dev: use minisearch

* feat: highlight search

* feat: all query terms for highlight

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2024-12-03 12:23:34 +08:00
Myriad-Dreamin
3c98d574a2
feat: provide elementary font view (#932)
* dev: font view

* dev: tune functionality

* dev: add a todo
2024-12-03 12:20:27 +08:00
Caleb Maclennan
6f4aba4aa8 chore: Fix typos throughout code base (automatic)
This is all the typos that `typos` is confident can just be fixed
automatically, minus the overrides added to the manifest for the false
positives I found.
2024-11-25 09:26:53 +08:00
Myriad-Dreamin
da6d6e970f
fix: undefined references in preview's html (#896)
* fix: undefined references in preview's html

* dev: publish preview html
2024-11-24 16:34:04 +08:00
Myriad-Dreamin
5ce0a8feba
fix: enclose fallback docs in code block (#828) 2024-11-15 20:59:26 +08:00
Myriad-Dreamin
52a8d0e678
build: bump version to 0.12.2-rc1 (#827)
* build: bump packages

* docs: update changelog

* build: bump version to 0.12.2-rc1

* chore: wording

* fix: errors

* fix: wording
2024-11-15 15:19:59 +08:00
Myriad-Dreamin
adbf05d366
fix: rename export_again to is_external (#777) 2024-11-08 16:16:01 +08:00
Myriad-Dreamin
3da56a4dd2
fix: range error when converting huge base64 strings (#774) 2024-11-08 15:55:57 +08:00
summerBreeze630
5dd1226cdc
dev: complete symbol classification in handwriting recognizer (#705)
* dev: complete symbol classification in handwriting recognizer

* dev: update symbol category

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2024-10-29 11:19:48 +08:00
Myriad-Dreamin
2c38695b6f
docs: maintain readme and command docs (#733)
* docs: maintain readme and command docs

* docs: update inline images

* test: update snapshot

* test: update baseline

* test: update baseline
2024-10-26 22:47:12 +08:00
Myriad-Dreamin
7a54bc1030
feat: {en,de}code base-64 strings with Text{De,En}coder (#719) 2024-10-21 13:23:08 +08:00
Myriad-Dreamin
66fff06dfe
build: bump tinymist to 0.12.0-rc1 (#708)
* feat: support nightly typst (#600)

* 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

* 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

* fix: ignore system fonts correctly (#597)

* feat: adapt nightly typst

chore: use mainline typst

fix: `leaf_at` second parameter

fix: build `Engine`

fix: `interpret_mode_at` converage

feat: use my typst

fix: use `typst::trace` to trace

fix: frameitem

fix: new kinds

fix: new scope

fix: lazyhash

fix: result

fix: new SyntaxKinds

fix: utils, lazyhash

chore: remove useless imports

fix: sink

feat: frameitem

fix: export svg with page

fix: deref span

styl:

deps

fix: lazyhash

deps: use my typstyle

fix: enable contenthint with feature

fix: leaf_at side

fix: compile.output

deps

fix: warnings

deps: use new branch name

fix: fix merge error

ci: update ci branch

test: accept new test snap

fix: fix compile

deps: update typst

fix: fix compilation for latest tinymist

fix: fix tests

fix: fix tests

* chore: clean useless imports

---------

Co-authored-by: ricOC3 <100465762+ricOC3@users.noreply.github.com>
Co-authored-by: Myriad-Dreamin <35292584+Myriad-Dreamin@users.noreply.github.com>

* fix: compile warnings and errors

* fix: add round_2 back

* fix: pdf options

* build: bump version to 0.11.33

build: bump version to 0.11.31 (#652)

build: lock git branches

build: bump version to 0.11.23-rc1

dev: update cargo.toml

deps: update typst, typst.ts, typstyle to tagged version (#624)

build: bump version to 0.11.29 (#628)

dev: nightly-0.11.31 (#649)

* deps: update typst

* test: fix snapshot

fix: dependencies

dev: nightly 0.11.33 (#655)

* deps: update typst, typst.ts, typstyle

* test: fix test hash

* fix: compile error

* fix: errors

* build: bump typst to 0.12.0

* dev: final bumps

* build: bump version to 0.11.34-rc1

* build: update cargo.lock

* test: update snapshot

---------

Co-authored-by: ParaN3xus <136563585+ParaN3xus@users.noreply.github.com>
Co-authored-by: ricOC3 <100465762+ricOC3@users.noreply.github.com>
2024-10-19 18:32:37 +08:00
Myriad-Dreamin
a3f100e7cb
refactor: change PrimarySignature structure to merge type checking info (#687)
* dev: support spread left params

* dev: stage merge

* dev: remove ParamSpecShort

* chore: remove useless code

* dev: merge all things back

* fix: testing

* fix: testing

* remove: useless method
2024-10-16 14:35:24 +08:00
Myriad-Dreamin
b9da92175e
dev: merge signature docs and rest docs (#685)
* dev: deduplicate code

* dev: merge signature docs and rest docs

* dev: change struct of the `DocString`

* dev: improve structure of SymbolDocs
2024-10-16 11:16:16 +08:00
Myriad-Dreamin
ae08ce8723
feat: send trace data via http instead of lsp stdio (#660) 2024-10-11 15:27:23 +08:00
Myriad-Dreamin
3aa8f1233d
fix: check existence of requestIdleCallback before uses (#643) 2024-10-07 14:18:45 +08:00
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
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
TANIGUCHI Masaya
a92d477d88
feat: add gitpod layer (#575)
* feat: add gitpod.ts

* Not -> not
2024-09-06 20:05:22 +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
22aea0e075
dev: intern vscode-variable package (#460)
* dev: intern vscode-variable package

* dev: add vitest

* dev: add tests

* fix: a bug

* dev: less global state

* dev: less bug-prone construction
2024-07-26 12:47:26 +08:00
Myriad-Dreamin
7aca6a657f
test: add editor-side e2e testing (#441)
* test: first runnable editor e2e

* test: first smoke testing

* fix: a bug found by editor e2e

* test: add completion e2e testing

* test: add diagnostics and focus e2e testing

* feat: test extension in ci

* dev: remove one useless dependency

* dev: setup x server for testing

* dev: recover stable test

* test: add multiple preview e2e testing
2024-07-20 18:52:15 +08:00
Myriad-Dreamin
0d84553390
fix: broken content preview (#413)
* fix: broken outline

* fix: render mode
2024-07-14 19:00:13 +08:00
Myriad-Dreamin
27a0aa9e2b
feat: use requestIdleCallback to wait for updating canvas pages when editor is in idle (#412)
* dev: use local frontend files

* very lazy
2024-07-14 17:52:55 +08:00
Myriad-Dreamin
46f6342a50
dev: reformat code (#369) 2024-07-14 15:15:30 +08:00
Myriad-Dreamin
1714103316
feat: persist webview preview through vscode restarts (#373)
* fix: bugs

* feat: persist webview preview through vscode restarts

* make sure code works without VSCODE_STATE

* Apply suggestions from code review

* Use base64 to solve security stuff

* fix: wrong patch

* fix: formatting

* fix: bugs

* fix: stupid bug

* fix: get compat configuration correctly

---------

Co-authored-by: Noam Zaks <imnoamzaks@gmail.com>
2024-07-07 13:43:04 +08:00
Myriad-Dreamin
7f1de87765
build: bump version to 0.11.12 (#352)
* build: bump dependencies

* docs: update changelog

* build: bump version to 0.11.12

* chore: stupid patch
2024-06-28 09:08:09 +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
7sDream
8784a07b2b
feat: add font list export panel in summary tool (#322)
* feat(vscode/summary): add font list export pannel

* feat: json/csv format,  export to file and state persistence
2024-06-17 17:17:11 +08:00
Myriad-Dreamin
caaeb8efe8
fix: errors on debugging frontend (#297) 2024-05-17 17:07:45 +08:00
Myriad-Dreamin
6b9bd73d8a
build: uses types declaration in detypify (#277) 2024-05-12 17:00:35 +08:00
Myriad-Dreamin
99aed49f8d
build: install detypify service from npm (#275)
* dev: install detypify service

* build: remove manual detypify assets downloading

* build: add types declaration for detypify
2024-05-12 01:06:54 +08:00
Myriad-Dreamin
d9df64bca7
feat: make compile-based symbol resolver (#269)
* feat: use new symbol resolver

* feat: render emojis in symbol view
2024-05-09 12:33:19 +08:00
Myriad-Dreamin
1814f42165
fix: symbol view issues (#224) 2024-05-04 13:56:25 +08:00
Myriad-Dreamin
5fdf3353b7
build: bump version to 0.11.6 (#219)
* dev: add help and acknowledgement about symbol view

* dev: add changelog for  0.11.6

* build: bump version to 0.11.6
2024-04-27 10:49:18 +08:00