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

Problem autocompleting with dots

Open santicros opened this issue 3 years ago • 3 comments

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!!

santicros avatar Jul 14 '21 17:07 santicros

Possibly a VSCode problem? Or I might be able to override this somehow

mattpocock avatar Jul 15 '21 08:07 mattpocock

Considering this low-priority, happy to accept help if anyone fancies helping

mattpocock avatar Jul 16 '21 07:07 mattpocock

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..

johtso avatar Jul 16 '21 10:07 johtso