Company
Date Published
Author
Joey Schorr
Word count
1631
Language
English
Hacker News points
None

Summary

The Authzed Playground has undergone improvements since its original development, including support for the newly released Schema Configuration Language. To enhance the development experience, syntax highlighting was added to the Monaco editor using a MonarchTokensProvider and DocumentSemanticTokensProvider. The new configuration language introduced concepts like relations and permissions, which required a way to differentiate between them in syntax highlighting. The solution involved registering a custom provider in Monaco that leverages a full TypeScript-based parser to provide semantic information about the entered code. This allows for proper highlighting of relations and permissions within the Playground, providing a better experience for developers working with Authzed's configuration language.