tinymist/crates/tinymist
Myriad-Dreamin 75fc5f3bca
Some checks are pending
tinymist::ci / Duplicate Actions Detection (push) Waiting to run
tinymist::ci / Check Clippy, Formatting, Completion, Documentation, and Tests (Linux) (push) Waiting to run
tinymist::ci / Check Minimum Rust version and Tests (Windows) (push) Waiting to run
tinymist::ci / prepare-build (push) Waiting to run
tinymist::ci / announce (push) Blocked by required conditions
tinymist::ci / build (push) Blocked by required conditions
tinymist::gh_pages / build-gh-pages (push) Waiting to run
fix: emit onSaved signal to exporter when vfs is clean (#1939)
This bugs involves two main component: the compiler and the exporter,
the compiler compiles first and then exporter exports then. it is useful
to emit `CompileSignal::by_fs_events` to exporter even if vfs is clean
at the time we save a document.

An example triggering this bug. When user sets `exportPdf` to `onSave`,
It *bugged*:
1. OnTyped first: User types some character at T1. compiler learns that
the file content is of revision R1. the compiler compiles with revision
R1, which is needed by diagnostics event.
2. OnSaved then: Editor saves the document at T2. the compilation is
skipped early because file content is still under revision R1. In
previous version, The compilation is skipped and therefore the export is
also skipped. This is *bugged* if user sets `exportPdf` to `onSave`,
because the exporter is not run in both steps.

This PR emits the onSaved signals to both the compiler and the exporter
in the step 2.
2025-07-30 04:49:30 +08:00
..
src fix: emit onSaved signal to exporter when vfs is clean (#1939) 2025-07-30 04:49:30 +08:00
Cargo.toml build: generate docs with internal links (#1831) 2025-06-22 15:28:27 +08:00
README.md docs: improve contributing and development guide (#976) 2024-12-10 22:30:25 +08:00

tinymist

This crate provides a CLI that starts services for Typst [taɪpst]. It provides:

  • tinymist probe: Do nothing, which just probes that the binary is working.
  • tinymist lsp: A language server following the Language Server Protocol.
  • tinymist preview: A preview server for Typst.
  • tinymist --help Learn more about the CLI.

Usage

See Features: Command Line Interface.

Documentation

See Crate Docs.

Also see Developer Guide: Tinymist LSP.

Contributing

See CONTRIBUTING.md.