You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Why vscode jump to a .d.ts file when I command click a module #30604
*duplicateIssue identified as a duplicate of another issue(s)javascriptJavaScript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)
When I command click the 'react-redux' I wanna see the source code which is a .js file, but the vscode jump to a .d.ts file instead. How can I fix this?
This is currently a limitation of how the TypeScript server that powers both our JS and TS intellisense works. We use d.ts files for module intellisense in order to provide rich suggestions without having to parse or understand the JavaScript implementation. This is done both for performance reasons and to leverage TS language features when describing JavaScript APIs
*duplicateIssue identified as a duplicate of another issue(s)javascriptJavaScript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)
Activity
tnngo commentedon Jul 13, 2017
JS is weakly typed
vanvanj commentedon Jul 14, 2017
I want the vscode jump to a .js file when I command click the module name. I think it's not about the language is strong typed or weak typed
mjbvz commentedon Jul 14, 2017
Duplicate of microsoft/TypeScript#14479
Duplicate of microsoft/TypeScript#6209
This is currently a limitation of how the TypeScript server that powers both our JS and TS intellisense works. We use
d.tsfiles for module intellisense in order to provide rich suggestions without having to parse or understand the JavaScript implementation. This is done both for performance reasons and to leverage TS language features when describing JavaScript APIsClosing as upstream
hoegge commentedon Jul 18, 2017
But why can't the intellisense find the way to the implementation in the originating .ts file instead of just the .d.ts file?