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

    Function registerCompletionItemProvider

    • Register a completion provider.

      Multiple providers can be registered for a language. In that case providers are sorted by their score and groups of equal score are sequentially asked for completion items. The process stops when one or many providers of a group return a result. A failing provider (rejected promise or exception) will not fail the whole operation.

      Parameters

      • selector: DocumentSelector

        A selector that defines the documents this provider is applicable to.

      • provider: CompletionItemProvider

        A completion provider.

      • ...triggerCharacters: string[]

        Trigger completion when the user types one of the characters, like . or :.

      Returns Disposable

      A disposable that unregisters this provider when being disposed.