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

    Tool for creating Lexical documents in the CLOUD (Datalayer spaces). Implements VS Code's LanguageModelTool interface for Copilot integration.

    IMPORTANT: Use this tool ONLY when user explicitly says "remote" or "cloud" or "Datalayer space". Do NOT use this for general lexical document creation - use CreateLocalLexicalTool for local documents.

    Key behavior:

    • Creates lexical document in CLOUD (Datalayer platform, not local disk)
    • Requires authentication
    • Opens with Datalayer Lexical Editor
    • Uses default (Personal) space if not specified
    • Syncs across devices

    Copilot will intelligently:

    • Extract lexical_name from user's request (e.g., "meeting notes" → "meeting-notes.lexical")
    • Generate description from context (e.g., "for team collaboration")
    • Default to "Personal" space if space_name not specified

    Implements

    • LanguageModelTool<ICreateRemoteLexicalParameters>
    Index

    Constructors

    Methods

    • Executes the tool - creates a remote lexical document in the specified Datalayer space. Returns the document URI for opening in the editor.

      Parameters

      • options: LanguageModelToolInvocationOptions<ICreateRemoteLexicalParameters>
      • _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<ICreateRemoteLexicalParameters>
      • _token: CancellationToken

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