Skip to content
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

Add variable references to command #201

Open
terlar opened this issue Mar 1, 2019 · 1 comment
Open

Add variable references to command #201

terlar opened this issue Mar 1, 2019 · 1 comment

Comments

@terlar
Copy link

terlar commented Mar 1, 2019

I often end up creating multiple configurations, that basically does the same thing. It would be nice if the commands supported variable references to such things as current buffer/file. This could allow for more use-cases and generic configurations.

This is currently supported by Visual Studio code, see https://code.visualstudio.com/docs/editor/variables-reference

I think it is a kind of neat idea, for example:

{
  "configurations": [
    {
      "name": "Launch current file w/ ts-node",
      "type": "node",
      "command": "node -r ts-node/register ${relativeFile}",
      "inspect-brk": true
    }
  ]
}
@NicolasPetton
Copy link
Owner

NicolasPetton commented Mar 2, 2019

It would be nice, indeed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants