The problem was solved when I turned off and then turned on folding in vsc json settings file (“editor.folding”: false then “editor.folding”: true)
Apparently it was caching the sections that are folded somewhere. I had previously cleared the cache, but not where it needed to be
I hope this will help someone