Struct CompletionEntry
Represents an entry for code completion.
public struct CompletionEntry
- Inherited Members
Constructors
CompletionEntry(string, SymbolKind, ParsePosition, ParsePosition)
Creates a new completion entry
public CompletionEntry(string completion, SymbolKind kind, ParsePosition startPosition, ParsePosition position)
Parameters
completion
stringthe text of the completion
kind
SymbolKindthe completion kind
startPosition
ParsePositionthe start position
position
ParsePositionthe position where the completion was requested
Properties
Completion
The text of the completion
public string Completion { readonly get; init; }
Property Value
Detail
A human-readable string with additional information about this item, like type or symbol information.
public string Detail { readonly get; init; }
Property Value
Documentation
A human-readable string that represents a doc-comment.
public string Documentation { readonly get; init; }
Property Value
FilterText
A string that should be used when filtering a set of completion items.When omitted the label is used as the filter text for this item.
public string FilterText { readonly get; init; }
Property Value
Kind
The symbol kind associated with the completion entry
public SymbolKind Kind { readonly get; init; }
Property Value
Label
The label of the completion shown to the user
public string Label { readonly get; init; }
Property Value
Length
The length of the completion
public ParsePositionDelta Length { readonly get; init; }
Property Value
SortText
A string that should be used when comparing this item with other items.When omitted the label is used as the sort text for this item.
public string SortText { readonly get; init; }
Property Value
StartPosition
The start position of the completion
public ParsePosition StartPosition { readonly get; init; }