provideDocumentDropEdits

abstract fun provideDocumentDropEdits(document: TextDocument, position: Position, dataTransfer: DataTransfer, token: CancellationToken): ProviderResult<JsAny>(source)

Provide edits which inserts the content being dragged and dropped into the document.

Parameters

document

The document in which the drop occurred.

position

The position in the document where the drop occurred.

dataTransfer

A DataTransfer object that holds data about what is being dragged and dropped.

token

A cancellation token.