question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to configure environment variables for extension host

See original GitHub issue

I’ve got a really simple problem: often I open VS Code from a terminal, because I need to run export PATH=... in order to be able to use some extension inside of VS Code that uses a binary to work, e.g., this Lilypond extension, which works really well (thank you @lhl2617!), uses the lilypond external binary.

Perhaps a workspace could have environment variables in addition to project folders? 🤔

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:38
  • Comments:6

github_iconTop GitHub Comments

20reactions
vscode-triage-botcommented, Aug 20, 2021

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

8reactions
wickerwakacommented, Aug 12, 2021

Yes, I agree that the idea is useful even if you specific example can be solved in another way. There are plenty of other cases where being able to set specific environment variables for a workspace would be useful.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Container environment variables - Visual Studio Code
You can set environment variables in your container without altering the container image by using one of the options below. You should verify...
Read more >
Visual Studio Code extension configuration - Snyk User Docs
On Windows , you can set the variables using the GUI or on the command line using the setx tool. · On macOS...
Read more >
Configuration Options | Directus Docs
In case you prefer using a configuration file instead of environment variables, you can also use the CONFIG_PATH environment variable to ...
Read more >
Use multiple environments in ASP.NET Core | Microsoft Learn
Environments · Set the environment by setting an environment variable · Set the environment in code · Configuration by environment · Configure ......
Read more >
Set global environment variables in VS Code with remote-ssh
If you want to run additional commands or modify the environment this can be done in a setup script ~/.vscode-server/server-env-setup.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found