vscode launch.json Предопределенные переменные Текущий открытый файл - име переменной
Primary tabs
Имя файла
Для получения имени текущего файла используйте переменную ${fileBasename}, например в .vscode/launch.json :
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Jest Current",
"skipFiles": [
"<node_internals>/**"
],
"args": [
"--experimental-vm-modules",
"node_modules/.bin/jest",
"--no-cache",
"--verbose",
"-i",
"${fileBasename}",
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
},
]
}
Остальные переменные
Другие переменные доступные аналогичным образом, см. тут: https://code.visualstudio.com/docs/editor/variables-reference
- Log in to post comments
- 1436 reads