-
Notifications
You must be signed in to change notification settings - Fork 42
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
[Bug] VScode extension does not work if the machine is a property in a class #365
Comments
@Andarist I wanted to raise that if a statemachine is in a class function (such as a constructor) in a large class, the vscode editor doesn't show either. After some testing, it maybe that this problem exista in any large file with > 250 lines The open visual editor command does not work on a create machine in large files, but does in new files with the same machine. |
hmm, actually it seems to be certain types of invoke that depends on a class member. It looks liek this is the culprit that could sometimes cause the "open visual editor" from showing
For anyone who's having the same issue, assign invoke src to a local variable and then use it in the statemachine definition |
I have the same issue, but I couldn't make Open visual editor appear even once inside the class. It worked properly only when I created using it like this: |
Please see the example below for reproduction. VScode extension does not work if the machine is a property in a class with extra imports. Sometimes it works flakily. The pictures are below
The reason its in the class is because it will have access to class functions for actions and invocations. I've tried to remove the extra code to remove errors in reproduciton
The text was updated successfully, but these errors were encountered: