microsoft / VSDebugAdapterHost

Visual Studio Debug Adapter Host
MIT License
77 stars 20 forks source link

Question: Is there a way to set environment variables for the adapter process #23

Open dtillman opened 2 years ago

dtillman commented 2 years ago

In a VS2022 plugin we have built, we are using DebugAdapterHost.Launch() to launch an $adapter that creates a SSH connection to set up vsdbg properly on a remote host. The adapter needs to be started with some environment variables set and we have not been able to figure out how to do this.

Is there an easy way of doing this? Maybe an $env setting that is applied to the process start of the $adapter exe?