Live diagnostics — parse errors and annotation-driven validation
(@required, @type, @min/max, @enum, @pattern, @deprecated,
etc.) update as you type.
Hover — show a key's resolved value + type + every annotation +
any @tag metadata. On a $variable, show its [vars] definition or
the resolved env-var value.
Completion — snippet-driven for @annotations and $variables,
with per-item documentation.
Inlay hints — → "resolved" next to $ENV.X and $user_var
references, : int next to @type:-annotated keys.
Goto definition — Ctrl+Click a $var jumps to its [vars] entry.
Document symbols — outline view with nested sections.
Format — round-trip the file through the dumper.
Color provider — #FF8800 strings get a clickable swatch.
Semantic tokens — 11 token types so your theme can colour
annotations, variables, sections distinctly.
Requirements
Needs the tomlplus-lsp binary on your PATH (or set
tomlplus.serverPath in your VS Code settings).
cargo install tomlplus-lsp
# or download from https://github.com/CarsonKopec/tomlplus/releases
Extension settings
Setting
Default
Purpose
tomlplus.serverPath
tomlplus-lsp
Path to the language server binary. Set to an absolute path if it isn't on PATH.