registerDocumentDropEditProvider
fun registerDocumentDropEditProvider(selector: DocumentSelector, provider: DocumentDropEditProvider<*>, metadata: DocumentDropEditProviderMetadata = definedExternally): Disposable(source)
Registers a new DocumentDropEditProvider.
Multiple drop providers can be registered for a language. When dropping content into an editor, all registered providers for the editor's language will be invoked based on the mimetypes they handle as specified by their DocumentDropEditProviderMetadata.
Each provider can return one or more DocumentDropEdits. The edits are sorted using the DocumentDropEdit.yieldTo property. By default the first edit will be applied. If there are any additional edits, these will be shown to the user as selectable drop options in the drop widget.
Parameters
selector
A selector that defines the documents this provider applies to.
provider
A drop provider.
metadata
Additional metadata about the provider.