Udostępnij za pośrednictwem


CompletionItemWithHighlight Struct

Definition

Wraps CompletionItem with information about highlighted parts of its DisplayText.

public value class CompletionItemWithHighlight : IEquatable<Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionItemWithHighlight>
[System.Diagnostics.DebuggerDisplay("{CompletionItem}")]
public struct CompletionItemWithHighlight : IEquatable<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItemWithHighlight>
[<System.Diagnostics.DebuggerDisplay("{CompletionItem}")>]
type CompletionItemWithHighlight = struct
Public Structure CompletionItemWithHighlight
Implements IEquatable(Of CompletionItemWithHighlight)
Inheritance
CompletionItemWithHighlight
Attributes
Implements

Constructors

CompletionItemWithHighlight(CompletionItem, ImmutableArray<Span>)

Constructs CompletionItemWithHighlight with given highlighting. Used when text used to filter the completion list can be found in the DisplayText.

CompletionItemWithHighlight(CompletionItem)

Constructs CompletionItemWithHighlight without any highlighting. Used when the CompletionItem appears in the completion list without being a text match.

Properties

CompletionItem

The completion item

HighlightedSpans

Which parts of DisplayText to highlight

Methods

Equals(Object)
GetHashCode()

Assumption: We won't see two instances of CompletionItemWithHighlight with same CompletionItem but different highlighting. Therefore, we don't calculate hash code for the highlights.

Operators

Equality(CompletionItemWithHighlight, CompletionItemWithHighlight)
Inequality(CompletionItemWithHighlight, CompletionItemWithHighlight)

Explicit Interface Implementations

IEquatable<CompletionItemWithHighlight>.Equals(CompletionItemWithHighlight)

Applies to