Find and replace is not working for vs extension custom editor in VS2022

Soumabha Sarkar 41 Reputation points
2022-05-27T12:53:42.937+00:00

Find and replace is not working for custom editor in VS2022. It works in VS2019. We have implemented IVsFindTarget for our editor.

In fact, once I click Find Next, none of the IVsFindTarget methods are getting hit and it is not able to find the search word from the text.

Ideally when I click Find Next, IVsFindTarget.Find method should be invoked. Please correct me if I am wrong.

The view has the implementation of the following interface

IVsWindowPane,IVsStatusbarUser,IVsFindTarget, IVsFindTarget2,IVsTextImage, IVsTextSpanSet, IVsTextBuffer, IVsTextView, IVsCodeWindow,IVsTextLines, IVsDpiAware

Community Center | Not monitored
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.