Closed fabiospampinato closed 6 years ago
I'd be interested in trying to get this in, where would you suggest I start?
@M-Zuber The code could certainly be written better, but it shouldn't be too hard to add support for this. You'll basically have to:
env
here, deconstructing a terminal's configuration object.vscode.window.createTerminal
call, passing all the arguments in an object instead, as this is the only supported way to pass environment variables to the terminal instance. Read more about this here and here.env
object you retrieved at step 1 to the object you're passing to vscode.window.createTerminal
.That should work.
So...
In order for this to work, we will need to upgrade the engine to ^1.18.0
I think that's fine, I don't want to spend my time supporting legacy versions anyway.
VSC's API supports setting environment variables, we should also support them.