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

Load envFile in .vscode/launch.json #829

@bkleef

Description

@bkleef

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
        }
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions