Table of Contents

Class CompletionGroup

Namespace
RDCore.SDK.Model.Symbols.Completion
Assembly
RDCore.SDK.dll

Candidates a completion list ranks as a tier of their own, before the others or after them (ListOf(string, IReadOnlyList<CompletionGroup>, IReadOnlyList<CompletionCandidate>, Position?, string?)).

public sealed record CompletionGroup : IEquatable<CompletionGroup>
Inheritance
CompletionGroup
Implements
Inherited Members

Constructors

CompletionGroup(IReadOnlyList<CompletionCandidate>, bool, bool)

Candidates a completion list ranks as a tier of their own, before the others or after them (ListOf(string, IReadOnlyList<CompletionGroup>, IReadOnlyList<CompletionCandidate>, Position?, string?)).

public CompletionGroup(IReadOnlyList<CompletionCandidate> Candidates, bool IsSelectedWhenNothingIsTyped = true, bool RanksAfterTheOthers = false)

Parameters

Candidates IReadOnlyList<CompletionCandidate>

The candidates, in the order they rank where the word matches them alike.

IsSelectedWhenNothingIsTyped bool

Whether the best of them is preselected where no part of the word is typed yet. The constants of the Enum an argument's parameter is declared as are: one of them is what is most likely written there. The named arguments are not: a value is as likely as a name, and a name is selected once the word typed matches it.

RanksAfterTheOthers bool

Whether the group ranks after every candidate that is in no group, rather than before them. The named arguments do where the argument at the cursor would be given to a parameter that is not Optional: a value is what is most likely written there (NamedArgumentGroup(SignatureDescription, SignatureSite, string, string)).

Properties

Candidates

The candidates, in the order they rank where the word matches them alike.

public IReadOnlyList<CompletionCandidate> Candidates { get; init; }

Property Value

IReadOnlyList<CompletionCandidate>

IsSelectedWhenNothingIsTyped

Whether the best of them is preselected where no part of the word is typed yet. The constants of the Enum an argument's parameter is declared as are: one of them is what is most likely written there. The named arguments are not: a value is as likely as a name, and a name is selected once the word typed matches it.

public bool IsSelectedWhenNothingIsTyped { get; init; }

Property Value

bool

RanksAfterTheOthers

Whether the group ranks after every candidate that is in no group, rather than before them. The named arguments do where the argument at the cursor would be given to a parameter that is not Optional: a value is what is most likely written there (NamedArgumentGroup(SignatureDescription, SignatureSite, string, string)).

public bool RanksAfterTheOthers { get; init; }

Property Value

bool