[JS] Make "Go to implementations" go to the implementation (.js) instead of type definitions file (.d.ts) #41179
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Issue Type: Feature Request
I'm using a node.js library (puppeteer; installed with npm) which for each
<blah>.d.tsfile has<blah>.d.ts.mapand<blah>.jsfiles. In my code, rightclicking on any function/class/member defined in the.d.tsfiles and choosing "Go to implementations" (or just Ctrl+Leftclicking it) takes me to.d.tsfile instead of.jsfile. Also, the.d.tsfile VSC takes you to comes from%localappdata%\Microsoft\TypeScript\4.0\node_modules\@types\puppeteerdir instead of<projectroot>\node_modules\puppeteer\lib\cjs\puppeteer\commonwhere the source code lives. It's mildly infuriating to have to search through library's source files and find the one .js file.Example:
Right-click the
launchfunction, "Go to implementations" and VSCode will happily show you the.d.tsfile.VS Code version: Code 1.50.1 (d2e414d9e4239a252d1ab117bd7067f125afd80a, 2020-10-13T15:06:15.712Z)
OS version: Windows_NT x64 10.0.18363
The text was updated successfully, but these errors were encountered: