Skip to content

Consider enable -parameter compiler arg by default #2872

Closed
@jdneo

Description

@jdneo
Collaborator

There are some issues regarding to this:

#2304
microsoft/vscode-java-test#1518

Looks like it's enabled in Eclipse by default
image

I haven't confirmed yet that the highlighted option is about the -parameter option. Correct me if I'm wrong.

Activity

jdneo

jdneo commented on Jan 12, 2023

@jdneo
CollaboratorAuthor

Oh sorry, I just check the setting in a newly installed Eclipse instance, and it's disabled by default.

Then let's wait to see if more people want this to be enabled by default.

bohdan-shulha

bohdan-shulha commented on Jul 3, 2023

@bohdan-shulha

How to enable this in VS Code? :)

Ah, nevermind. I've visited the first two links in this issue - it became obvious.

However, the solution didn't work for me.

Creating the .settings/org.eclipse.jdt.core.prefs file didn't help though. The .settings folder itself and this file were filled with different settings, so it should have been picked up.

BTW, would be great to specify this option via the launch.json/settings.json that could be safely shared.

jdneo

jdneo commented on Jun 3, 2024

@jdneo
CollaboratorAuthor

With the latest Language Support for Java(TM) by Red Hat (1.31.0) and latest Extension Pack for Java (0.27.0). You can now change the compiler options with a GUI with following steps:

  1. Click the java status bar
    image
  2. Select Open Project Settings
    image
  3. Go to the Compiler tab, and enable Store information about method parameters
    image
  4. Click Apply Settings at the bottom of the Project Settings page
    image
jdneo

jdneo commented on Jun 3, 2024

@jdneo
CollaboratorAuthor

Close since we have a GUI now to set the setting.

fp024

fp024 commented on Oct 6, 2024

@fp024

Running "Clean Java Language Server Workspace" resets this setting to the default.

It would be nice to have an option to always apply this setting globally so that it is not affected by running "Clean Java Language Server Workspace".

jdneo

jdneo commented on Oct 8, 2024

@jdneo
CollaboratorAuthor

@fp024 Feel free to file an issue your request.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @bohdan-shulha@rgrunber@jdneo@testforstephen@fp024

        Issue actions

          Consider enable `-parameter` compiler arg by default · Issue #2872 · redhat-developer/vscode-java