Class CompletionProviderManager

A manager for completion providers.

Hierarchy

  • CompletionProviderManager

Implements

Constructors

Properties

_activeProviders: any

The set of activated providers

_activeProvidersChanged: any
_autoCompletion: any

Flag to enable/disable continuous hinting.

_generateHandler: any

Helper to generate a completer handler from provided context.

_inlineCompleterFactory: any
_inlineCompleterSettings: any
_inlineProviders: any

The inline completion provider map, the keys are id of provider

_mostRecentContext: any

The completer context map, the keys are id of widget and values are the most recent context objects.

_panelHandlers: any

The completer handler map, the keys are id of widget and values are the completer handler attached to this widget.

_providers: any

The completion provider map, the keys are id of provider

_showDoc: any

Flag to show or hide the document panel.

_timeout: any

Timeout value for the completion provider.

disposeHandler: any

Helper to dispose the completer handler on widget disposed event.

Param

id of the widget

Param

the handler to be disposed.

generateReconciliator: any

Helper function to generate a ProviderReconciliator with provided context. The isApplicable method of provider is used to filter out the providers which can not be used with provided context.

Param

the current completer context

Inline completer actions.

Accessors

Methods

  • Activate the providers by id, the list of ids is populated from user setting. The non-existing providers will be discarded.

    Parameters

    • providerIds: string[]

      Array of strings with ids of provider

    Returns void

  • Invoke the completer in the widget with provided id.

    Parameters

    • id: string

      the id of notebook panel, console panel or code editor.

    Returns void

  • Returns void

  • Register a completer provider with the manager.

    Parameters

    Returns void

  • Activate select command in the widget with provided id.

    Parameters

    • id: string

      the id of notebook panel, console panel or code editor.

    Returns void

  • Enable/disable continuous hinting mode.

    Parameters

    • value: boolean

    Returns void

  • Set inline completer factory.

    Parameters

    Returns void

  • Enable/disable the document panel.

    Parameters

    • showDoc: boolean

    Returns void

  • Set provider timeout.

    Parameters

    • timeout: number

      value of timeout in millisecond.

    Returns void

  • Create or update completer handler of a widget with new context.

    Parameters

    Returns Promise<void>

Generated using TypeDoc