Write .rf.hcl with diagnostics, completion, hover, definitions and formatting.
The extension adds syntax highlighting and launches rootform lsp from your
local CLI. It ships no compiler and downloads no Rootform binary. Editing
executes no providers and makes no cloud calls.
- Install Rootform and verify
rootform version. - Install the extension in VS Code 1.133 or later.
- Open a trusted workspace containing
.rf.hclfiles.
The extension uses rootform from VS Code's PATH. For another location, set
Rootform: Server Path:
{
"rootform.server.path": "/absolute/path/to/rootform"
}The setting accepts an absolute path or a command name. Run Rootform: Restart
Language Server after changing the executable. .rf.json files also reach the
server, while VS Code keeps their JSON presentation.
In Restricted Mode, syntax highlighting works and no process starts. A workspace cannot change the executable path until you trust it.
If Rootform is missing, set an absolute path; VS Code may have a different
PATH from your terminal. Initialization times out after 10 seconds. Fix the
setting, then restart the language server. After a successful start, unexpected
server exits have a bounded number of automatic retries.
VS Code guide |
rootform lsp |
Report an issue
Apache-2.0. Third-party notices and Rootform trademark terms apply.