Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Load envFile in .vscode/launch.json #829

Closed
bkleef opened this issue Mar 1, 2017 · 3 comments
Closed

Load envFile in .vscode/launch.json #829

bkleef opened this issue Mar 1, 2017 · 3 comments

Comments

@bkleef
Copy link

bkleef commented Mar 1, 2017

It's common to use an .env file. We would love to load that file instead of duplicating environment variables.
Looks like it is highly releated to microsoft/vscode#14523.

Something like this would be awesome!

{
    "version": "0.2.0",
    "configurations": [
        
        {
            "name": "Launch",
            "type": "go",
            "request": "launch",
            "mode": "debug",
            "remotePath": "",
            "port": 2345,
            "host": "127.0.0.1",
            "program": "${workspaceRoot}",
            "envFile": "${workspaceRoot}/.env",
            "args": [],
            "showLog": true
        }
    ]
}
@ramya-rao-a
Copy link
Contributor

This should be simple enough to do

PRs are welcome

@ramya-rao-a
Copy link
Contributor

PR is merged, this will be out in the next update

@ramya-rao-a
Copy link
Contributor

The latest update (0.6.56) to the Go extension has this feature.

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants