Interface IProviderReconciliator

interface IProviderReconciliator {
    fetch(
        request: CompletionHandler.IRequest,
        trigger?: CompletionTriggerKind,
    ): Promise<null | ICompletionItemsReply<ICompletionItem>>;
    fetchInline(
        request: CompletionHandler.IRequest,
        trigger?: InlineCompletionTriggerKind,
        isMiddleOfLine?: boolean,
    ): Promise<null | IInlineCompletionList<IInlineItem>>[];
    shouldShowContinuousHint(
        completerIsVisible: boolean,
        changed: SourceChange,
    ): Promise<boolean>;
}

Implemented by

Methods

  • Check if completer should make request to fetch completion responses on user typing. If the provider with highest rank does not have shouldShowContinuousHint method, a default one will be used.

    Parameters

    • completerIsVisible: boolean

      The visible status of completer widget.

    • changed: SourceChange

      CodeMirror changed argument.

    Returns Promise<boolean>