Environment Variable Resolution in VSCode

Problem Linux environment variables declared in ~/.bashrc aren't pulled into VSCode when it starts. Specifically, I declared a variable export foo\'bar'= in ~/.bashrc. I launch VSCode using its desktop file (via the rofi launcher). Then when I execute a dotnet build process I find that the foo variable is unset in any of the shells that VSCode launches. Solution This issue arises because of how VSCode initializes in different contexts.


Christ, Breaking, Making 🔗In a few words, I am first a follower of the God of the Bible; Christ is my saviour. Second, I like to break things. I started early in life breaking things. Later in life I learned to fix things and eventually make things. I don’t have a software engineering specialty to speak of, and my interests are broad. “Jack of all trades, master of none”. I have experience with Python, JS, Java, C, C#, Scheme, and a few other programming languages.