A tiny VS Code extension that makes JSDoc {@link} references work with Go to Definition — without adding throwaway imports just to navigate.
To make a JSDoc link resolve, you can import a type or value purely so TypeScript can see it. That works — but it turns a comment into plumbing, and fights organize-imports and lint rules. This extension lets the comment stay a comment.
import type { useCanvasViewportQuery } from './queries' /** * See {@link useCanvasViewportQuery}. */
/** * See {@link useCanvasViewportQuery}. */ export function readDrawingSettings() { // ... }
Inline JSDoc links, in every shape — active across TypeScript, TSX, JavaScript, and JSX.
Ask VS Code's workspace symbol provider for an exact match on the link target.
If that misses, scan TypeScript and JavaScript files with the TypeScript AST — handy when the symbol isn't indexed yet.
Ignore generated and dependency folders: node_modules, dist, out, .next, .git.
It doesn't make relative file links native in TypeScript or VS Code — that lives in the long-running language-service discussion. This extension stays on the symbol-navigation side, which keeps it small and predictable.
microsoft/TypeScript#47718 ↗Documentation links should be cheap to write. Install it and run Go to Definition inside any supported JSDoc link.