Class PineCompletionProvider

Implements

  • CompletionItemProvider

Constructors

Properties

activeArg: null | string = null
argumentCompletionsFlag: boolean = false
completionItems: CompletionItem[] = []
docType: any
isMapNew: any
map: any
match: undefined | string = undefined
namespaces: any
sigCompletions: Record<string, any> = {}
userDocs: any

Methods

  • Provides completion items for argument completions.

    Parameters

    • document: TextDocument

      The current document.

    • position: Position

      The current position within the document.

    • docs: Record<string, any>[]

      The documentation for the arguments.

    Returns Promise<never[] | CompletionList<CompletionItem>>

    An array of completion items.

  • Checks if completions are available for the current context.

    Returns Record<string, any>[]

    An array of completions.

  • Creates a completion item for the given name and documentation.

    Parameters

    • document: TextDocument

      The current document.

    • name: string

      The name of the item.

    • namespace: null | string

      The namespace of the item, if it's a method.

    • doc: any

      The documentation for the item.

    • position: Position

      The current position within the document.

    • argCompletion: boolean = false

      A flag indicating whether this is an argument completion.

    Returns Promise<null | CompletionItem>

    A CompletionItem object.

  • Determines the kind of a completion item based on its type.

    Parameters

    • Optional kind: string

      The type of the item.

    Returns Promise<any>

    The kind of the completion item.

  • Provides completion items for function completions.

    Parameters

    • document: TextDocument

      The current document.

    • position: Position

      The current position within the document.

    • match: string

      The text to match.

    Returns Promise<undefined | never[]>

    null

  • Provides completion items for the main completions.

    Parameters

    • document: TextDocument

      The current document.

    • position: Position

      The current position within the document.

    Returns Promise<undefined | never[] | CompletionList<CompletionItem>>

    An array of completion items

  • Provides completion items for method completions.

    Parameters

    • document: TextDocument

      The current document.

    • position: Position

      The current position within the document.

    • match: string

      The text to match.

    Returns Promise<undefined | never[]>

    null

  • Provides completion items for the current position in the document.

    Parameters

    • document: TextDocument

      The current document.

    • position: Position

      The current position within the document.

    • token: CancellationToken

      A cancellation token.

    Returns Promise<undefined | null | CompletionList<CompletionItem> | CompletionItem[]>

    An array of completion items.

Generated using TypeDoc