Editing Terraform
SchematIaC edits are surgical: the extension computes the exact byte range of the expression you changed and splices only that. It never rewrites or reformats a .tf file — comments, alignment and ordering stay exactly as you wrote them.
Re-point a reference
Drag a wire’s source dot onto a different variable, local or resource output. While you drag:
- compatible target rows tint — targets are type-aware, so a list cannot be dropped where a string is expected;
- the wire reads solid over a valid target (dashed means it will not connect);
- a source dot that feeds several wires is inert until you trace a row to narrow it to one, so you can never grab the wrong wire.
Dropping shows the one-line diff of the consuming file. Apply stages it; Cancel stages nothing.
Edit a value
Click a definition in the properties panel and type a new expression. It is parsed as HCL before it can go anywhere — garbage is refused with the reason. A valid edit shows its diff, then stages on Apply.
Staging, Save and the review
Nothing reaches disk before Save. Staged work keeps the Save button live and the canvas marked dirty. Save opens a review of every pending file — the full diff per file, with per-file Revert — and writes only what survives the review.
The pre-save review lists Terraform changes only. Layout moves and other .canvas changes are saved without ceremony — the .canvas file is machine-managed, not one of your files.
Reload
Reload re-reads every file from disk. An untouched canvas follows disk silently as you edit files in the text editor; if you have staged work, Reload asks before discarding it.