Syntax-Only Mode
The syntax-only mode is available since tinymisttinymist v0.14.2.
When working under power-saving mode or with resource-consumed projects, typst compilations costs too much CPU and memory resources. From a simple test on a typst document with 200 pages, containing complex figures and WASM plugin calls, editing a large .typ.typ file on a windows laptop (i9-12900H), the CPU and memory usage are as follows:
You can configure the extension to run in syntax only mode, i.e. only performing elementary tasks, like syntax checking, syntax-only code analysis and formatting by setting the tinymist.syntaxOnlytinymist.syntaxOnly to enableenable or onPowerSavingonPowerSaving in the configuration.
The syntax-only mode is known to disable or limit the functionality of the following features:
- typst preview feature.
- compilation diagnostics.
- label completion.
The syntax-only mode will be able to work with following features:
- export PDF or other formats.
- label completion.
If there are any other features that you find it work abnormally, please report issues to the GitHub Issues.