Skip to content

redhat.java: Detect Jdks At Start Always enabled #4206

@Mohammad-Nobel

Description

@Mohammad-Nobel

this options "java.configuration.detectJdksAtStart": false, of redhat.java is always reconfigures vscode settings.json and search server for all installed jdk and once saved the extensions store to system installed JDKs that i don't need them on vscode, i've only 1 for development, the installed are dependencies of other apps on the server not the jdk i use for building apps!!!

Java › Configuration: Detect Jdks At Start
Automatically detect JDKs installed on local machine at startup. 

if i made this setting

"java.configuration.runtimes": [
        {
            "name": "jdk-21",
            "path": "/opt/java/jdk-21"
        }
    ],

instantly reconfigured:

"java.configuration.runtimes": [
        {
            "name": "JavaSE-1.8",
            "path": "/usr/lib/jvm/java-8-openjdk"
        },
        {
            "name": "JavaSE-17",
            "path": "/linux/.config/Code - OSS/User/globalStorage/pleiades.java-extension-pack-jdk/java/17"
        },
        {
            "name": "JavaSE-21",
            "path": "/usr/lib/jvm/java-21-openjdk"
        },
        {
            "name": "JavaSE-25",
            "path": "/linux/.config/Code - OSS/User/globalStorage/pleiades.java-extension-pack-jdk/java/latest",
            "default": true
        }
    ],

also this option too:
i make it


"terminal.integrated.profiles.linux": {
        "bash": {
            "path": "bash",
            "env": {
                "JAVA_HOME": "/opt/java/jdk-21"
            },
            "args": [
                "--rcfile",
                "/linux/.config/Code - OSS/User/globalStorage/pleiades.java-extension-pack-jdk/.bashrc"
            ]
        }
}

instantly changed to:

"terminal.integrated.profiles.linux": {
        "bash": {
            "path": "bash",
            "env": {
                "JAVA_HOME": "/opt/java/jdk-21"
            },
            "args": [
                "--rcfile",
                "/linux/.config/Code - OSS/User/globalStorage/pleiades.java-extension-pack-jdk/.bashrc"
            ]
        },
        "JavaSE-1.8 LTS": {
            "overrideName": true,
            "env": {
                "JAVA_HOME": "/usr/lib/jvm/java-8-openjdk"
            },
            "path": "bash",
            "args": [
                "--rcfile",
                "/linux/.config/Code - OSS/User/globalStorage/pleiades.java-extension-pack-jdk/.bashrc"
            ]
        },
        "JavaSE-17 LTS": {
            "overrideName": true,
            "env": {
                "JAVA_HOME": "/linux/.config/Code - OSS/User/globalStorage/pleiades.java-extension-pack-jdk/java/17"
            },
            "path": "bash",
            "args": [
                "--rcfile",
                "/linux/.config/Code - OSS/User/globalStorage/pleiades.java-extension-pack-jdk/.bashrc"
            ]
        },
        "JavaSE-21 LTS": {
            "overrideName": true,
            "env": {
                "JAVA_HOME": "/usr/lib/jvm/java-21-openjdk"
            },
            "path": "bash",
            "args": [
                "--rcfile",
                "/linux/.config/Code - OSS/User/globalStorage/pleiades.java-extension-pack-jdk/.bashrc"
            ]
        },
        "JavaSE-25 LTS": {
            "overrideName": true,
            "env": {
                "JAVA_HOME": "/linux/.config/Code - OSS/User/globalStorage/pleiades.java-extension-pack-jdk/java/latest"
            },
            "path": "bash",
            "args": [
                "--rcfile",
                "/linux/.config/Code - OSS/User/globalStorage/pleiades.java-extension-pack-jdk/.bashrc"
            ]
        }
    },

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions