Go To Definition for JSDoc makes inline documentation links jump to TypeScript workspace symbols even when the current file does not import the symbol.
Features
Jump from JSDoc inline links to workspace TypeScript symbols.
Supports unimported symbols such as {@link 'useReadableDrawingItemSettingsQuery'}.
Falls back to a TypeScript AST scan when VS Code's workspace symbol provider has no result.
Usage
/**
* Reads drawing settings from the shared query.
* See {@link 'useReadableDrawingItemSettingsQuery'}.
*/
Place the cursor inside the link target and run VS Code's Go to Definition command.
Supported Links
{@link SymbolName}
{@link 'SymbolName'}
{@link "SymbolName"}
{@link Namespace.SymbolName}
{@linkplain SymbolName}
{@linkcode SymbolName}
How It Resolves
Ask VS Code's workspace symbol provider for the exact symbol.
If nothing is found, scan TypeScript and JavaScript files with the TypeScript AST.
The fallback skips common generated and dependency directories such as node_modules, dist, out, .next, and .git.
Development
pnpm install
pnpm run check
pnpm run package
To try the extension locally, open this folder in VS Code and run the Run Go To Definition Extension launch configuration.
Publishing
export VSCE_PAT="your-marketplace-token"
pnpm run package
pnpm run publish