提交 a97af6e1 编写于 作者: C CyrusNajmabadi

Fix build break.

上级 ebaaf954
......@@ -21,6 +21,7 @@
using Microsoft.VisualStudio.PlatformUI;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Editor;
using DocumentHighlighting = Microsoft.CodeAnalysis.DocumentHighlighting;
namespace Microsoft.VisualStudio.LanguageServices.FindUsages
{
......@@ -33,14 +34,14 @@ internal partial class StreamingFindUsagesPresenter
/// </summary>
private class DocumentSpanEntry : AbstractDocumentSpanEntry
{
private readonly HighlightSpanKind _spanKind;
private readonly DocumentHighlighting.HighlightSpanKind _spanKind;
private readonly ClassifiedSpansAndHighlightSpan _classifiedSpansAndHighlights;
public DocumentSpanEntry(
AbstractTableDataSourceFindUsagesContext context,
RoslynDefinitionBucket definitionBucket,
DocumentSpan documentSpan,
HighlightSpanKind spanKind,
DocumentHighlighting.HighlightSpanKind spanKind,
string documentName,
Guid projectGuid,
SourceText sourceText,
......@@ -53,9 +54,9 @@ private class DocumentSpanEntry : AbstractDocumentSpanEntry
protected override IList<System.Windows.Documents.Inline> CreateLineTextInlines()
{
var propertyId = _spanKind == HighlightSpanKind.Definition
var propertyId = _spanKind == DocumentHighlighting.HighlightSpanKind.Definition
? DefinitionHighlightTag.TagId
: _spanKind == HighlightSpanKind.WrittenReference
: _spanKind == DocumentHighlighting.HighlightSpanKind.WrittenReference
? WrittenReferenceHighlightTag.TagId
: ReferenceHighlightTag.TagId;
......@@ -163,9 +164,9 @@ private ITextBuffer CreateNewBuffer()
_sourceText.ToString(), contentType);
// Create an appropriate highlight span on that buffer for the reference.
var key = _spanKind == HighlightSpanKind.Definition
var key = _spanKind == DocumentHighlighting.HighlightSpanKind.Definition
? PredefinedPreviewTaggerKeys.DefinitionHighlightingSpansKey
: _spanKind == HighlightSpanKind.WrittenReference
: _spanKind == DocumentHighlighting.HighlightSpanKind.WrittenReference
? PredefinedPreviewTaggerKeys.WrittenReferenceHighlightingSpansKey
: PredefinedPreviewTaggerKeys.ReferenceHighlightingSpansKey;
textBuffer.Properties.RemoveProperty(key);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册