Skip to content

Commit

Permalink
Remove IAccurateClassifier support
Browse files Browse the repository at this point in the history
It is causing unacceptably long delays
  • Loading branch information
KirillOsenkov committed Mar 19, 2021
1 parent ee92b43 commit 3c5341c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/CopyAsHtml/CopyAsHtml/FormattedStringBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,19 +97,8 @@ private void Append(string text)
_stringBuilder.Append(text);
}


private IList<ClassificationSpan> GetClassificationSpansSync(SnapshotSpan parentSpan)
{
IAccurateClassifier accurateClassifier = _classifier as IAccurateClassifier;

if (accurateClassifier != null && _waitIndicator != null)
{
using (var waitContext = WaitHelper.Wait(_waitIndicator, "HTML Copy", "Formatting document for copying"))
{
return accurateClassifier.GetAllClassificationSpans(parentSpan, waitContext.CancellationToken);
}
}

return _classifier.GetClassificationSpans(parentSpan);
}

Expand Down

0 comments on commit 3c5341c

Please sign in to comment.