Table of Contents

Class CompletionProvider

Namespace
JD.AI.Rendering
Assembly
JD.AI.dll

Provides command and keyword completion candidates for the interactive input.

public sealed class CompletionProvider
Inheritance
CompletionProvider
Inherited Members

Methods

GetCompletions(string)

Returns completions matching the given prefix, ordered alphabetically. Excludes exact matches (no ghost text for a fully typed command).

public IReadOnlyList<CompletionItem> GetCompletions(string prefix)

Parameters

prefix string

Returns

IReadOnlyList<CompletionItem>

Register(string, string?)

Register a completion candidate.

public void Register(string text, string? description = null)

Parameters

text string
description string