Liking cljdoc? Tell your friends :D
ClojureScript only.

dots.vscode.document-drop-edit-provider

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.

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.
raw docstring

provide-document-drop-editscljs

(provide-document-drop-edits document-drop-edit-provider
                             document
                             position
                             data-transfer
                             token)

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

Parameters:

  • document: TextDocument - The document in which the drop occurred.
  • position: Position - The position in the document where the drop occurred.
  • data-transfer: DataTransfer - A {@link DataTransfer } object that holds data about what is being dragged and dropped.
  • token: CancellationToken - A cancellation token.

Returns: ProviderResult<DocumentDropEdit> - A {@link DocumentDropEdit} or a thenable that resolves to such. The lack of a result can be signaled by returning undefined or null.

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

**Parameters:**
- `document`: `TextDocument` - The document in which the drop occurred.
- `position`: `Position` - The position in the document where the drop occurred.
- `data-transfer`: `DataTransfer` - A {@link DataTransfer } object that holds data about what is being dragged and dropped.
- `token`: `CancellationToken` - A cancellation token.

**Returns:** `ProviderResult<DocumentDropEdit>` - A {@link DocumentDropEdit} or a thenable that resolves to such. The lack of a result can be
signaled by returning `undefined` or `null`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close