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

availability of variables e.g. workingDirectory in Terminal Command #249

Closed creative-resort closed 3 years ago

creative-resort commented 3 years ago

Which variables are we able to use in the configuration?

I want to configure the Terminal Command to something like: export STRTDIR="${workingDirectory}";/bin/bash -i

How should I go about this?

SchoofsKelvin commented 3 years ago

Added that (task) variables in Terminal Command also get replaced now (7a779f8)

Mind that it only supports "remote" task variables, as mentioned in #232. You'll have to use e.g. ${remoteWorkspaceFolder}, although I could add support for "local" task variables (e.g. ${relativeFile} instead of ${remoteRelativeFile}) later on.

It'll probably take a day or two before I push an update with this new feature. If you need this immediately, you can download a built version with the change here already.

SchoofsKelvin commented 3 years ago

It's also now available in version v1.20.1 of the extension, released a few minutes ago.