Typescript: VS "Find All Links" Program Code

One of the things that I like about Typescript in VS Code is the ability to find all the function references using Shift + F12 (or right-click). Is it possible to get this mapping programmatically or export it somehow?

The result will contain the following information:

fileA.ClassA.methodA is referenced in fileB.ClassB.methodB

Since this is easy to do “manually,” I hope that it can also be done programmatically, but I'm not sure which interfaces are available.

EDIT

Since this question gets empty voices, I would like to mention that stackoverflow is the place where VS Code recommends asking questions:

enter image description here

enter image description here

+6
source share
2 answers

API . TypeScript JS API (tsc - ), . , , , TS VSC .

AST , .

+3

ts-simple-ast. .findReferences() (. ).

0

Source: https://habr.com/ru/post/1692043/


All Articles