docs/vscode-configuration.md
This document describes configuration options for the RustOwl VS Code extension.
Install the extension from the Marketplace or Open VSX. The extension will download and run the rustowl binary automatically when activated.
The VS Code extension exposes configurable settings and commands. Here are the concrete settings and behavior derived from code.
rustowl.underlineThickness (string) — The stroke thickness of the underline line. Allowed values: "1", "2", "3", "4".rustowl.lifetimeColor (string) — The color of the lifetime.rustowl.moveCallColor (string) — The color of the move/call.rustowl.immutableBorrowColor (string) — The color of the immutable borrow.rustowl.mutableBorrowColor (string) — The color of the mutable borrow.rustowl.outliveColor (string) — The color of the outlive.rustowl.displayDelay (number) — Delay in displaying underlines (ms).rustowl.highlightBackground (boolean) — Highlight text background instead of underline.rustowl.defaultEnabled (boolean) — Enabled by default.rustowl.hover — manually request hover/decorations for current selection.rustowl.toggle — toggle decorations on/off (status bar changes accordingly).rustowl binary using bootstrap.ts and starts an LSP client pointing at the executable.rustowl/analyze to the server (if enabled).displayDelay ms the extension sends rustowl/cursor and applies decorations returned by server.Add settings to .vscode/settings.json:
{
"rustowl.displayDelay": 2000,
"rustowl.defaultEnabled": true,
"rustowl.lifetimeColor": "#00cc00",
"rustowl.immutableBorrowColor": "#0000cc",
"rustowl.mutableBorrowColor": "#cc00cc",
"rustowl.moveCallColor": "#cccc00",
"rustowl.outliveColor": "#cc0000",
"rustowl.highlightBackground": false,
"rustowl.underlineThickness": 2
}
rustowl executable is in PATH or let the extension download it (bootstrap).