Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Support for configuration inputs #1

Open
fantapop opened this issue Jan 26, 2019 · 1 comment
Open

Support for configuration inputs #1

fantapop opened this issue Jan 26, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@fantapop
Copy link

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

microsoft/vscode#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.

@fabiospampinato
Copy link
Owner

fabiospampinato commented Jan 26, 2019

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 fabiospampinato added the enhancement New feature or request label Jan 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants