VS Code Extensions
Go To Definition for JSDoc

Go To Definition for JSDoc

by laststance

Go to workspace TypeScript symbols from JSDoc {@link 'SymbolName'} tags without importing them first.

Downloads

9

Rating

— (0)

Version

0.0.3

Last updated

Jun 12, 2026

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.

  • {@link SymbolName}
  • {@link 'SymbolName'}
  • {@link "SymbolName"}
  • {@link Namespace.SymbolName}
  • {@linkplain SymbolName}
  • {@linkcode SymbolName}

How It Resolves

  1. Ask VS Code's workspace symbol provider for the exact symbol.
  2. 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 validate
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

pnpm run package
pnpm run publish:stores

Publishing reads VSCE_PAT and OVSX_PAT from 1Password through .env.1password.

Related extensions