-
Notifications
You must be signed in to change notification settings - Fork 11
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
Generate command section #77
Conversation
${8:TODO_argument} '\$c1.c2.c2_a2_p1' | ||
#for \$${9:i}, \$${10:var} in enumerate(\$c1.c2.rep): | ||
${11:TODO_argument} '\$${10:var}.rep_p1' | ||
#for \$${12:i}, \$${13:var} in enumerate(\$${10:var}.sub_rep): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i
probaby does not need to be marker and if we name the other variable item
we can just hardocde it and also remove the marker. What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ship it! With this you have a great infrastructure in place to improve not iteratively. I guess those features are enough for a start to really advertise it and get some users :)
This adds a new custom command for the language server that tries to generate some boilerplate/scaffold Cheetah code for the command section of the current tool. The information is based on the current
inputs
andoutputs
defined when the command is executed.The command can be executed in the VSCode client using the shortcut
Ctrl+Alt+c
(Cmd+Alt+c
in Mac).For testing the generated Cheetah snippets a new test case has been added with the corresponding expected XML files.
The process for inserting snippets in the
client
has been improved to support insertion with replacing range, this allows replacing a possible auto-closed<command/>
tag with the generated snippet instead of inserting the snippet alongside the existing<command/>
. This enhancement has been also added for #73.During the addition of tests for this enhancement, a miscalculation in the offsets of the tokens in XML parsing has been discovered and hopefully fixed :)
This PR closes #76