From 3c5341c52dfe79ff456b5bd54c46000817f156af Mon Sep 17 00:00:00 2001 From: Kirill Osenkov Date: Fri, 19 Mar 2021 13:54:51 -0700 Subject: [PATCH] Remove IAccurateClassifier support It is causing unacceptably long delays --- src/CopyAsHtml/CopyAsHtml/FormattedStringBuilder.cs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/CopyAsHtml/CopyAsHtml/FormattedStringBuilder.cs b/src/CopyAsHtml/CopyAsHtml/FormattedStringBuilder.cs index 8968f3a..2ce5d6f 100644 --- a/src/CopyAsHtml/CopyAsHtml/FormattedStringBuilder.cs +++ b/src/CopyAsHtml/CopyAsHtml/FormattedStringBuilder.cs @@ -97,19 +97,8 @@ private void Append(string text) _stringBuilder.Append(text); } - private IList 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); }