vscode-debug-launcher icon indicating copy to clipboard operation
vscode-debug-launcher copied to clipboard

Support for configuration inputs

Open fantapop opened this issue 7 years ago • 1 comments

As far as I can tell this plugin only supports injecting the launch config fields which are contained inside the configurations array. It would be great to have this functionality:

https://code.visualstudio.com/docs/editor/variables-reference#_settings-command-variables-and-input-variables

https://github.com/Microsoft/vscode/issues/63987

What I'd like to do is generate a conf on the fly which allows a user to debug one of my serverless api functions. I was hoping to parse my serverless config file, pull out the function names and then show a picker for all the available functions. I can do this staticly with many launch configuration files but I'd have to keep them up as they change. It doesn't appear that VS code ships with any other way to dynamically set those input options.

fantapop avatar Jan 26 '19 06:01 fantapop

I'm not sure that's possible with the current APIs. Alternatively you could:

  • Fork the extension and write a custom configuration provider for your use case (where you ask for input with other vscode APIs)
  • Write a CLI app that generates the configuration and then execute it like so:
open 'vscode://fabiospampinato.vscode-debug-launcher/launch?args={...}

fabiospampinato avatar Jan 26 '19 14:01 fabiospampinato