This problem comes and goes, but it's been getting unbearable as times goes on.
The environment:
I am using the latest version of VSCode (1.45.1) on a mac running OSX 10.15.4. with a minimal set of extensions (I have disabled everything I can), namely:
- Markdown All in One 2.8.0
- Markdown Preview Mermaid
- Markdownlint 0.35.1
The problem:
When I am editing a Markdown document with preview alongside it, the text window jumps with the cursor location moving up the window to the point of disappearing at the top.
I am not sure exactly what triggers this behavior, but I suspect it has to do with using any sort of graphic rendering, be it MathJax, Mermaid, or a simple figure.
Online searches show similar behavior reported, and supposedly corrected, several years ago. But nothing recent which surprises me as it is maddening.
The question
Anyone has seen this behavior?
Any idea what could be triggering it?
Update:
- After more than a week trying to fix this, a couple hours after posting this question (and with no changes that I can think of on my part, it seems to have fixed itself). I am just waiting for the problem to come back. This is infuriating.
- Of course, a mere few hours afterwards the same problem came back. It seems to be some specific property of the markdown file as two different computers with different screen and window sizes started and stopped behaving exactly the same way with the same files.
- At the suggestion of @user8682688, who found the settings for the scroll synchronization in VSCode, I turned off synchronization from the preview window back into the editor ("markdown.preview.scrollEditorWithPreview": false) this at least removed the jumping from the the editor window making it usable again, but the preview window is still jumping all over the place which is the actual bug. Of course, I could disable the updating altogether with markdown.preview.scrollPreviewWithEditor, but that's just a work-around that removes useful functionality.