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

    Tool for creating LOCAL file-based Datalayer Jupyter notebooks in the current workspace. Implements VS Code's LanguageModelTool interface for Copilot integration.

    IMPORTANT: Use this tool when user says "local" or "file" or wants a Datalayer notebook in workspace. Do NOT use this for cloud/remote notebooks - use CreateDatalayerRemoteNotebookTool instead.

    Key characteristics:

    • Creates .ipynb file on local disk
    • Stored in workspace folder
    • Not uploaded to cloud
    • Opens with Datalayer custom editor

    Implements

    • LanguageModelTool<ICreateDatalayerLocalNotebookParameters>
    Index

    Constructors

    Methods

    • Executes the tool - creates a local notebook file and opens it with Datalayer editor. Creates a real file on disk (not untitled) to ensure proper loading.

      Supports optional filename parameter from Copilot natural language input.

      Parameters

      • options: LanguageModelToolInvocationOptions<ICreateDatalayerLocalNotebookParameters>
      • _token: CancellationToken

      Returns Promise<LanguageModelToolResult>

    • Prepares the tool invocation with user-facing messages. Called before the tool executes to show confirmation dialog.

      Parameters

      • options: LanguageModelToolInvocationPrepareOptions<
            ICreateDatalayerLocalNotebookParameters,
        >
      • _token: CancellationToken

      Returns Promise<
          {
              confirmationMessages: { message: MarkdownString; title: string };
              invocationMessage: string;
          },
      >