Run Hono CLI requests directly from your route definitions via CodeLens, and debug hono serve from the active file.
This extension ships with bundled @hono/cli and runs hono request / hono serve for you.
Features
CodeLens on routes (CodeLens-only; not available as Command Palette commands)
Detects route definitions such as app.get('/path', ...) and router.post("/path", ...)
Shows CodeLens actions right above the route
CodeLens: Run
Executes hono request for the selected route
Shows results in Output (Hono)
CodeLens: Watch
Executes hono request --watch in an integrated terminal
CodeLens: Debug
Launches hono request with Node inspector (--inspect)
Lets you hit breakpoints in your Hono app code while running a request
Command: Hono: Debug
Runs hono serve in debug mode using the active editor file as the entry point
Starts a Node debug session (integrated terminal)
Usage
CodeLens (Run / Watch / Debug)
Open a Hono app file (TypeScript/JavaScript) that contains new Hono.
Hover around a route definition such as app.get("/hello", ...).
Click a CodeLens action:
Run: runs a single request and prints output to the Output panel
Watch: runs in an integrated terminal; stop it with Ctrl+C
Debug: starts a debug session with the Node inspector while running the request
Command Palette (Hono: Debug)
Open the file you want to use as an entry point (active editor).
Run Hono: Debug from the Command Palette.
The extension runs hono serve in debug mode and starts a Node debug session.
Path parameters
If your route path contains placeholders like /posts/page/:page, the extension will prompt you for values and then run the request with the resolved path.
Configuration
You can configure the extension via VS Code Settings: