{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/65113","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/65113/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/65113/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/65113/events","html_url":"https://github.com/Microsoft/vscode/issues/65113","id":391297854,"node_id":"MDU6SXNzdWUzOTEyOTc4NTQ=","number":65113,"title":"Environment variable is not being passed to the extension host","user":{"login":"ramya-rao-a","id":16890566,"node_id":"MDQ6VXNlcjE2ODkwNTY2","avatar_url":"https://avatars1.githubusercontent.com/u/16890566?v=4","gravatar_id":"","url":"https://api.github.com/users/ramya-rao-a","html_url":"https://github.com/ramya-rao-a","followers_url":"https://api.github.com/users/ramya-rao-a/followers","following_url":"https://api.github.com/users/ramya-rao-a/following{/other_user}","gists_url":"https://api.github.com/users/ramya-rao-a/gists{/gist_id}","starred_url":"https://api.github.com/users/ramya-rao-a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramya-rao-a/subscriptions","organizations_url":"https://api.github.com/users/ramya-rao-a/orgs","repos_url":"https://api.github.com/users/ramya-rao-a/repos","events_url":"https://api.github.com/users/ramya-rao-a/events{/privacy}","received_events_url":"https://api.github.com/users/ramya-rao-a/received_events","type":"User","site_admin":false},"labels":[{"id":374931321,"node_id":"MDU6TGFiZWwzNzQ5MzEzMjE=","url":"https://api.github.com/repos/Microsoft/vscode/labels/windows","name":"windows","color":"006b75","default":false}],"state":"open","locked":false,"assignee":{"login":"alexandrudima","id":5047891,"node_id":"MDQ6VXNlcjUwNDc4OTE=","avatar_url":"https://avatars3.githubusercontent.com/u/5047891?v=4","gravatar_id":"","url":"https://api.github.com/users/alexandrudima","html_url":"https://github.com/alexandrudima","followers_url":"https://api.github.com/users/alexandrudima/followers","following_url":"https://api.github.com/users/alexandrudima/following{/other_user}","gists_url":"https://api.github.com/users/alexandrudima/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrudima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrudima/subscriptions","organizations_url":"https://api.github.com/users/alexandrudima/orgs","repos_url":"https://api.github.com/users/alexandrudima/repos","events_url":"https://api.github.com/users/alexandrudima/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrudima/received_events","type":"User","site_admin":false},"assignees":[{"login":"alexandrudima","id":5047891,"node_id":"MDQ6VXNlcjUwNDc4OTE=","avatar_url":"https://avatars3.githubusercontent.com/u/5047891?v=4","gravatar_id":"","url":"https://api.github.com/users/alexandrudima","html_url":"https://github.com/alexandrudima","followers_url":"https://api.github.com/users/alexandrudima/followers","following_url":"https://api.github.com/users/alexandrudima/following{/other_user}","gists_url":"https://api.github.com/users/alexandrudima/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrudima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrudima/subscriptions","organizations_url":"https://api.github.com/users/alexandrudima/orgs","repos_url":"https://api.github.com/users/alexandrudima/repos","events_url":"https://api.github.com/users/alexandrudima/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrudima/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-12-14T22:16:17Z","updated_at":"2018-12-17T14:06:12Z","closed_at":null,"author_association":"MEMBER","body":"Related to https://github.com/Microsoft/vscode-go/issues/2026 by @lrstanley\r\n\r\n@lrstanley is on a Windows machine and has an environment variable called `GOPROXY` which is available in both Git bash and the Windows command prompt.\r\n\r\nWhen running VS Code (either directly or from the Git base or the Windows command prompt), the variable is being passed to VS Code just fine as it is available when echoing in the integrated terminal. \r\n\r\nBut the same is not being passed to the Go extension. We added console.log statements in the extension code to print out `process.env.GOPROXY` and it wasnt available.\r\n\r\nTherefore, logging this issue here.\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/447857471","html_url":"https://github.com/Microsoft/vscode/issues/65113#issuecomment-447857471","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/65113","id":447857471,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Nzg1NzQ3MQ==","user":{"login":"alexandrudima","id":5047891,"node_id":"MDQ6VXNlcjUwNDc4OTE=","avatar_url":"https://avatars3.githubusercontent.com/u/5047891?v=4","gravatar_id":"","url":"https://api.github.com/users/alexandrudima","html_url":"https://github.com/alexandrudima","followers_url":"https://api.github.com/users/alexandrudima/followers","following_url":"https://api.github.com/users/alexandrudima/following{/other_user}","gists_url":"https://api.github.com/users/alexandrudima/gists{/gist_id}","starred_url":"https://api.github.com/users/alexandrudima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexandrudima/subscriptions","organizations_url":"https://api.github.com/users/alexandrudima/orgs","repos_url":"https://api.github.com/users/alexandrudima/repos","events_url":"https://api.github.com/users/alexandrudima/events{/privacy}","received_events_url":"https://api.github.com/users/alexandrudima/received_events","type":"User","site_admin":false},"created_at":"2018-12-17T14:06:12Z","updated_at":"2018-12-17T14:06:12Z","author_association":"MEMBER","body":"@ramya-rao-a I cannot reproduce. Here is what I have tried:\r\n\r\n* I have defined an environmental variable `TEST_65113`:\r\n\r\n![image](https://user-images.githubusercontent.com/5047891/50091900-e963b680-020c-11e9-8996-7bb946bc61c3.png)\r\n\r\n* `package.json`:\r\n```\r\n{\r\n    \"name\": \"65113\",\r\n    \"publisher\": \"alex\",\r\n    \"version\": \"1.0.0\",\r\n    \"engines\": {\r\n        \"vscode\": \"^1.31.0\"\r\n    },\r\n    \"activationEvents\": [\"*\"],\r\n    \"main\": \"index.js\"\r\n}\r\n```\r\n\r\n* `index.js`\r\n```\r\nconsole.log(JSON.stringify(process.env['TEST_65113']));\r\n```\r\n\r\nI can then see that the value is available:\r\n![image](https://user-images.githubusercontent.com/5047891/50092026-4495a900-020d-11e9-9f64-b934cec90c3c.png)\r\n"}}
{"actor":{"display_login":"alexandrudima"}}