我有这个任务是我的应用程序的服务器:
"tasks": [
{
"label": "f1",
"type": "shell",
"command": "gunicorn",
"args": [
"main:api"
],
"isBackground": true,
},
]
Run Code Online (Sandbox Code Playgroud)
映射在键“F1”上,现在,如果此任务处于活动状态,当我按 F1 时,我想杀死它并重新开始。所以我不必每次编写新函数时都按 CTRL-C。
我如何实现这种行为?- 谢谢