Indium
Indium copied to clipboard
Add variable references to command
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
}
]
}
It would be nice, indeed!