question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Task input parameters from showOpenDialog

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:18
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Metadoriuscommented, Jul 30, 2021

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.

1reaction
alexr00commented, Oct 8, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Use File Choosers - Oracle Help Center
Here is the code from FileChooserDemo2 that brings up the file chooser dialog for the Attach task: JFileChooser fc = new JFileChooser(); int...
Read more >
Specify Input Datasets and Task Parameters
You can define input data by using a task parameter dialog instead of using File or Dataset nodes. Click the button in a...
Read more >
VS Code API | Visual Studio Code Extension API
This is a sample that registers a command handler and adds an entry for ... executeTask(task: Task): Thenable<TaskExecution> ... showOpenDialog(options?
Read more >
c# - Task.Run with Input Parameters and Output - Stack Overflow
You can do: bool result = await Task.Run(() => ItemFound(param1, param2, param3) );. Or if you really want it as Task<bool> :
Read more >
dialog | Electron
message string (optional) macOS - Message to display above input boxes. securityScopedBookmarks boolean (optional) macOS ... showOpenDialog for an example.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found