Indium icon indicating copy to clipboard operation
Indium copied to clipboard

Add variable references to command

Open terlar opened this issue 5 years ago • 1 comments

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
    }
  ]
}

terlar avatar Mar 01 '19 22:03 terlar

It would be nice, indeed!

NicolasPetton avatar Mar 02 '19 22:03 NicolasPetton