@kkdev92/vscode-ext-kit - v4.1.1
    Preparing search index...

    Interface TreeDragAndDrop<T>

    Moving rows within a tree, or between trees sharing a mime type.

    interface TreeDragAndDrop<T> {
        mimeType: string;
        onDrop(
            sourceIds: readonly string[],
            target: T | undefined,
        ): void | Promise<void>;
    }

    Type Parameters

    • T
    Index
    mimeType: string

    Carries the dragged ids. Convention: application/vnd.code.tree.<viewid>.

    • Called after a drop with the dragged items' ids, because ids are what reliably survive the drag's serialisation. Redrawing is the handler's job.

      Parameters

      • sourceIds: readonly string[]
      • target: T | undefined

      Returns void | Promise<void>