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

Feature Request: "enum" launch config variable #9297

Closed
Sequoia opened this Issue Jul 14, 2016 · 3 comments

Comments

Projects
None yet
4 participants
@Sequoia
Copy link

Sequoia commented Jul 14, 2016

Current

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "run AVM",
      "type": "node",
      "request": "launch",
      "program": "${workspaceRoot}/node_modules/.bin/node-lambda",
      "stopOnEntry": false,
      "args": ["run", "--eventFile=events/local/avm.json"],
      "cwd": "${workspaceRoot}",
      "preLaunchTask": null,
      "runtimeExecutable": null,
      "runtimeArgs": [
        "--nolazy"
      ],
      "env": {
        "NODE_ENV": "development",
        "DEBUG" : "*"
      },
      "externalConsole": false,
      "sourceMaps": false,
      "outDir": null
    },
    {
      "name": "run Recorder",
      "type": "node",
      "request": "launch",
      "program": "${workspaceRoot}/node_modules/.bin/node-lambda",
      "stopOnEntry": false,
      "args": ["run", "--eventFile=events/local/recorder.json"],
      "cwd": "${workspaceRoot}",
      "preLaunchTask": null,
      "runtimeExecutable": null,
      "runtimeArgs": [
        "--nolazy"
      ],
      "env": {
        "NODE_ENV": "development",
        "DEBUG" : "*"
      },
      "externalConsole": false,
      "sourceMaps": false,
      "outDir": null
    },
    {
      "name": "run tax-assessor",
      "type": "node",
      "request": "launch",
      "program": "${workspaceRoot}/node_modules/.bin/node-lambda",
      "stopOnEntry": false,
      "args": ["run", "--eventFile=events/local/tax-assessor.json"],
      "cwd": "${workspaceRoot}",
      "preLaunchTask": null,
      "runtimeExecutable": null,
      "runtimeArgs": [
        "--nolazy"
      ],
      "env": {
        "NODE_ENV": "development",
        "DEBUG" : "*"
      },
      "externalConsole": false,
      "sourceMaps": false,
      "outDir": null
    }
  ]
}

Desired

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Launch",
      "type": "node",
      "request": "launch",
      "program": "${workspaceRoot}/node_modules/.bin/node-lambda",
      "stopOnEntry": false,
      "args": ["run", "--eventFile=events/local/${enum:('avm.json','recorder.json','tax-assessor.json')"],
      "cwd": "${workspaceRoot}",
      "preLaunchTask": null,
      "runtimeExecutable": null,
      "runtimeArgs": [
        "--nolazy"
      ],
      "env": {
        "NODE_ENV": "development",
        "DEBUG" : "*"
      },
      "externalConsole": false,
      "sourceMaps": false,
      "outDir": null
    }
  ]
}

UI

like this one:

@weinand

This comment has been minimized.

Copy link
Member

weinand commented Nov 14, 2017

This feature would be an excellent extension opportunity if there would be a way to pass arguments to command-based variables (e.g. the enum values in this case).
I've created feature request #38327 for this.

@weinand weinand modified the milestones: On Deck, Backlog Nov 14, 2017

@weinand weinand removed their assignment Nov 14, 2017

@vscodebot

This comment has been minimized.

Copy link

vscodebot bot commented Nov 17, 2017

This issue has been closed because it is not within the scope of the core product, but could be addressed by an extension. The VS Code Marketplace shows all existing extensions and you can get started writing your own extension in a few simple steps. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this Nov 17, 2017

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 1, 2018

@weinand weinand reopened this Dec 6, 2018

@weinand weinand modified the milestones: Backlog, November 2018 Dec 6, 2018

@weinand weinand added the on-testplan label Dec 6, 2018

@Microsoft Microsoft unlocked this conversation Dec 6, 2018

@weinand

This comment has been minimized.

Copy link
Member

weinand commented Dec 6, 2018

This feature will appear in the November release via #63987.

@weinand weinand closed this Dec 6, 2018

@weinand weinand self-assigned this Dec 6, 2018

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 20, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.