Theia API Documentation v1.65.0
    Preparing search index...

    Provides additional metadata about how a DocumentDropEditProvider works.

    interface DocumentDropEditProviderMetadata {
        dropMimeTypes: readonly string[];
        providedDropEditKinds?: readonly DocumentDropOrPasteEditKind[];
    }
    Index

    Properties

    dropMimeTypes: readonly string[]

    List of DataTransfer mime types that the provider can handle.

    This can either be an exact mime type such as image/png, or a wildcard pattern such as image/*.

    Use text/uri-list for resources dropped from the explorer or other tree views in the workbench.

    Use files to indicate that the provider should be invoked if any files are present in the DataTransfer. Note that DataTransferFile entries are only created when dropping content from outside the editor, such as from the operating system.

    providedDropEditKinds?: readonly DocumentDropOrPasteEditKind[]

    List of kinds that the provider may return in provideDocumentDropEdits.

    This is used to filter out providers when a specific kind of edit is requested.