extensions/markdown-language-features/preview-src/index.ts/updateScrollProgress
function updateScrollProgress() {
	state.scrollProgress = window.scrollY / document.body.clientHeight;
	vscode.setState(state);
}