do any of you face this problem , where vscode always take you to the type definition of a function and not the implementation.
For example, I right click on the react setState function as below,
And VS code shows me the typescript file.
If its problem a, how do i fix it. If not then how do I look at the implementation and not the type definition of a function.
This is a limitation of VS Code's intellisense. We don't attempt to parse js from inside node_modules
for IntelliSense, so we have no way of mapping back to the original source code. Instead we rely on *.d.ts
to provide definitions.
These two issues are tracking possible improvements to this:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With