Closed aviramha closed 1 year ago
Why do we clear the env
vars we get from vscode (extension entry-point)?
From what I'm getting, you can't set mirrord with env vars in the extension, it has to be set up with a config file.
So the goal here is to make this possible? Set up mirrord completely from env vars in launch.json
, and pass this env var config through the usual flow? First checking if it's valid (verify-config
), then allowing user to select target
, and so on?
It's not clearing, it's initializing if it's not initialized
if config.env is null -> config.env = {} else do nothing
The goal is to pass "config.env" in the verify-config exec and in the mirrord ext
exec to the configuration won't drift between executions.
The env vars from launch.json
are now being passed down to mirrord.
When setting configuration via env, when it verifies the IDE doesn't pass the env that would be passed to the process so it creates difference between rendering on verification and execution.