Theia API Documentation v1.66.0
    Preparing search index...

    Interface TerminalCompletionItem

    Represents a completion suggestion for a terminal command line.

    const item = {
    label: '-A',
    replacementIndex: 3,
    replacementLength: 1,
    detail: 'List all entries except for . and .. (always set for the super-user)',
    kind: TerminalCompletionItemKind.Flag
    };

    The fields on a completion item describe what text should be shown to the user
    and which portion of the command line should be replaced when the item is accepted.
    interface TerminalCompletionItem {
        detail?: string;
        documentation?: string | MarkdownString;
        kind?: TerminalCompletionItemKind;
        label: string | CompletionItemLabel;
        replacementIndex: number;
        replacementLength: number;
    }
    Index

    Properties

    detail?: string

    The completion's detail which appears on the right of the list.

    documentation?: string | MarkdownString

    A human-readable string that represents a doc-comment.

    The completion's kind. Note that this will map to an icon.

    label: string | CompletionItemLabel

    The label of the completion.

    replacementIndex: number

    The index of the start of the range to replace.

    replacementLength: number

    The length of the range to replace.