bridge-core / editor

Next generation of bridge., the Minecraft Add-On editor
https://editor.bridge-core.app
GNU General Public License v3.0
133 stars 41 forks source link

Tree editor deletes comments in raw text editor #860

Open ExcitedName opened 1 year ago

ExcitedName commented 1 year ago

Summary I'm not sure if this is supposed to happen or not. I commented out a block of components and events for testing. I opened the file in the tree editor to add a new component I hadn't used yet. When I reopened the file in the raw text editor the comments were gone. I have tested this numerous times and it happens every time.

To Reproduce Steps to reproduce the behavior:

  1. Open any file in the raw text editor
  2. Add a comment
  3. Save and close the file
  4. Open the file in the tree editor
  5. Save and close the file
  6. Open the file in the raw test editor.
  7. Comments are gone.
outercloudstudio commented 9 months ago

This is something I would like fixed at some point, however, this would need to use another json parser that supports preserving comments. I'll look into finding one but this will probably stay on the backlog for a little bit.