vscode
vscode copied to clipboard
Variables when used inside launch.json args not updating
The variable ${fileBasename} is not being updated when passed as a argument. The first time i call this launch task it works fine and passes the correct file baseName but the seconded time i call this launch task the variable ${fileBasename} is still set to the previous file name.
{
// Name of configuration; appears in the launch configuration drop down menu.
"name": "Debug unit test",
// Type of configuration. Possible values: "node", "mono".
"type": "node",
// Workspace relative or absolute path to the program.
"program": "node_modules/gulp/bin/gulp.js",
// Automatically stop program after launch.
"stopOnEntry": false,
// Command line arguments passed to the program.
"args": [
"unit",
"--file",
"${fileBasename}"
],
// Workspace relative or absolute path to the working directory of the program being debugged. Default is the current workspace.
"cwd": ".",
// Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH.
"runtimeExecutable": null,
// Optional arguments passed to the runtime executable.
"runtimeArgs": [],
// Environment variables passed to the program.
"env": {},
// Use JavaScript source maps (if they exist).
"sourceMaps": true,
// If JavaScript source maps are enabled, the generated code is expected in this directory.
"outDir": null,
"request": "launch"
}
Can not repro with our January release which will be out soon, as you can see I nicely see the ${fileBasename} switching from launch.json to fib.js. So please try this again once the January release is out.
