huntertran / markdown-toc

Auto MarkdownTOC (Table Of Contents) plugin for Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=huntertran.auto-markdown-toc
MIT License
39 stars 25 forks source link

Question: Can we disable auto update TOC #53

Open wwdok opened 2 years ago

wwdok commented 2 years ago

I insert the TOC, but I do not want all of the items, I just want keep some of them, so I delete some items, but after a moment, the extension update the TOC, so now i can not custimize the TOC, it would be nice if the extension allowed the user to choose whether to update automatically or not :)

nmss commented 2 years ago

It seems that you are looking for the setting markdown-toc.updateOnSave

wwdok commented 2 years ago

@nmss I just tried disable the setting markdown-toc.updateOnSave, but the extension still automatically restore content to original one

nmss commented 2 years ago

You're right, it seems this setting is not respected by the extension 😞 sadly, I don't have other ideas for you

AndrewDDavis commented 1 year ago

I came to report this underlying issue as well, the updateOnSave setting is ignored, always updates, at least on Linux and MacOS.

Apparently this issue dates from the original repo that this project was forked from. There was a pull request that may have fixed this issue, but it was never merged.