7

Say I want to see expressjs code, but when I click var express = require('express') "Go to Definition" vscode will show me the typescript version, not the actual code in node_mudules.

I search the related questions here, e.g. How can I view original javscript library source code in VS Code and not the typescript version? or related issues in github, e.g Support for "Go to definition" of code located in "node_modules". But I still don't get a clue whether that can be done or not. That issue was closed in 2016 and someone said

This is an issue with the typescript brain

What did that mean exactly ? Can that be done or not ?

------ update ------

Found it is actually duplicated as this Go to implementation instead of TypeScript declaration

Qiulang
  • 10,295
  • 11
  • 80
  • 129
  • Does this answer your question? [Go to implementation instead of TypeScript declaration](https://stackoverflow.com/questions/46893661/go-to-implementation-instead-of-typescript-declaration) – starball Feb 14 '23 at 09:00

0 Answers0