Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add virtual property TextMarkerTagType for SameWordHighLighterBase th… #365

Merged
merged 1 commit into from
Jul 28, 2022

Conversation

RobertvanderHulst
Copy link
Contributor

…at can be overwritten in a subclass to use a different TextMarkerdefinition, so the colors of the TextMarkers can be changed in a subclass.

Defaults to the old value of "MarkerFormatDefinition/HighlightWordFormatDefinition"

…at can be overwritten in a subclass to use a different TextMarkerdefinition, so the colors of the TextMarkers can be changed in a subclass.

Defaults to the old value of "MarkerFormatDefinition/HighlightWordFormatDefinition"
@@ -50,7 +55,7 @@ public class SameWordHighlighterBase : IViewTaggerProvider

internal class HighlightWordTag : TextMarkerTag
{
public HighlightWordTag() : base("MarkerFormatDefinition/HighlightWordFormatDefinition") { }
public HighlightWordTag(string tagName) : base(tagName) { }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we keep the default constructor to make it not break existing contracts?

@RobertvanderHulst
Copy link
Contributor Author

Mads,
This is an internal type. I was wondering why the constructor was public. That did not make sense to me.
I did not want to change that.
But I do not think there is a risk of breaking anything because of the visibility.

@madskristensen madskristensen merged commit f5d1789 into VsixCommunity:master Jul 28, 2022
@madskristensen
Copy link
Contributor

Makes sense. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants