mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-04 02:08:17 +00:00
build: bump version to 0.11.2 (#136)
* docs: update documents * fix: correct order of building binaries * build: bump version to 0.11.2 * docs: redirect changelog * docs: update document tips * docs: update insert template in place tips * build: bump typstyle version to 0.11.7
This commit is contained in:
parent
f7fd47d62c
commit
b635f06619
14 changed files with 129 additions and 69 deletions
|
@ -18,9 +18,9 @@ You can record the input during running the editors with Tinymist. You can then
|
|||
|
||||
```sh
|
||||
# Record the input
|
||||
tinymist --mirror input.txt
|
||||
tinymist lsp --mirror input.txt
|
||||
# Replay the input
|
||||
tinymist --replay input.txt
|
||||
tinymist lsp --replay input.txt
|
||||
```
|
||||
|
||||
## Analyze memory usage with DHAT
|
||||
|
@ -34,7 +34,7 @@ cargo build --release --bin tinymist --features dhat-heap
|
|||
The instrumented program is nothing different from the normal program, so you can mine the specific memory usage with a lsp session (recorded with `--mirror`) by replaying the input.
|
||||
|
||||
```sh
|
||||
./target/release/tinymist --replay input.txt
|
||||
./target/release/tinymist lsp --replay input.txt
|
||||
...
|
||||
dhat: Total: 740,668,176 bytes in 1,646,987 blocks
|
||||
dhat: At t-gmax: 264,604,009 bytes in 317,241 blocks
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
//!
|
||||
//! ```sh
|
||||
//! # Record the input
|
||||
//! tinymist --mirror input.txt
|
||||
//! tinymist lsp --mirror input.txt
|
||||
//! # Replay the input
|
||||
//! tinymist --replay input.txt
|
||||
//! tinymist lsp --replay input.txt
|
||||
//! ```
|
||||
|
||||
// pub mod formatting;
|
||||
|
|
|
@ -1,30 +1,4 @@
|
|||
//! # tinymist
|
||||
//!
|
||||
//! This crate provides an integrated service for [Typst](https://typst.app/) [taɪpst]. It provides:
|
||||
//! + A language server following the [Language Server Protocol](https://microsoft.github.io/language-server-protocol/).
|
||||
//!
|
||||
//! ## Architecture
|
||||
//!
|
||||
//! Tinymist binary has multiple modes, and it may runs multiple actors in
|
||||
//! background. The actors could run as an async task, in a single thread, or in
|
||||
//! an isolated process.
|
||||
//!
|
||||
//! The main process of tinymist runs the program as a language server, through
|
||||
//! stdin and stdout. A main process will fork:
|
||||
//! - rendering actors to provide PDF export with watching.
|
||||
//! - compiler actors to provide language APIs.
|
||||
//!
|
||||
//! ## Debugging with input mirroring
|
||||
//!
|
||||
//! You can record the input during running the editors with Tinymist. You can
|
||||
//! then replay the input to debug the language server.
|
||||
//!
|
||||
//! ```sh
|
||||
//! # Record the input
|
||||
//! tinymist --mirror input.txt
|
||||
//! # Replay the input
|
||||
//! tinymist --replay input.txt
|
||||
//! ```
|
||||
//! tinymist LSP mode
|
||||
|
||||
use core::fmt;
|
||||
use std::path::Path;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue