Skip to content

Automatically add --enable-preview to vmArgs, when necessary #553

@fbricon

Description

@fbricon

Following on redhat-developer/vscode-java#671, when trying to run Java 12 code using preview features, you need to add the --enable-preview flag in the launch configuration's vmArgs:

{
    "configurations": [
        {
            "type": "java",
            "name": "CodeLens (Launch) - Demo",
            "request": "launch",
            "mainClass": "foo.bar.Demo",
            "projectName": "Demo",
            "vmArgs": "--enable-preview"
        }
    ]
}

This could be done automatically by the vscode-java-debug extension

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions