Interface DocumentDropEditProvider<T>

Provider which handles dropping of resources into a text editor.

This allows users to drag and drop resources (including resources from external apps) into the editor. While dragging and dropping files, users can hold down shift to drop the file into the editor instead of opening it. Requires editor.dropIntoEditor.enabled to be on.

interface DocumentDropEditProvider<T> {
    provideDocumentDropEdits(document, position, dataTransfer, token): ProviderResult<DocumentDropEdit | DocumentDropEdit[]>;
    provideDocumentDropEdits(document, position, dataTransfer, token): ProviderResult<DocumentDropEdit>;
    resolveDocumentDropEdit?(edit, token): ProviderResult<T>;
}

Type Parameters

Methods