-
Notifications
You must be signed in to change notification settings - Fork 97
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
CL prompting for any CL command - Hinders me from leaving SEU for CL programming #2391
Comments
Ah, interesting. It does look like Control-Spacebar will show me available parms for existing commands and let me select all parts, but it doesn't fill in any of the default values. |
Looks like this issue is related: All good info related to CL editing and how it could move more of us CL types forward :-) |
@richardschoen this is all great info. Thanks! I am glad you found the content assist for parameters (and it also works for special values). I believe we can have an option to put the default parameters in automatically. I think we have access to those default values. Regarding the program: we have wanted a prompt for sometime. Sadly we haven't had the time to build the UI for it. Perhaps something for 2025. Again, thanks for all the info. |
@richardschoen |
@SJLennon Thanks. There's not any way to get default parm values currently, correct ? |
@richardschoen It might be more useful to have the wrench items at the top of the list, especially if you have a lot or program variables. What's the use case for knowing the default value? |
The use case for seeing the default values is pretty much the same as when you prompt a CL command in SEU or RDI. It's good to do a visual reference point on the available parms and their available default values. Sometimes you will want to specify a value for a default parm to make sure someone doesn't override your choices by changing command defaults. I've seen that happen many times over the year when customers have changed system default parm values and it caused undesirable results. Thanks for feedback. |
Is your feature request related to a problem? Please describe.
This is not really a problem, but a feature that holds me back from leaving SEU for editing CL programs and commands.
First off, SEU does CL command prompting really well in a CL source member when editing. RDI does command prompting, but it's slow to prompt, so that's a no go for any real productivity at the speed I code :-)
I create a lot of CL programs and rely heavily on CL command prompting to fill in optional and mandatory parameters and do some line formatting for me.
Since SEU and RDI can retrieve and create a command prompt screen, I'm pretty sure there is probably a way to do this and build an on-the-fly CL prompt dialog in VS Code. Or possibly just fill in all the parameter markers with defaults in VS Code editor so the rest can just be filled in.
Ex: I tried CL prompting briefly. It does appear that DCLF kind of works for this because it filled our info like this:
Created this in the editor:
I suppose another way to do it would be to do something similar to what DCLF example is doing. I'm guessing there's some prompting info stored in the Code for I settings somewhere.
However, ideally retrieving command definitions on the fly from IBMi would put VS Code on par with RDI and SEU for CL programming.
Anyway I hope this makes sense. It would remove the barrier for me continuing to use SEU for CL programming.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
When I type a CL command and press F4 (or some other prompting mechanism such as the DCLF example above), locate the existing command info and create a prompt dialog to complete the command or just default the entire command with all its parameters into the VS Code editor so I can complete the command definition without needing to switch back to SEU or RDI.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Perhaps create a keyword settings file where common commands can be defined by the developer/user. Similar to the DCLF example I mentioned above. In Code for i it may actually work this way already perhaps, but I would need to know where the keywords are stored.
Ideally retrieving command definitions on the fly from IBMi would put VS Code on par with RDI and SEU for CL programming.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: