Skip to content

Conversation

@N1ebieski
Copy link
Contributor

@N1ebieski N1ebieski commented Jan 4, 2026

This PR adds “Go to controller” hover links for all Wayfinder definitions.

The feature uses VS Code’s built-in AST for TypeScript files, so it works in .ts and .tsx files, but not in .vue files. Supporting .vue files would require a separate parser, which feels like overkill.

It needs more testing (I rarely work on large React projects) and probably some performance optimization.

ezgif-5d55a9e4ad3d4ea3

@N1ebieski
Copy link
Contributor Author

This PR probably makes no sense, because the @see docblock can look like this:

/**
 * @see [\App\Http\Controllers\Settings\ProfileController::edit](/var/www/react-starter-kit/app/Http/Controllers/Settings/ProfileController.php)
 */
export type Response = Inertia.Pages.Settings.Profile;

and VSCode automatically links to the file. The only issue is that it doesn’t link to a specific line number.

It's a shame I didn't know this earlier :/

@N1ebieski N1ebieski closed this Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant