VS Code Setup for Infra Lang¶
Quick setup (5 minutes)¶
Step 1: Install Python package¶
Step 2: Install the extension¶
Currently available as a local install only.
See vscode-infra-lang/README.md.
Step 3: Open a .infra file¶
Syntax highlighting activates automatically. Diagnostics appear as you type.
What you'll see¶
- Red underlines: errors (must fix)
- Yellow underlines: warnings (should fix)
- Hover: documentation for keywords
Troubleshooting¶
Diagnostics not showing¶
Check that infra-lang is installed:
Check Python path in VS Code settings:
Ctrl+Shift+P → "Python: Select Interpreter"
Make sure the extension's Python has infra-lang (and pygls for LSP)
installed:
Extension not activating¶
Check the .infra file extension (not .inf or .infra.txt).