Myriad-Dreamin
9864d438c9
feat: remove uses of CompileEnv
and Compiler
( #1272 )
...
* feat: remove uses of `CompileEnv` and `Compiler`
* build: update cargo.lock
* fix: new typst
* Revert "fix: new typst"
This reverts commit ca624d391a
.
* Revert "Revert "fix: new typst""
This reverts commit 012d3cff03
.
2025-02-08 15:15:13 +08:00
Myriad-Dreamin
6b31d4418d
feat: store raw diag in error ( #1271 )
2025-02-08 15:11:48 +08:00
Myriad-Dreamin
d0188a768e
dev: make eval compat ( #1269 )
...
* fix: compile when preview feature is disabled
* build: update cargo.lock
* old
* old
* old
* back
2025-02-08 14:55:47 +08:00
Myriad-Dreamin
5b2b34ee9e
fix: make preview feature gate work
2025-02-08 14:55:47 +08:00
Myriad-Dreamin
a778c8c10c
build: upgrade typstyle to v0.12.14 ( #1260 )
...
* build: upgrade typstyle to 0.12.14
* typstyle version
* build: update cargo.lock
---------
Co-authored-by: ParaN3xus <paran3xus007@gmail.com>
2025-02-03 11:19:55 +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
30a08e79ab
refactor: remove state crate again ( #1255 )
2025-02-02 16:32:50 +08:00
Myriad-Dreamin
d1196bffd6
refactor: review project state ( #1254 )
2025-02-02 16:27:28 +08:00
Myriad-Dreamin
7b8739487e
fix: cannot build clap/wrap_help in web ( #1253 )
2025-02-02 16:25:33 +08:00
Myriad-Dreamin
5069a89d5d
refactor: rearrange state methods ( #1252 )
2025-02-02 16:24:12 +08:00
Myriad-Dreamin
4ce405a89b
refactor: improve code styles ( #1250 )
2025-02-02 15:27:00 +08:00
Myriad-Dreamin
85cb9096d2
perf: scatter-gather the editor diagnostics ( #1246 )
2025-02-02 14:56:55 +08:00
Myriad-Dreamin
8d05e5081c
feat: adapt main file mutations ( #1247 )
2025-02-02 14:56:17 +08:00
Myriad-Dreamin
88912bc12e
feat: prepublish tinymist-world ( #1248 )
2025-02-02 14:51:49 +08:00
Myriad-Dreamin
d534325c83
docs: add comments to the editor actor ( #1245 )
2025-02-02 14:02:44 +08:00
Myriad-Dreamin
36d07464c1
refactor: tail log error that is ignorable ( #1244 )
2025-02-02 13:59:55 +08:00
Myriad-Dreamin
74c68f5485
feat: adapts build meta for wasm target ( #1243 )
2025-02-02 13:59:44 +08:00
Myriad-Dreamin
4eb747f883
refactor: finally remove all headless logging ( #1242 )
2025-02-02 13:15:54 +08:00
Myriad-Dreamin
902b9c6d8c
refactor: rearrange project state a bit ( #1241 )
2025-02-02 13:15:28 +08:00
Myriad-Dreamin
2b56e71435
feat: watch dependencies of multiple projects ( #1231 )
2025-01-30 01:44:57 +08:00
Myriad-Dreamin
8d588c1057
fix: correct impl WorldProvider::entry
for CompileOnceArgs ( #1230 )
2025-01-30 00:26:12 +08:00
Myriad-Dreamin
0451a1089d
dev: handle compilation notifications for multiple projects ( #1229 )
...
* dev: handle multiple-project notifications
* dev: remove todo
2025-01-30 00:25:59 +08:00
Myriad-Dreamin
eac275c28d
refactor: remove z_internal_error and outdated comments ( #1228 )
2025-01-30 00:25:42 +08:00
Myriad-Dreamin
af47f578e4
dev: cleanup project creation ( #1227 )
2025-01-29 20:57:34 +08:00
Myriad-Dreamin
3227b2f6f7
fix: sync memory changes on restart ( #1226 )
2025-01-29 20:14:36 +08:00
Myriad-Dreamin
7647d807ec
feat: replace diag_group id with project_id ( #1224 )
2025-01-29 19:40:31 +08:00
Myriad-Dreamin
0f588c99d7
refactor: build and move comment and matcher crates to analysis crate ( #1223 )
2025-01-29 12:34:28 +08:00
Myriad-Dreamin
1979469f28
refactor: move debug_loc crate to analysis crate ( #1222 )
2025-01-29 11:30:34 +08:00
Myriad-Dreamin
f1f88cb548
build: eliminate dependencies of tinymist-analysis
( #1220 )
2025-01-28 17:37:22 +08:00
Myriad-Dreamin
0b4014be80
feat: CLI generate shell build script ( #1219 )
...
* feat: CLI generate shell build script
* dev: update build script sample
2025-01-28 15:13:59 +08:00
Myriad-Dreamin
b541daf50e
feat: CLI compile documents with lock updates ( #1218 )
2025-01-28 13:57:27 +08:00
Myriad-Dreamin
ebd811db13
fix: typos and clippy warnings ( #1215 )
2025-01-28 12:00:36 +08:00
tmistele
ea331a5aa6
fix: Prevent malicious websites from connecting to http / websocket server ( #1157 )
...
* fix: Prevent malicious websites from connecting to http / websocket server
Browsers allow any website to connect to websockets on `127.0.0.1` and,
therefore, to spy on users of tinymist. Disallow this by checking the
`Origin` header. Note: This does not protect against malicious users
that share the same `127.0.0.1` as us (e.g. multi-user systems where
the users don't trust each other). That requires additional changes
that may be added in the future.
* Add VSCode exception
* Also prevent malicious connections to trace/profiling http server
Allow VSCode only for now.
2025-01-27 13:56:05 +08:00
Myriad-Dreamin
1b80d8c31d
feat: execute export and query on the task model ( #1214 )
...
* feat: extract id and doc id from config
* dev: merge `TaskWhen` and move `PathPattern`
* g
* dev: let it compile
* dev: rename a bit
* dev: finish cmd conversions
* dev: configure server
* dev: run export
* dev: clean code
* dev: parse gap on export
* fix: when test
2025-01-27 13:14:17 +08:00
Myriad-Dreamin
86d3b912d4
fix: try getting font index which is hit by comemo ( #1213 )
2025-01-27 09:58:24 +08:00
Myriad-Dreamin
4bebc00df2
feat: delete useless async snapshot ( #1206 )
2025-01-21 08:52:45 +08:00
Myriad-Dreamin
0a91f0d2b4
refactor: rearrange state crates ( #1205 )
...
* refactor: rearrange states
* feat: remove MemoryFileMeta
* feat: split server.rs
2025-01-21 01:32:19 +08:00
Myriad-Dreamin
ac25cc1365
refactor: rearrangement and document about tinymist-project ( #1204 )
...
* refactor: rearrangement and document about tinymist-project
* refactor: more rearrangement and document about tinymist-project
2025-01-21 00:56:30 +08:00
Myriad-Dreamin
8ca6c8118c
feat: merge fs and std crate ( #1203 )
...
* feat: merge fs and std crate
* fix: errors
2025-01-20 23:00:31 +08:00
Myriad-Dreamin
04f688e122
feat: model and document project tasks ( #1202 )
...
* feat: model and document project tasks
* fix: compile error
2025-01-20 20:24:54 +08:00
Myriad-Dreamin
6d1e40d3a9
feat: resolve projects by lockDatabase
( #1142 )
...
* feat: implement lock-based project resolution
* feat: first working example
2025-01-20 14:51:09 +08:00
Myriad-Dreamin
89c178295a
feat: initiate lockDatabase
project resolution ( #1201 )
...
* feat: create a configuration
* docs: edit description
* docs: edit description
* feat: add lock update
* test: make configuration work
2025-01-20 12:45:23 +08:00
Myriad-Dreamin
a325c6f6c8
test: add test_entry_by_extra_args
test ( #1200 )
2025-01-20 09:51:44 +08:00
Myriad-Dreamin
d5ecf052d4
feat: detect compilation-related vfs changes ( #1199 )
2025-01-20 01:38:40 +08:00
Myriad-Dreamin
e4bf2e9e46
feat: run project compilations on main thread ( #1197 )
...
* dev: handle compile interrupt
* dev: remove cache task use
* feat: create project crate again
dev: changes
feat: delete unused code
fix: errors
fix: errors
* feat: extra compilation is not needed
* dev: implement all todos
* fix: make event queue unbounded
* fix: make preview work again
* feat: event-driven recompilation
* feat: evict vfs cache
* feat: update evict strategy
* feat: remove lock update
2025-01-19 22:28:38 +08:00
Myriad-Dreamin
02a14c9cc9
fix: push resolved span to editor ( #1194 )
2025-01-19 18:49:01 +08:00
Myriad-Dreamin
40c176ccf6
fix: capture docs before check init ( #1195 )
2025-01-19 18:48:38 +08:00
Myriad-Dreamin
3577ed3b2f
feat: add CLI compile command and bench script ( #1193 )
2025-01-19 18:48:19 +08:00
Myriad-Dreamin
1f01ec1f6c
feat: track fine-grained revisions of font
, registry
, entry
, and vfs
( #1192 )
...
* feat: set flag to indicate whether we are compiling files
g1
dev: stateless compile
dev: vfs revise apis
g1
feat: bump revision on state changes
feat: track font and package changes
dev: some cases that can change state of cache
changes
* feat: implement shared source cache
* fix: take db state
* dev: update take state location
* fix: example
2025-01-19 18:23:41 +08:00
Myriad-Dreamin
8481b77e3c
perf: remove meta watch ( #1191 )
...
* dev: remove meta watch
* feat: watch.rs changes
* dev: remove `is_file` checking
* dev: remove `is_file` checking (cont.)
2025-01-19 12:40:06 +08:00