xstate-tools icon indicating copy to clipboard operation
xstate-tools copied to clipboard

Machine ID is truncated when I open the machine in the visual editor

Open laurakalbag opened this issue 1 year ago • 1 comments

https://www.loom.com/share/41c04fbafb964d5091e036dc53afa301

laurakalbag avatar Aug 05 '22 10:08 laurakalbag

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

Andarist avatar Aug 05 '22 10:08 Andarist

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

Andarist avatar Nov 08 '22 16:11 Andarist