
I'm running your ReplaceAll sample in our own code as:
options = new EditorSearchOptions
{
FindText = e.OriginalText,
ReplaceText = e.ReplacementText,
PatternProvider = SearchPatternProviders.Normal
};
resultSet = editor.ActiveView.Searcher.ReplaceNext(options);
FWIW, the above code is replacing one word in the document. After checking the results with:
if (resultSet.Results.Count == 0)
and
if (resultSet.Results[0].ReplaceSnapshotRange.IsDeleted)
{
}
The "word" is marked deleted but I don't see my AcitveView.CurrentSnapShot get updated.
Am I missing something?