Where in the github source is the code for handling structural search and replace?

Answered

I just think this is one of the coolest features in Jetbrains IDEs. I use it all the time but never understood how it worked, since it seems to somehow be able to handle partial and/or ambiguous AST parses.

I'd also love to learn how to fix the Typescript structural search which is broken on TSX.

0
2 comments

Please see com.intellij.structuralsearch.StructuralSearchProfile. Please file bugs for Typescript in issue tracker, Thank you.

0

Here is a direct link: https://github.com/JetBrains/intellij-community/blob/671dd1ad2accec8cf5db6ecaa01a93bd4c89580e/platform/structuralsearch/source/com/intellij/structuralsearch/StructuralSearchProfile.java#L43

Unfortunately the JavaScript/TypeScript support is not open source, so you won't be able to help fix Typescript Structural Search. So please file issue reports for any bugs you find and link to them in this thread.

0

Please sign in to leave a comment.