Skip to content

Commit 7e01e0f

Browse files
authored
Add extra notes on files drop mime type (microsoft#180886)
Fixes microsoft#180878
1 parent 39296d2 commit 7e01e0f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/vscode-dts/vscode.proposed.documentPaste.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ declare module 'vscode' {
6666
*
6767
* This can either be an exact mime type such as `image/png`, or a wildcard pattern such as `image/*`.
6868
*
69-
* Use `files` to indicate that the provider should be invoked if any {@link DataTransferFile files} are present in the {@link DataTransfer}..
69+
* Use `text/uri-list` for resources dropped from the explorer or other tree views in the workbench.
70+
*
71+
* Use `files` to indicate that the provider should be invoked if any {@link DataTransferFile files} are present in the {@link DataTransfer}.
72+
* Note that {@link DataTransferFile} entries are only created when dropping content from outside the editor, such as
73+
* from the operating system.
7074
*/
7175
readonly pasteMimeTypes: readonly string[];
7276
}

src/vscode-dts/vscode.proposed.dropMetadata.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ declare module 'vscode' {
2727
*
2828
* This can either be an exact mime type such as `image/png`, or a wildcard pattern such as `image/*`.
2929
*
30+
* Use `text/uri-list` for resources dropped from the explorer or other tree views in the workbench.
31+
*
3032
* Use `files` to indicate that the provider should be invoked if any {@link DataTransferFile files} are present in the {@link DataTransfer}.
33+
* Note that {@link DataTransferFile} entries are only created when dropping content from outside the editor, such as
34+
* from the operating system.
3135
*/
3236
readonly dropMimeTypes: readonly string[];
3337
}

0 commit comments

Comments
 (0)