Description placeholder

ExportChatCommand

Constructors

Methods

Constructors

  • Initializes the export chat command.

    Parameters

    • dataModel: DataModelManager

      The data model manager containing the chat data.

    • context: ExtensionContext

      The extension context to register the command with.

    Returns ExportChatCommand

Methods

  • Executes the "browsechat.exportChat" command.

    Prompts the user to select chat segments, choose an export format, select an output location, and then performs the export with progress.

    If any part of the export process fails, shows an error message to the user.

    Returns Promise<void>

  • Export chat segments to the specified file path.

    Parameters

    • segments: ChatSegment[]

      Chat segments to export.

    • outputPath: string

      Path to write the export file to.

    • options: ExportOptions

      Export options, such as format and whether to include metadata.

    Returns Promise<void>

    A promise that resolves when the export is complete.