-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Task input parameters from showOpenDialog #71461
Comments
@bryceschober Do you mean what was mentioned here. @alexr00 You added the feature from issue #4758 in the documentation; although what do I search for in the documentation ? |
@SheepDomination In your question, you just linked to the same issue that I originally linked to, so I'm not sure what you're asking. Did you intend to link to a specific comment in that issue? |
@bryceschober I linked to the same issue because I wanted to know has this issue been implemented into visual studio code and if so; what is it called in the documentation, from my understanding it has been implemented ? |
@SheepDomination They are called input variables. |
@bryceschober Thanks. I assume this variable |
@SheepDomination Sorry, but I really don't understand what you're asking. Can you provide more context? For example, I want to debug a program that supports command-line parameters for input files or directories, and I'd rather prompt the user to provide them for a session, than to have them hard-coded in a shared project tasks file. |
@SheepDomination: I think you misunderstand. This issue is asking for a new feature that doesn't exist. The The feature available to users is to be able to define input variables for usage as task parameters. This user-facing feature only offers the ability to either select between preset strings ( |
@alexr00 I added more description to the initial comment, from ensuing conversations, in case there was any ambiguity about what feature I'm requesting. |
@bryceschober You answered the question which I was asking. |
If we add a command that pops the picker then returns the path then you could use command variables to get the path... |
@alexr00 Please add such a feature; is there any work around ? I suppose for now I'll have to have the user give the exact string name of the path, bit of pain cause it can lead to errors in the path, hopefully it gets added or there is a workaround. |
I also second this. The user hits |
Would be good if this feature has gotten more attention. I need to ask which dmp file the user would like to debug and to do this via launch configuration I direly need this implemented. |
@BrightSoul You can create a file picker with the extension Command Variable I wrote and use the command |
In the extension Command Variable v1.61 I have implemented the commands: |
It sure would be helpful if the task and launch input pickers implemented by #4758 were expanded to include one that wrapped the
window.showOpenDialog
API with its options for file vs. folder and filtering.The
window.showOpenDialog
API offers to extension authors the ability to offer the user a dialog to select a file (optionally with an extension filter) or a folder.The feature available to users is to be able to define input variables for usage as task parameters. This user-facing feature only offers the ability to either select between preset strings (
pickString
) or accept a manually-typed input string (promptString
), but offers no ability to present the user with a file or folder selection dialog.This feature could be very helpful for users as well, not just extension authors. For example, I want to debug a program that supports command-line parameters for input files or directories, and I'd rather prompt the user to provide them differently for each session, than to have them hard-coded in a shared project tasks file.
The text was updated successfully, but these errors were encountered: