File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
extensions/markdown-language-features/src/languageFeatures/copyFiles Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
6
import * as vscode from 'vscode' ;
7
- import { createEditForMediaFiles as createEditForMediaFiles , tryGetUriListSnippet } from './shared' ;
7
+ import { createEditForMediaFiles as createEditForMediaFiles , mediaMimes , tryGetUriListSnippet } from './shared' ;
8
8
import { Schemes } from '../../util/schemes' ;
9
9
10
10
@@ -67,7 +67,8 @@ class MarkdownImageDropProvider implements vscode.DocumentDropEditProvider {
67
67
export function registerDropIntoEditorSupport ( selector : vscode . DocumentSelector ) {
68
68
return vscode . languages . registerDocumentDropEditProvider ( selector , new MarkdownImageDropProvider ( ) , {
69
69
dropMimeTypes : [
70
- 'text/uri-list'
70
+ 'text/uri-list' ,
71
+ ...mediaMimes ,
71
72
]
72
73
} ) ;
73
74
}
You can’t perform that action at this time.
0 commit comments