Closed jd-brennan closed 1 year ago
I can't replicate. Are you using the extension installed from the store or the latest code from GitHub? And what browser/OS?
I'm using the extension from the store. Version 0.6.3 MacOS 12.0.1 Chrome Version 108.0.5359.71 (Official Build) (arm64)
Could it have something to do with color scheme? Just a SWAG.
Noticed that it only seems to happen with githubusercontent which serves up the file with Content-Type: text/plain
If I copy the same file to my laptop and serve it from there with Content-Type: application/json then the icons appear.
Also installing the Chrome extension HTTP Headers makes JSONFormatter show the icons. Very strange!
Hmm that is strange. Well now v0.7.0 is now out (it just got released on the store about 30 minutes ago) and everything has been refactored a lot, so can you see if the problem still exists now? Hopefully you should get auto-updated, or you might need to restart Chrome.
Yes! Working in 0.7.0. Thanks. And I did get auto-updated. Didn't even have to restart Chrome.
The icon for collapsing doesn't appear for JSON files that are an object, {}. Only seems to work for JSON files are are an array, [].
For instance: https://raw.githubusercontent.com/callumlocke/json-formatter/master/tsconfig.json![image](https://user-images.githubusercontent.com/117212701/205129910-ead7022d-e491-48ef-8256-5b916840b852.png)
Collapsing still works. You can click to the left of "compilerOptions" to collapse.