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

    Class VSCodeToolAdapter<TParams>

    VS Code Tool Adapter

    This adapter bridges VS Code's LanguageModelTool interface to our platform-agnostic core operations. It handles:

    • Document resolution from parameters or active editor
    • Context building (document handle, Datalayer, auth)
    • Confirmation dialog generation
    • Result formatting for VS Code

    Type Parameters

    • TParams

    Implements

    Index

    Constructors

    Methods

    • Executes the tool by delegating to the core operation.

      Parameters

      • options: LanguageModelToolInvocationOptions<TParams>

        Invocation options containing input parameters.

      • _token: CancellationToken

        Cancellation token (unused).

      Returns Promise<LanguageModelToolResult>

      Tool result formatted for VS Code language model.

    • Prepares the tool invocation with user-facing messages.

      Parameters

      • options: LanguageModelToolInvocationPrepareOptions<TParams>

        Invocation preparation options with input parameters.

      • _token: CancellationToken

        Cancellation token (unused).

      Returns Promise<PreparedToolInvocation>

      Invocation message and confirmation details.