Skip to content

The reformat button doesn't work without the Gradle for Java extension #62

@blu28

Description

@blu28

We have the "reformat" button at the bottom of the VSCode window to make it super easy to always run the spotless task to keep the files formatted correctly. However, this button only works when Gradle for Java is defined. This is because it invokes the spotlessApply task via the command prompt mechanism, as "gradle: spotlessApply". Unfortunately, this task is supplied via the Gradle for Java extension. Since it doesn't find the command to run, it pops up a dialog field to ask what to run. But it doesn't give a message or anything so that can be confusing. We need to change how the button runs the task so Gradle for Java is not required.

We will recommend that Gradle for Java be installed for other reasons, see Issue #61

Metadata

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