'Java Project in VS-Code, "No delegateCommandHandler for vscode.java.validateLaunchConfig" Error

I'm new to Java in Visual Studio Code and trying to implement small application, which is using our SDK, which is located in our internal Git Repository.

When trying to Debug my application I get following Error:

No delegateCommandHandler for vscode.java.validateLaunchConfig

My Configurationfile looks pretty simple:

{
    "configurations": [

        {
            "type": "java",
            "name": "CodeLens (Launch) - App",
            "request": "launch",
            "mainClass": "com.my.first.class",
            "projectName": "dummyproject"
        }
    ]
}

I'm using following Extensions for Visual Studio Code:

  • Debugger for Java (0.20.0)
  • Gitlens (9.9.0)
  • Java Dependency Viewer (0.5.1)
  • Java Test Runner (0.18.1)
  • Maven for Java (0.18.1)
  • Java Extension Pack (0.7.1)
  • Language Support for Java (0.47.0)
  • Visual Studio IntelliCode (1.1.8)


Solution 1:[1]

Restarting Visual Studio Code solved this issue...

Solution 2:[2]

In my case, some of them (Test Runner for Java and Debugger for Java) had a "reload required" button next to the uninstall button. After I pressed them, the error you mentioned disappeared and it worked well. Maybe it helps.:)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Daniel Müller
Solution 2 Ana