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

    Tool for creating LOCAL file-based Lexical documents 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 lexical doc in workspace. Do NOT use this for cloud/remote documents - use CreateRemoteLexicalTool instead.

    Key characteristics:

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

    Implements

    • LanguageModelTool<ICreateLocalLexicalParameters>
    Index

    Constructors

    Methods

    • Executes the tool - creates a local lexical 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<ICreateLocalLexicalParameters>
      • _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<ICreateLocalLexicalParameters>
      • _token: CancellationToken

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