Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor fails to save the changes on windows #473

Open
DanielSRS opened this issue Feb 22, 2024 · 2 comments
Open

Editor fails to save the changes on windows #473

DanielSRS opened this issue Feb 22, 2024 · 2 comments

Comments

@DanielSRS
Copy link

When editing a state machine with the XState Editor on windows, the changes are not synced with code file. So when the editor is closed, all the changes are lost.

The extension host logs as erorr:

[error] Error: Request applyMachineEdits failed with message: Unexpected token

I noticed that the error only happens if the file has LF line ending. If the file line ending is CRLF it works as expected


The extension version is: v2.1.0
Vs Code version is: 1.86.2

@davidkpiano
Copy link
Member

Thanks for the report. We're currently completely reworking the extension, so chances are this may be fixed when the rework is complete (cc. @Andarist)

@Andarist
Copy link
Member

Yes, we'll have some tests for this there!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants