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
Go to definition for nodejs javascript file broken by existance of .d.ts #38474
It would be great if vs code has a flag to ignore *.d.ts files for when going to definition in a javascript project.
I agree with the suggestion that it would improve the user experience if VSCode had an option to prefer JS sources over *.d.ts files or otherwise allow users to never see a *.d.ts file when going to the definition of a JS function.
I'm trying to get Intellisense to work for a javascript project and I'm also running into this issue. Finally got intellisense working but now go to definition ends in the .d.ts files.
Activity
Raynos commentedon May 13, 2020
I am confused why this is a TypeScript issue and not a VS code issue ?
I am trying to use
go to definitionin VS code for JavaScript.Is the JavaScript language server and/or go to definition implemented in TypeScript itself ?
Would a syntax highlighting bug in JavaScript in vs code also be a "microsoft/TypeScript" issue ?
Cc Matt Bierner (@mjbvz)
mjbvz commentedon May 13, 2020
The TypeScript language service powers VS Code's JavaScript and TypeScript IntelliSense
Syntax highlighting comes from https://github.com/Microsoft/TypeScript-TmLanguage
tschaub commentedon May 14, 2020
I agree with the suggestion that it would improve the user experience if VSCode had an option to prefer JS sources over *.d.ts files or otherwise allow users to never see a *.d.ts file when going to the definition of a JS function.
Raynos commentedon Oct 16, 2020
I’ve run into this issue again today.
I would like an option to ignore *.d.ts files always go to the definition of the real javascript source code.
AndreVanKammen commentedon Jan 2, 2021
I'm trying to get Intellisense to work for a javascript project and I'm also running into this issue. Finally got intellisense working but now go to definition ends in the .d.ts files.
okikio commentedon Aug 7, 2021
Is there any progress on this?