You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/vscode-dts/vscode.d.ts
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9819,8 +9819,9 @@ declare module 'vscode' {
9819
9819
* The mime types that the {@link TreeDragAndDropController.handleDrop `handleDrop`} method of this `DragAndDropController` supports.
9820
9820
* This could be well-defined, existing, mime types, and also mime types defined by the extension.
9821
9821
*
9822
-
* Each tree will automatically support drops from its own `DragAndDropController`. To support drops from other trees,
9823
-
* you will need to add the mime type of that tree. The mime type of a tree is of the format `application/vnd.code.tree.<treeidlowercase>`.
9822
+
* To support drops from trees, you will need to add the mime type of that tree.
9823
+
* This includes drops from within the same tree.
9824
+
* The mime type of a tree is recommended to be of the format `application/vnd.code.tree.<treeidlowercase>`.
9824
9825
*
9825
9826
* To learn the mime type of a dragged item:
9826
9827
* 1. Set up your `DragAndDropController`
@@ -9834,6 +9835,8 @@ declare module 'vscode' {
9834
9835
/**
9835
9836
* The mime types that the {@link TreeDragAndDropController.handleDrag `handleDrag`} method of this `TreeDragAndDropController` may add to the tree data transfer.
9836
9837
* This could be well-defined, existing, mime types, and also mime types defined by the extension.
9838
+
*
9839
+
* The recommended mime type of the tree will be automatically added.
9837
9840
*/
9838
9841
readonly dragMimeTypes: string[];
9839
9842
@@ -9842,7 +9845,8 @@ declare module 'vscode' {
9842
9845
* Extensions can use `handleDrag` to add their {@link DataTransferItem `DataTransferItem`} items to the drag and drop.
9843
9846
*
9844
9847
* When the items are dropped on **another tree item** in **the same tree**, your `DataTransferItem` objects
9845
-
* will be preserved. See the documentation for `DataTransferItem` for how best to take advantage of this.
9848
+
* will be preserved. Use the recommended mime type for the tree (`application/vnd.code.tree.<treeidlowercase>`) to add
9849
+
* tree objects in a data transfer. See the documentation for `DataTransferItem` for how best to take advantage of this.
9846
9850
*
9847
9851
* To add a data transfer item that can be dragged into the editor, use the application specific mime type "text/uri-list".
9848
9852
* The data for "text/uri-list" should be a string with `toString()`ed Uris separated by newlines. To specify a cursor position in the file,
0 commit comments