Beispiel #1
0
        private IEnumerable <ITagSpan <TTag> > GetTags(NormalizedSnapshotSpanCollection col)
        {
            AdjustRequestSpan(col);
            if (col.Count == 0)
            {
                return(Enumerable.Empty <ITagSpan <TTag> >());
            }

            // Even though it's easier don't do a GetTags request for the overarching SnapshotSpan
            // of the request.  It's possible for the overarching SnapshotSpan to have an order
            // magnitudes more lines than the items in the collection.  This is very possible when
            // large folded regions or on screen.  Instead just request the individual ones
            return(col.Count == 1
                ? _basicTaggerSource.GetTags(col[0])
                : col.SelectMany(_basicTaggerSource.GetTags));
        }
Beispiel #2
0
 private IEnumerable <ITagSpan <TextMarkerTag> > GetTags()
 {
     return(_taggerSource.GetTags(_textView.TextSnapshot.GetExtent()));
 }