I have included a screenshot because I -FINALLY- caught it happening after probably two years. I don't know what's going on, but sometimes I do something in a template file (League/Plates) and my one-line JS variables will lose their....variable-ness? Either way, it's driven me mad and I'm just happy I finally found it, I don't even know if it's a PHP Tools problem.
https://imgur.com/3WuKgzE
I'm using latest VS 2019 and PHP Tools 1.40.11823.