public IList <ClassificationSpan> GetClassificationSpans(SnapshotSpan span) { var spans = new List <ClassificationSpan>(); var text = span.GetText(); string messageType; if (BuildMonitorCallback.FilterMessage(text, out messageType)) { string classificationType; if (classificationTypes.TryGetValue(messageType, out classificationType)) { var type = classificationRegistry.GetClassificationType(classificationType); spans.Add(new ClassificationSpan(span, type)); } } return(spans); }
public void StartRemoteBuildLogServer(BuildMonitorCallback buildMonitorCallback, string logPipeUrl) { if (remote != null) { remote.StartRemoteBuildLogServer(buildMonitorCallback, logPipeUrl); } else { legacyRemote.StartRemoteBuildLogServer(buildMonitorCallback, logPipeUrl); } }