extensions/markdown-language-features/src/languageFeatures/copyPaste.ts/PasteEditProvider/provideDocumentPasteEdits
class PasteEditProvider:	async provideDocumentPasteEdits(
		document: vscode.TextDocument,
		_ranges: readonly vscode.Range[],
		dataTransfer: vscode.DataTransfer,
		token: vscode.CancellationToken,
	): Promise<vscode.DocumentPasteEdit | undefined> {
		const enabled = vscode.workspace.getConfiguration('markdown', document).get('experimental.editor.pasteLinks.enabled', true);
		if (!enabled) {
			return;
		}

		if (document.uri.scheme === Schemes.notebookCell) {
			return;
		}

		for (const imageMime of supportedImageMimes) {
			const file = dataTransfer.get(imageMime)?.asFile();
			if (file) {
				const edit = await this._makeCreateImagePasteEdit(document, file, token);
				if (token.isCancellationRequested) {
					return;
				}

				if (edit) {
					return edit;
				}
			}
		}

		const snippet = await tryGetUriListSnippet(document, dataTransfer, token);
		return snippet ? new vscode.DocumentPasteEdit(snippet) : undefined;
	}