I think Cursor can do this, if you @codebase, isn’t there something similar in copilot? E.g., your codebase being vectorized, indexed, and used as an embedding?
I have had Cursor review all my file content solving similar things, but I would think it's limited to VSCode search capabilities and IMHO it's not great. I love how Pycharm handles indexing so search is fast and accurate. If they ever get agents going at the same quality as Cursor I would probably go to Pycharm for that advantage alone.