Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CompletionItemProvider

A completion item provider provides suggestions to insert or apply at the cursor as the user is typing.

Providers are queried for completions as the user types in any document matching the document selector specified at registration time.

deprecated

Hierarchy

  • CompletionItemProvider

Index

Methods

provideCompletionItems

  • Provide completion items for the given position and document.

    Parameters

    • document: TextDocument

      The document in which the command was invoked.

    • position: Position

      The position at which the command was invoked.

    Returns ProviderResult<CompletionList>

    An array of completions, a completion list, or a thenable that resolves to either. The lack of a result can be signaled by returning undefined, null, or an empty array.

Generated using TypeDoc