xstate-tools
xstate-tools copied to clipboard
Machine ID is truncated when I open the machine in the visual editor
https://www.loom.com/share/41c04fbafb964d5091e036dc53afa301
The most likely culprit is the fact that the code lens command embeds the possibly outdated arguments: https://github.com/statelyai/xstate-tools/blob/53ba81ba15f991952f220c0b519225328f06b9f4/apps/extension/server/src/server.ts#L164-L173
The fix would be to limit the arguments and grab the config "on demand", when the user actually clicks on the code lens. This way we'd guarantee that we grab the most up-to-date config etc
We can't be entirely sure as we never confirmed what has caused this issue but I strongly believe that there is a non-zero chance that this is being fixed by: https://github.com/statelyai/xstate-tools/pull/220