Skip to content

env variables are not passed to extension host in debug mode #22233

Closed

Description

@weinand
  • VSCode Version: 1.11.0
  • OS Version: macOS

Trying to pass env variables specified in a launch config to the extension host process fails.

Steps to Reproduce:

  • make sure that VS Code Insiders is already running
  • open another VS Code window by running the following from the command line:
    env foo=bar code-insiders <any directory>
    
  • in that window open the console in chrome dev tools and eval process.env.foo

Observe: the env var 'foo' is available and has the correct value.

  • open VS Code EH window by running the following from the command line:
    env foo=bar code-insiders --debugPluginHost=5555 --extensionDevelopmentPath=<path to hello world extension project>
    
  • in that window open the console in chrome dev tools and eval process.env.foo

Observe: the env var 'foo' is undefined

Since in both cases a new window is created, I would expect that the env vars are available in both.

/cc João Moreno (@joaomoreno)

Activity

  1. added
    bug
    on Mar 8, 2017
  2. locked and limited conversation to collaborators on Nov 18, 2017
  3. added a commit that references this issue on Sep 6, 2026
    5631974
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions