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

xstate-cli typegen doesn't respect file casing after rename. #378

Open
brmenchl opened this issue Oct 5, 2023 · 0 comments
Open

xstate-cli typegen doesn't respect file casing after rename. #378

brmenchl opened this issue Oct 5, 2023 · 0 comments

Comments

@brmenchl
Copy link

brmenchl commented Oct 5, 2023

I accidentally used the wrong casing for my state machine file (MyMachine.ts instead of myMachine.ts), and have since renamed it in git and vs code. (I used git mv to make sure git recognized the casing switch).

However, every time i save in the file, the xstate vscode extension changes the line:

tsTypes: {} as import('./myMachine.typegen').Typegen0
to
tsTypes: {} as import('./MyMachine.typegen').Typegen0

I have tried renaming the machine file (e.g. to potato.ts) to change the typegen file, and then I renamed it back to the original name, but the typegen goes back to changing the file case. We also tried running xstate typegen, with the same behavior. Any suggestions?

Note: this does not occur on my teammates machines, which never had the wrong file casing.

@brmenchl brmenchl changed the title vscode extension typegen doesn't respect file casing after rename. xstate-cli typegen doesn't respect file casing after rename. Oct 6, 2023
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

1 participant