Skip to content

Conversation

bobbrow
Copy link
Member

@bobbrow bobbrow commented Apr 11, 2022

Addresses #2442

@bobbrow bobbrow added this to the 1.11.0 milestone Apr 11, 2022
@bobbrow bobbrow linked an issue Apr 11, 2022 that may be closed by this pull request
test('No variable expansion env vars', () => {
const env: {[key: string]: string} = {};
env['foo'] = 'bar';
env['other'] = '${hey';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A question: So our assumption is that all the env variables are resolved by this point, and if they are not (or if not expanded), we just don't send them to the debugger?

Copy link
Member Author

@bobbrow bobbrow Apr 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. The output of makeDebuggerEnvironmentVars gets put into the environment of the debug config object and sent to VS Code. I call fromDebuggerEnvironmentVars to convert it into a dictionary object that's easier to validate.

@elahehrashedi elahehrashedi merged commit dabe870 into main Apr 13, 2022
@elahehrashedi elahehrashedi deleted the bobbrow/debugEnvFilter branch April 13, 2022 17:55
@github-actions github-actions bot locked and limited conversation to collaborators May 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove problematic environment variables from the debugger environment
2 participants