Lock in $30 Savings on PRO—Offer Ends Soon! ⏳

How OpenTofu uses LSP to power its text editors...

Avatar for Diógenes Fernandes Diógenes Fernandes
November 13, 2025
3

How OpenTofu uses LSP to power its text editors plugins

Talk given at KubeCon NA 2025 on OpenTofu day.

Avatar for Diógenes Fernandes

Diógenes Fernandes

November 13, 2025
Tweet

Transcript

  1. Diógenes Fernandes - OpenTofu Maintainer How OpenTofu uses LSP to

    power its text editors plugins Sponsored by Gruntwork CC BY-SA 4.0
  2. What is going to be shown today? • What is

    LSP and how it works • Tofu-ls features: ◦ Hover ◦ Schema Validation
  3. LSP? https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification • LSP stands for Language Server Protocol •

    Communication between text editors and language servers • Created in 2015 by Microsoft for VS Code • Open-sourced in 2016 with the participation of CodeEnvy and RedHat • Turns a M x N problem into a M + N problem (quote by TJ DeVries) ◦ M editors ◦ N language servers
  4. Meet Tofu-LS server • Released in a lot of different

    package managers • https://github.com/opentofu/tofu-ls • Fork of https://github.com/hashicorp/terraform-ls
  5. What's next? • Refactor capabilities (like renaming symbols) • Improving

    references, definitions, implementations… • Improving performance issues in big projects
  6. That's it! • Special thanks to ◦ Gruntwork ◦ Gamunu

    Balagalla - vscode-opentofu ◦ Ilia @Gogotchuri - OpenTofu Maintainer ◦ OpenTofu maintainers • For support ◦ https://github.com/opentofu/tofu-ls • Talk to us! ◦ https://opentofu.org/slack/