Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 98857

Can vscode "go to definition" show the actual js code in node_modules instead of the typescript version?

$
0
0

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


Viewing all articles
Browse latest Browse all 98857

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>