Commit graph

1024 commits

Author SHA1 Message Date
Myriad-Dreamin
0eb6837fd6
fix(ci): use upload-pages-artifact and configure-pages (#1251) 2025-02-02 15:01:06 +08:00
Myriad-Dreamin
85cb9096d2
perf: scatter-gather the editor diagnostics (#1246) 2025-02-02 14:56:55 +08:00
Myriad-Dreamin
8aef1974db
fix(ci): use deploy-pages v4 (#1249) 2025-02-02 14:56:39 +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
Hong Jiarong
ecd6cf97e9
feat: support drag-and-drop feature for .ods format (#1217)
* fix: update xlsx-parser package version to 0.3.0

* feat: add support for ODS file type in drag-and-drop feature
2025-01-28 15:15:46 +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
5ee0e4e21d
docs: add documentation about publish tokens (#1212)
* docs: add documentation about publish tokens

* docs: wording
2025-01-27 01:41:01 +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
Myriad-Dreamin
884a4b50e7
perf: reduce size of the watch entry (#1190)
* dev: reduce size of the watch entry

* feat: watch.rs changes
2025-01-19 12:26:57 +08:00
Myriad-Dreamin
56714675b7
feat: encode and use workspace information into PackageSpec (#1187)
* feat: remove an unused API

* feat: encode workspace information into `PackageSpec`

* feat: remove unused real_path

* feat: remove unused mtime

* feat: add ResolveAccessModel

* feat: implement id overlay semantics

* feat: remove mtime checking in overlay model

* feat: remove mtime checking in notify model

* feat: format ids

* fix: cases

* feat: resolve root by world

* dev: add untitled root

* fix: warnings

* fix: a wrong usage

* fix: snapshots

* fix: tests
2025-01-19 11:51:00 +08:00
Myriad-Dreamin
a25d208124
dev: intentionally leak paths in vfs (#1186) 2025-01-19 09:50:13 +08:00
Myriad-Dreamin
a5cf15a701
feat: remove do_reparse flag (#1185) 2025-01-19 09:50:03 +08:00
Myriad-Dreamin
1779209337
feat: build tinymist-world on web (#1184)
* feat: build tinymist-world on web

* fix: features

* dev: edit readme
2025-01-19 09:49:52 +08:00
Myriad-Dreamin
6180e343e0
feat: move world implementation (#1183)
* feat: move world implementation

* dev: remove vector ir

* fix: errors

* fix: clippy

* fix: don't build world in web

* fix: unused patches

* fix: fmt

* fix: docs example

* fix: doc examples
2025-01-19 08:25:35 +08:00
Myriad-Dreamin
a9437b2772
dev: remove unused deps (#1182) 2025-01-17 12:12:17 +08:00