Commit graph

1007 commits

Author SHA1 Message Date
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
Myriad-Dreamin
68f451715a
dev: change log level of diagnostics from info! to debug! (#1181)
* dev: change log level of diagnostics from `info` to `debug`

* dev: clean code

* dev: enable them again
2025-01-17 12:11:53 +08:00
Myriad-Dreamin
c5630aa7bd
feat: copy pdb file before launching extension on windows (#1180)
* feat: copy pdb file before launching extension on windows

* dev: update comments
2025-01-17 11:24:50 +08:00
Myriad-Dreamin
270734612d
dev: merge tinymist-project and tinymist-world crate (#1179)
* dev: merge tinymist-project and tinymist-world crate

* fix: warnings and errors
2025-01-17 11:24:36 +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
Myriad-Dreamin
448ce484d8
fix: clippy error in rust 1.84 and deny warnings in CI (#1178)
* fix: clippy error in 1.84

* fix: deny warnings

* fix: clippy warnings and doc errors

* fix: warnings

* fix: warnings

* fix: warnings

* fix: compile error
2025-01-15 20:26:34 +08:00
Myriad-Dreamin
31b22d9333
dev: add send_event to the lsp client (#1176) 2025-01-15 17:14:24 +08:00
Myriad-Dreamin
faf807edb2
feat: prefer to select the previous token when cursor is before a marker (#1175)
* feat: prefer to select the previous token when cursor is before a marker

* test: update snapshot
2025-01-15 14:33:26 +08:00
Myriad-Dreamin
0aafee1d13
test: add more rename tests (#1174)
* test: add tests

* dev: add more tests
2025-01-15 13:05:32 +08:00
ParaN3xus
7d6311e8fb
docs: clarify typst version in nightly releases (#1173)
* docs: clarify typst version in nightly releases

* docs: add more detailed clarification

* fix: typst markup copied to markdown files

---------

Co-authored-by: Myriad-Dreamin <camiyoru@gmail.com>
2025-01-15 12:50:03 +08:00
Myriad-Dreamin
dcef04c867
chore: draft-release script strips v prefix (#1172) 2025-01-14 20:41:09 +08:00
Myriad-Dreamin
25bb1b2fbc
fix(ci): broken script (#1171) 2025-01-14 20:39:04 +08:00
Myriad-Dreamin
17192ca9ae
ci: generate announcement (#1170)
* ci: generate announcement

* dev: delete comment
2025-01-14 20:32:56 +08:00
Myriad-Dreamin
92f1d7fa18
dev: edit deps and features (#1168) 2025-01-14 19:09:01 +08:00
Myriad-Dreamin
2168b22b16
build: add notes before release instructions (#1169) 2025-01-14 19:08:44 +08:00
Hong Jiarong
3dd76f7a3d
feat: update xlsx-parser package version to 0.2.3 (#1166) 2025-01-14 18:24:25 +08:00
Myriad-Dreamin
8ceb78f699
feat: micro benchmark support (#1160)
* feat: init crityp

* feat: delete the dirty patch

* feat: clean up unwraps in the tool

* feat: split cli main function

* docs update readme

* docs update readme

* docs: add comments

* docs: lint code
2025-01-14 18:20:58 +08:00
Myriad-Dreamin
a33f12ea7b
docs: update release instruction (#1163) 2025-01-14 16:10:59 +08:00