Restart your computer from the comfort of VSCode, and pick up right where you left off.
Execute the command "restart-computer.restartComputer"
This can be called from a task, and a command or task can be specified to run afterwards.
//tasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "Restart the Computer",
"command": "${command:restart-computer.restartComputer}",
"problemMatcher": []
},
{
"label": "Restart the Computer and then Check Audio Cues",
"command": "${command:restart-computer.restartComputer:audioCues.help}",
"problemMatcher": []
},
{
"label": "Restart the Computer and then run Other Task",
"command": "${command:restart-computer.restartComputer:workbench.action.tasks.runTask:Other Task}",
"problemMatcher": []
},
{
"label": "Other Task",
"command": "echo 'do thing'",
"type": "shell",
"problemMatcher": []
}
]
}