microsoft / microsoft/vscode-java-debug

Disabling or editing the Run Java/Debug Java options

Open
#1,264 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ai-triaged question ux
Dominant language
TypeScript
Stars
591
Forks
429
Avg merge
1d 9h
Merged PRs (30d)
19

Description

Hi. Is it possible to remove or override the "Run Java", "Debug Java" buttons that (I believe) the Java Debugger extension is adding to VSCode?
I'm running a Gradle project and the Gradle extension can successfully run and debug the project but I don't think it's possible to edit the launch.json file to use the same calls that the Gradle extension uses.

It's not a big deal but it's just confusing to have very visible Run/Debug buttons that do not work but have a set of Run/Debug buttons inside the Gradle extension that do work (but depend on the Java Debugger extension also so I can't totally disable it).

Thanks.

Environment
  • Operating System: Mac
  • JDK version: 17
  • Visual Studio Code version: 1.7.3.1
  • Java extension version: 0.25.6
  • Java Debugger extension version: 0.46.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin with the Java Debugger extension's Run Java and Debug Java buttons, then review how launch.json and the Gradle extension provide the working alternatives. Define whether those buttons can be hidden or overridden without disabling the debugger dependency; done when the supported behavior is clear for the reported setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.