Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Invisible Table of Contents line making document jump #77

Open
robertmarkbram opened this issue Apr 2, 2019 · 2 comments
Open

Invisible Table of Contents line making document jump #77

robertmarkbram opened this issue Apr 2, 2019 · 2 comments

Comments

@robertmarkbram
Copy link

robertmarkbram commented Apr 2, 2019

I am using the magnificent TOC in markdown, but am experiencing this problem with it: the line you see in the screenshot is Table of Contents (up to date) or out of date

VS Code TOC

That lines seems to disappear and re-appear, but much worse is that whenever I press save, undo or redo, it makes the whole document jump up a line.. such that if I am working at the bottom of the document (with the TOC not visible), the current line I am editing keeps jumping up (as though someone was pressing control+down) until it is at the top of the screen.

And much much worse is that it seems to be interfering with the undo+redo chain.. I notice that sometimes I have to press undo multiple times before it starts to undo text I just typed.. and that often redo will do nothing at all even directly after pressing undo a few times.

I know that this issue is related to the TOC, because once I delete the TOC, all of these issues stop.

Any ideas?

@robertmarkbram
Copy link
Author

As per this stackoverflow post it seems to be combination of yzhang.markdown-all-in-one and AlanWalk.markdown-toc

@robertmarkbram
Copy link
Author

And I can prevent this negative side-affect in AlanWalk.markdown-toc by un-ticking "Auto update on save".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant