Task input parameters from showOpenDialog
See original GitHub issueIt 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.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:18
- Comments:13 (1 by maintainers)
Top GitHub Comments
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.
If we add a command that pops the picker then returns the path then you could use command variables to get the path… I’ll think about whether we should add such a command.