Datalayer VS Code Extension - v0.0.17
    Preparing search index...

    LSP Tab completion provider for notebook cells. Provides dropdown menu completions (triggered by Tab key). Supports Python (via Pylance) and Markdown (via built-in VS Code markdown LSP).

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    identifier: "@datalayer/lsp-tab-provider"

    Unique identifier for this provider

    name: "LSP (Python & Markdown)"

    Human-readable name displayed in UI

    rank: 600

    Provider rank - higher rank = higher priority (600 > kernel's 550)

    Methods

    • Fetch completion suggestions from LSP for dropdown menu.

      Parameters

      • request: IRequest

        Completion request with text and cursor position.

      • context: any

        Completion context with widget, editor, session.

      Returns Promise<ICompletionItemsReply<ICompletionItem>>

      Promise resolving to completion reply for dropdown.

    • Check if this provider is applicable to the current context. Returns true for Python and Markdown cells (LSP works without kernel).

      Parameters

      • context: any

        Completion context with widget, editor, session.

      Returns Promise<boolean>

      Promise resolving to true if provider should be used.