liximomo / vscode-remote-fs

Working with any file in everywhere with vscode.
MIT License
167 stars 18 forks source link

Get agent from environment #29

Open PaulPrice opened 6 years ago

PaulPrice commented 6 years ago

There is a configuration option to specify an agent (thanks!), but it appears to require a hardcoded path to the socket, which may change after restarting the agent. However, the agent socket is usually available in the SSH_AUTH_SOCK environment variable.

Please add an option to retrieve the path to the agent socket from the environment.

PaulPrice commented 6 years ago

Begging your pardon, but that doesn't work. Here's the log:

[trace] stat /.vscode
[error] Error: connect ENOENT $SSH_AUTH_SOCK
    at Object._errnoException (util.js:1024:11)
    at _exceptionWithHostPort (util.js:1046:20)
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
[trace] stat /
[error] Error: connect ENOENT $SSH_AUTH_SOCK
    at Object._errnoException (util.js:1024:11)
    at _exceptionWithHostPort (util.js:1046:20)
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
[trace] stat /
[error] Error: connect ENOENT $SSH_AUTH_SOCK
    at Object._errnoException (util.js:1024:11)
    at _exceptionWithHostPort (util.js:1046:20)
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
[trace] stat /
[error] Error: connect ENOENT $SSH_AUTH_SOCK
    at Object._errnoException (util.js:1024:11)
    at _exceptionWithHostPort (util.js:1046:20)
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
[trace] stat /
[error] Error: connect ENOENT $SSH_AUTH_SOCK
    at Object._errnoException (util.js:1024:11)
    at _exceptionWithHostPort (util.js:1046:20)
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)
liximomo commented 6 years ago

Sorry. Coming soon.

gt945 commented 5 years ago

Need this feature too, hope you can implement it ASAP

diego898 commented 5 years ago

Bump!