Skip to content

Launcher to support multiple envFiles #1505

Closed
@hildo

Description

Currently, when launching a Java application, a single envFile is supported. It would be nice of environment variables could be defined from multiple environment files.

This is supported in other vscode extensions (this is one for example, microsoft/vscode-go#1746)

Environment
  • Operating System:
  • JDK version:
  • Visual Studio Code version:
  • Java extension version:
  • Java Debugger extension version:
Steps To Reproduce
  1. Try to define an Array of envFile locations when launching a Java application

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "May Application",
"request": "launch",
"cwd": "${workspaceFolder}",
"mainClass": "org.csea.myapp.MyApplication",
"projectName": "myapp",
"envFile": [
"${workspaceFolder}/envs/.env1",
"${workspaceFolder}/envs/.env2"
]
}

]

}

Current Result
Expected Result
Additional Informations

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions