Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Osenkov <github@osenkov.com>2018-02-14 23:54:42 +0300
committerKirill Osenkov <github@osenkov.com>2018-02-14 23:54:42 +0300
commit8f4dbae806287ce5ecf847c3178faad2f6b0bcd9 (patch)
treed8f5918f34a330e7f3d94bcc3e806ab099382c95 /src/Text/Impl/ClassificationAggregator/ClassifierAggregator.cs
parent4ec55c3dc69faf56a9840c621512523390a2575b (diff)
Update to VS-Platform source as of 3c4ef6e5fcb2717a52d5ba74d1cd1dfe64d16342.
Diffstat (limited to 'src/Text/Impl/ClassificationAggregator/ClassifierAggregator.cs')
-rw-r--r--src/Text/Impl/ClassificationAggregator/ClassifierAggregator.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Text/Impl/ClassificationAggregator/ClassifierAggregator.cs b/src/Text/Impl/ClassificationAggregator/ClassifierAggregator.cs
index 7ccd6cb..b10eee8 100644
--- a/src/Text/Impl/ClassificationAggregator/ClassifierAggregator.cs
+++ b/src/Text/Impl/ClassificationAggregator/ClassifierAggregator.cs
@@ -97,11 +97,17 @@ namespace Microsoft.VisualStudio.Text.Classification.Implementation
/// </returns>
public IList<ClassificationSpan> GetClassificationSpans(SnapshotSpan span)
{
+ if (_tagAggregator == null)
+ return new List<ClassificationSpan>(0);
+
return this.InternalGetClassificationSpans(span, _tagAggregator.GetTags(span));
}
public IList<ClassificationSpan> GetAllClassificationSpans(SnapshotSpan span, CancellationToken cancel)
{
+ if (_tagAggregator == null)
+ return new List<ClassificationSpan>(0);
+
return this.InternalGetClassificationSpans(span, _tagAggregator.GetAllTags(span, cancel));
}
#endregion // Exposed Methods