Hi, is it possible to detect a function and be able to “Go to Definition” in vscode? In Visual Studio 2019 I can usually CTRL+Click it and go straight to the declared file but I can’t figure out how to do this in vscode. It’s a simple feature so I’m not sure why it’s not working for me.

Here is an image of my setup. It’s a very basic web app for a learning project on how to use TypeScript. I have a bunch of TypeScript files inside the app file and tsconfig.json converted it all for me in JavaScript in the site.js file.

Post image

Functions work but cannot go to definition

I can confirm that the app works as expected and the JavaScript is functioning correctly, but it’s just a case of having no intellisense which is frustrating.

Any ideas or advice? I have ESLint extension but it doesn’t fix it.



Source link

Write A Comment