How OpenTofu Uses LSP To Power Its Text Editors Plugins
Talkat OpenTofu Day North America 2025 · on Monday, 2025-11-10· at 15:25· Building B | Level 2 | B203·
summary
OpenTofu ships a language server called tofu-ls that uses LSP over JSON-RPC2 plus hcl/lang utilities to deliver hover, completion, go-to-definition and real‑time diagnostics for HCL files. Schemas come from an open-tofu-schema bundle built by running go generate and invoking the OpenTofu CLI (tofu providers schema -json) for the top ~100 providers, and diagnostics are sent with publishDiagnostics (push model). Hover and schema validation work now; rename/refactor and large‑project performance remain in progress.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 1:06Language Server Protocol
- 3:58OpenTofu LSP server
- 7:13Hover feature
- 14:35Schema validation
- 21:54Future plans
- 23:16Acknowledgments
related talks
34mOpenTofu Registry: The Low-Maintenance & Highly-Available Open Source SaaS
27mCode Smarter, Spend Wiser: Infracost & Open Tofu Unleashed
36mExperiences Building a Language Server Protocol Plugin
44mDeveloping a Language Plugin: LSP versus the Joy of Learning
24mThe OSS IaC Tooling Face-off for Modern Cloud Native Ops
58mGo Tooling
30m"Empowering TYPO3 with Data Sovereign LLMs: An Overview"
40mIntegrating IDEs with Dotty the experimental Scala compiler
