extensions/markdown-language-features/src/features/documentLinkProvider.ts/getWorkspaceFolder
function getWorkspaceFolder(document: vscode.TextDocument) {
	return vscode.workspace.getWorkspaceFolder(document.uri)?.uri
		|| vscode.workspace.workspaceFolders?.[0]?.uri;
}