Exemple #1
0
        private static MarkType GetMarkType(IVsVisibleTextMarkerTag tag)
        {
            tag.MarkerType.GetDisplayName(out string name);

            if (name.StartsWith("Breakpoint"))
            {
                return(MarkType.Breakpoint);
            }

            if (name.StartsWith("Tracepoint"))
            {
                return(MarkType.Tracepoint);
            }

            if (name.StartsWith("Bookmark"))
            {
                return(MarkType.Bookmark);
            }

            return(MarkType.Unknown);
        }
Exemple #2
0
 private Mark(IMappingTagSpan <IVsVisibleTextMarkerTag> tag)
 {
     _tag      = tag.Tag;
     _position = tag.Span.Start;
 }