public void ForceReparse() { var tagger = DeveroomTaggerProvider.GetDeveroomTagger(TextBuffer); tagger?.GetTags( new NormalizedSnapshotSpanCollection(new[] { new SnapshotSpan(TextSnapshot, 0, TextSnapshot.Length) }), true).ToArray(); }
private IEnumerable <DeveroomTag> GetDeveroomTags(IWpfTextView textView) { var tagger = DeveroomTaggerProvider.GetDeveroomTagger(textView.TextBuffer); if (tagger != null) { return(GetVsTagSpans <DeveroomTag, DeveroomTagger>(textView, tagger).Select(t => t.Tag)); } return(Enumerable.Empty <DeveroomTag>()); }
protected IEnumerable <DeveroomTag> GetDeveroomTagsForCaret(IWpfTextView textView, bool forceUpToDate) { var tagger = DeveroomTaggerProvider.GetDeveroomTagger(textView.TextBuffer); if (tagger != null) { var spans = new NormalizedSnapshotSpanCollection(new SnapshotSpan(textView.Caret.Position.BufferPosition, 0)); return(tagger.GetTags(spans, forceUpToDate).Select(t => t.Tag)); } return(Enumerable.Empty <DeveroomTag>()); }
private IEnumerable <DeveroomTag> GetDeveroomTags(IWpfTextView textView) { var tagger = DeveroomTaggerProvider.GetDeveroomTagger(textView.TextBuffer); if (tagger != null) { var spans = new NormalizedSnapshotSpanCollection(new SnapshotSpan(textView.TextSnapshot, 0, textView.TextSnapshot.Length)); return(tagger.GetTags(spans).Select(t => t.Tag)); } return(Enumerable.Empty <DeveroomTag>()); }