xstate-tools
xstate-tools copied to clipboard
Problem autocompleting with dots
Thanks a lot @mattpocock !
Testing the autocompletion, it only works properly before a dot in a target state. When autocompleting after a dot, the word is repeated. Let me show you a video so it's clearer:
https://user-images.githubusercontent.com/24988424/125663469-63cff33e-04bf-4900-b1d0-9816aef6ea80.mov
Not sure if this is even a VSCode problem?
Thanks!!
Possibly a VSCode problem? Or I might be able to override this somehow
Considering this low-priority, happy to accept help if anyone fancies helping
I'm guessing dots are a pretty fundamental part of how intellisense decides that you've finished typing one token and are starting a new one..
I wonder if we could, in the case of events, instead of treating them as a bunch of simple strings.. expose it as a hierarchy of properties mirroring the structure of the state tree? That way you could drill down into nested events with proper auto completion.
Not sure if this is possible..