microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.68k stars 296 forks source link

please add a config option to set a pause of 20 second before running any code after a successful login #10393

Open Caleb-Jeffery opened 1 month ago

Caleb-Jeffery commented 1 month ago

I have a third party auth app that runs directly after login Since I successfully login your scripts continues to run it's process which cause my third party auth prompt to fail. All I want is delay that I can set manually before and cmd's a remotely executed.

joshspicer commented 2 weeks ago

Could you elaborate more? First off, did the bot get this right classifying this as a question related to the 'Remote SSH' extension?

I'm not following what 'our scripts' are in this context. The architecture of VS Code requires us to run a process on your remote machine to fascilitate the connection. Could you explain more what the issue is? If we halt or delay our configuration for ~20 seconds, you won't be connected to run your third-party auth app.

Could you add a RemoteCommand to the SSH configuration?

calebjeffery commented 1 week ago

HI Josh When vscode connects to the ssh remote machine for the first time I am assuming it runs a process on the remote machine to install a code client.

the issue is that is runs this process immediately on a successful connection.

Which is where my issue is happening.

I am connecting to a remote machine that upon successful login it runs a third party auth app that asks for an authenticator code. i have 15-20 secs to enter this code.

so I was wondering if a delay option could be added after vscode connects to the remote machine but before vscode remote process is spawned