I am connected to a remote server via SSH using the Remote - SSH plugin by VSCode. I would like to run a task with the path to the remote file on the local machine.
Specifically, I have a HTML file on the remote machine that I would like to preview/interact with on my local windows machine using an URL.
My task.json should look something like this:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Open Remote HTML",
"type": "shell",
"command": "start https://url_to_remote.com/${file}"
}
]
}
Edit: Additionally, I have tasks that should continue run on the remote machine and I would like the option to run on the local or host machine on a per task basis.