DocumentDropEditProvider class
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.
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
- @anonymous
Constructors
-
DocumentDropEditProvider({FutureOr<
DocumentDropEdit> provideDocumentDropEdits(TextDocument, Position, DataTransfer, CancellationToken)?}) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
provideDocumentDropEdits
↔ FutureOr<
DocumentDropEdit> Function(TextDocument, Position, DataTransfer, CancellationToken) -
Available on DocumentDropEditProvider, provided by the DocumentDropEditProvider$Typings extension
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited