Skip to content

VS Code Setup for Infra Lang

Quick setup (5 minutes)

Step 1: Install Python package

pip install 'git+https://github.com/TuviDev/infra-lang.git[lsp]'

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:

pip show infra-lang

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:

python -m infra.lsp.server   # should not raise ImportError

Extension not activating

Check the .infra file extension (not .inf or .infra.txt).