liximomo / vscode-remote-fs

Working with any file in everywhere with vscode.
MIT License
166 stars 17 forks source link

Feature Request: allow using command to find real host in remote settings #41

Closed gwy15 closed 2 years ago

gwy15 commented 5 years ago

Hi, liximomo. Thanks for your wonderful extension.

I'm using this extension to write code remotely on my robot running a Linux system, it is quite useful. However, my robot does not always have a screen nor a static public IP address. For most cases, every time it reboots, a new IP address is assigned. Therefore I have to manually connect a screen to it, look for the IP address and change the host value in the VSC every time it reboots. To simplify this, I've written a script on the robot that publishes its IP address to my server after it reboots. Therefore, I can look for the robot's IP address recorded on the server through a HTTPS request like curl -s https://www.myserver.com/ip.

So I'm thinking, if this extension could support command string in settings, everything will be much easier. For example, I can write a setting like this:

{
  "host": "$(curl -s https://www.myserver.com/ip)"
}

Best wishes!