Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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