Find all TypeScriptClass.class PsiElements in a project

Is there a convenient way to find all typescript classes as PsiElement in a project scope (would be also great if it would respect the closest tsconfig.json location)?

0
1 comment

Hi. You can use the class com.intellij.psi.stubs.StubIndex and the key:

JSClassIndex.KEY

 Also you should use the scope to filter non-ts classes (like es6):

JSResolveUtil.getResolveScope(context) 

 

0

Please sign in to leave a comment.