Skip to content

Automatically add --enable-preview to vmargs, when necessary #669

@fbricon

Description

@fbricon

Following on redhat-developer/vscode-java#671, when trying to test Java 12 code using preview features, you need to add the --enable-preview flag in the test configuration's vmargs, in settings.json:

    "java.test.config": [
        {
            "name": "java12",
            "workingDirectory": "${workspaceFolder}",
            "vmargs": [ "--enable-preview" ],
        },
    ],
    "java.test.defaultConfig": "java12"

This could be done automatically by the vscode-java-test extension. Also see microsoft/vscode-java-debug#553

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions