IHighlightingsSetScopedAction interface is absent

20 views
Skip to first unread message

Dmitry Dolotovskikh

unread,
Jun 15, 2024, 5:01:01 PM6/15/24
to resharper-plugins
Hi, my custom QuickFix class inherited IHighlightingsSetScopedAction interface 3 years ago. Now after migrate to the latest SDK I see that  IHighlightingsSetScopedAction is missing.

Previously this interface look like that:

public interface IHighlightingsSetScopedAction : IScopedAction
{
    Action<ITextControl> ExecuteAction(IEnumerable<HighlightingInfo> highlightings, ISolution solution, IProgressIndicator progress);
}


and my class use it as:

public abstract class SPQuickFix<THighlighting, TElement> : QuickFixBase, IHighlightingsSetScopedAction
{
public Action<ITextControl> ExecuteAction(IEnumerable<HighlightingInfo> highlightings, ISolution solution, IProgressIndicator progress)
{
    foreach (HighlightingInfo highlightingInfo in highlightings.AsList().WithProgress(progress, BulkText))
    {
        if (highlightingInfo.Highlighting is THighlighting highlighting && highlighting.Element.IsValid())
        {
            Fix(highlighting.Element);
        }
    }

    return null;
}
}

Is there a replacement of this interface in new SDK or something else?

Slava Trenogin

unread,
Jun 18, 2024, 12:17:03 AM6/18/24
to resharpe...@googlegroups.com
Please ask in #dotnet-pluginwriters slack channel.

--
You received this message because you are subscribed to the Google Groups "resharper-plugins" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resharper-plug...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/resharper-plugins/e9cc53d1-3638-44b8-a1a6-1d9209aaa117n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages