statelyai / xstate-viz

Visualizer for XState machines
https://stately.ai/viz
MIT License
434 stars 102 forks source link

VS Code Extension mangles machine code #386

Open EightArmCode opened 2 years ago

EightArmCode commented 2 years ago

Description

I'm not sure where to report this. I am guessing this is a prettier/eslint conflict. I just added eslint-config-xstate today - is it possible that it conflicts with this? I also have a prettier/eslint config of my own that's all about business. What I DO know is that I opened the visualizer today and it behaved very strangely. The screen flickered, and it ate half my machine code, messing up the formatting, etc. It also did not stop. It appeared to be caught in a formatting loop, but like I said, just guessing.

Expected Result

Visualizer will chart my state machine without deleting half the code, etc

Actual Result

Visualizer mangled my machine code. (Don't worry, I use VCS)

Reproduction

Not sure how to do that

Additional context

That's all. I would just like to use the local visulaizer, but cannot.

Andarist commented 2 years ago

I'm working on the improvements to the code<->Studio syncing so hopefully that should resolve it. I'm not aware of any formatting loop though - more info about this would be appreciated.