When I press F7, cargo test runs in the terminal in the background. I can't make F7 command both to run cargo test also open the terminal where it ran that command.
This is what I tried:
[ {
"key": "f7",
"command": "+workbench.action.terminal.toggleTerminal",
"when": "editorTextFocus && editorLangId == rust",
},
{
"key": "f7",
"command": "workbench.action.terminal.sendSequence",
"when": "editorTextFocus && editorLangId == rust",
"args": {
"text": "cargo test\n"
}
}
]