Interface ChangeSetElementArgs

interface ChangeSetElementArgs {
    additionalInfo?: string;
    changeSet: ChangeSetImpl;
    chatSessionId: string;
    data?: {
        [key: string]: unknown;
    };
    icon?: string;
    name?: string;
    onDidChange?: Event<void>;
    replacements?: Replacement[];
    state?: "pending" | "applied" | "stale";
    targetState?: string;
    type?: "add" | "modify" | "delete";
    uri: URI;
    apply?(): Promise<void>;
    dispose?(): void;
    open?(): Promise<void>;
    openChange?(): Promise<void>;
    revert?(): Promise<void>;
}

Hierarchy

Properties

additionalInfo?: string
changeSet: ChangeSetImpl

The change set containing this element.

chatSessionId: string

The id of the chat session containing this change set element.

data?: {
    [key: string]: unknown;
}

Type declaration

  • [key: string]: unknown
icon?: string
name?: string
onDidChange?: Event<void>
replacements?: Replacement[]

An array of replacements used to create the new content for the targetState. This is only available if the agent was able to provide replacements and we were able to apply them.

state?: "pending" | "applied" | "stale"
targetState?: string

The state of the file after the changes have been applied. If undefined, there is no change.

type?: "add" | "modify" | "delete"
uri: URI

The URI of the element, expected to be unique within the same change set.

Methods