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

    VS Code LLM-powered inline completion provider for Jupyter notebooks.

    Uses VS Code's Language Model API (Copilot and other registered LLM providers) to provide intelligent code completions in notebook cells.

    Implements

    • IInlineCompletionProvider<IInlineCompletionItem>
    Index

    Constructors

    Properties

    identifier: "@vscode/llm-copilot"
    name: "VS Code Copilot"

    Accessors

    Methods

    • Convert cell to text for LLM context.

      Code cells are included as-is. Markdown cells are converted to comments.

      Parameters

      • cell: any

        Notebook cell

      Returns string

      Cell content as text

    • Extract context from notebook cells.

      Includes ALL cells before and after the active cell to provide maximum context. Markdown cells are converted to comments.

      Parameters

      • request: any

        Completion request

      • context: IInlineCompletionContext

        Completion context

      Returns { language: string; prefix: string; suffix: string }

      Prefix, suffix, and language for LLM prompt

    • Fetch inline completion suggestions.

      Parameters

      • request: any

        Completion request with text and cursor offset

      • context: IInlineCompletionContext

        Completion context (notebook panel, active cell, etc.)

      Returns Promise<IInlineCompletionList<IInlineCompletionItem>>

      Promise resolving to list of completion items

    • Get LLM completion via message passing to extension.

      Parameters

      • prefix: string

        Code before cursor

      • suffix: string

        Code after cursor

      • language: string

        Programming language

      Returns Promise<string>

      Completion string or null if no models available