diff options
author | Kirill Osenkov <github@osenkov.com> | 2018-02-14 23:54:42 +0300 |
---|---|---|
committer | Kirill Osenkov <github@osenkov.com> | 2018-02-14 23:54:42 +0300 |
commit | 8f4dbae806287ce5ecf847c3178faad2f6b0bcd9 (patch) | |
tree | d8f5918f34a330e7f3d94bcc3e806ab099382c95 /src/Text/Impl/ClassificationAggregator/ClassifierAggregator.cs | |
parent | 4ec55c3dc69faf56a9840c621512523390a2575b (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.cs | 6 |
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 |