SchoofsKelvin / vscode-sshfs

Extension for Visual Studio Code: File system provider using SSH
GNU General Public License v3.0
543 stars 36 forks source link

Copy environment variables from PuTTY #269

Open SchoofsKelvin opened 3 years ago

SchoofsKelvin commented 3 years ago

Follow up on #241. Extension now supports user-defined (and internally defined) environment variables, but doesn't yet pull any from PuTTY sessions.

Need to slightly modify putty.ts and add to the following section in connect.ts: https://github.com/SchoofsKelvin/vscode-sshfs/blob/1258a8e97d4c1f66ed05177a0552d9745b2c3b0e/src/connect.ts#L104-L133

Might need some debugging/logging in putty.ts (or playing around with regedit) to figure out the right registry key(s) and formats.