Repository navigation
Home
Cethric edited this page Apr 11, 2026
·
2 revisions
The trainz-language-server is a Language Server Protocol (LSP) implementation designed to provide rich editing support for Trainz Game Script (.gs) and Soup (.txt) files.
The server is capable of the following:
- Syntax Highlighting: Enhanced semantic tokens for GS and Soup, providing better code readability in supported editors.
- Diagnostics: Real-time error reporting and diagnostics to help identify issues as you code.
- Code Completion: Context-aware completions for GS, making it easier to discover and use available functions and variables.
- Hover Information: Detailed information on symbols and variables when hovering over code.
- Go to Definition: Ability to quickly navigate to the definition of symbols within your GS source code.
- Formatting: Automated code formatting for GS to maintain a consistent style.
- Folding Ranges: Support for code folding in GS and Soup, allowing you to manage large files more efficiently.
- Symbol Indexing: Quick symbol lookup and navigation throughout your project.
-
Soup Validation: Specialized validation for Soup files using the
soup-validatorscrate.