This is the comprehensive VS Code extension for ElysiaJS developers.
Initially focusing on Route Visualization, it aims to provide a full suite of tools for ElysiaJS development.
Features
Route Detection: Automatically finds .get(), .post(), and other HTTP methods.
Group Support: Visualizes nested routes defined with .group().
Prefix Support: Respects new Elysia({ prefix: '/...' }) configurations.
Multi-file Support: Scans all .ts files in your workspace.
Navigation: Click on a route in the tree view to jump directly to the code definition.
Requirements
VSCode ^1.80.0
A TypeScript project using ElysiaJS.
Usage
Open your ElysiaJS project in VSCode.
Click on the Elysia Routes icon in the Activity Bar (Side Bar).
The hierarchy of your routes will be displayed, grouped by file.
Extension Settings
Currently, this extension works out-of-the-box and does not require complex configuration.
Release Notes
0.1.2
Performance Optimization: Implemented smart caching for route parsing. Files are only re-parsed when modified.
Improved UX: Non-blocking background refresh for smoother experience.
0.1.1
Type Safety: Fixed parser type definitions to prevent runtime errors.
Stability: Enhanced error handling during AST traversal.
0.1.0
Path Normalization: Fixed issues with empty paths and trailing slashes.
Robust Parsing: improved handling of edge cases in route definitions.