SaTeX v0.2.7

VS Code extension

Static analysis for LaTeX and TeX documents, powered by SaTeX and its built-in language server (satex lsp): diagnostics, lints and navigation for .tex, .sty, .cls and .bib files.

The extension lives in editors/vscode/. Other editors: IntelliJ, and any LSP client through the language server.

Features

Requirements

satex uses your installed TeX distribution (kpsewhich, pdflatex, ...). TeX Live is not bundled, as it is far too large. Install TeX Live, MiKTeX or MacTeX yourself. The extension warns if kpsewhich or pdflatex is not on the PATH.

The platform-specific packages bundle the matching satex binary. The universal package does not. It uses satex from the PATH (cargo install satex-analyzer).

Settings

Setting Description
satex.path Path to the satex binary. Empty: bundled binary, then satex on the PATH. User settings only.
satex.statusBar.enabled Show satex in the status bar.
satex.server.maxMemory Most memory one analysis may hold (2GiB).
satex.server.maxCores CPU cores the server may use on Linux, through its cgroup (2, 0 for no cap).
satex.server.niceness Scheduling priority of the server (10). Higher yields more to the editor.
satex.server.cgroup On Linux, enforce the memory and core limits in a systemd user scope (true).
satex.findings.whileAnalyzing What the Problems view shows while an analysis runs. hide (default): only findings no pass can change, the rest once the run ends, and the status bar says it runs. keep: the last complete findings. mark: those, saying they may change.
satex.rootFile Root document, relative to the workspace folder. Empty: the active file. Used by the trace and compile commands.
satex.trace.server off, messages or verbose: trace the language server communication.

Try it locally

cargo vscode from the repository builds satex, bundles it and installs the extension (needs Rust, Node and VS Code's code). Then reload the VS Code window.

Or from editors/vscode: