Company
Date Published
Author
Colton Donnelly
Word count
773
Language
English
Hacker News points
None

Summary

At Replit, they've made it easier to support any project configuration possible by providing intelligent code completion and documentation for all `.replit` files. They used Taplo, an LSP server for TOML files, to achieve this, generating a JSON Schema from their existing Go codebase that includes descriptions for each field. To document the `Command` type, they developed a custom schema generator function that produces a JSON Schema with descriptions for all fields, including those used in different contexts. Additionally, Replit has introduced a new Nix module called "replit" that provides LSP configuration for the `.replit` file and is loaded automatically in every Repl. This change aims to make editing the `.replit` file a more seamless experience.