extensions/markdown-language-features/src/languageFeatures/documentLinks.ts/MdVsCodeLinkProvider/provideDocumentLinks
class MdVsCodeLinkProvider:	public async provideDocumentLinks(
		document: ITextDocument,
		token: vscode.CancellationToken
	): Promise<vscode.DocumentLink[]> {
		const { links, definitions } = await this._linkProvider.getLinks(document);
		if (token.isCancellationRequested) {
			return [];
		}

		return coalesce(links.map(data => this.toValidDocumentLink(data, definitions)));
	}