extensions/markdown-language-features/src/languageFeatures/diagnostics.ts/DiagnosticManager/recomputePendingDiagnostics
class DiagnosticManager:	private async recomputePendingDiagnostics(): Promise<void> {
		const pending = [...this.pendingDiagnostics];
		this.pendingDiagnostics.clear();

		await Promise.all(pending.map(async resource => {
			const doc = await this.workspace.getOrLoadMarkdownDocument(resource);
			if (doc) {
				await this.inFlightDiagnostics.trigger(doc.uri, async (token) => {
					if (this.reporter.isOpen(doc.uri)) {
						const state = await this.recomputeDiagnosticState(doc, token);
						this.linkWatcher.updateLinksForDocument(doc.uri, state.config.enabled && state.config.validateFileLinks ? state.links : []);
						this.reporter.set(doc.uri, state.diagnostics);
					} else {
						this.linkWatcher.deleteDocument(doc.uri);
						this.reporter.delete(doc.uri);
					}
				});
			}
		}));
	}