-2

I work on a large monorepo. I normally keep java tools disabled, but sometimes I do actually need to edit Java projects. When I try to, all the hell breaks loose - Java Language Server starts building dozen of projects I've never even heard off.

I work on one gradle project, one maven project. In both cases I do so rarely. The extension I use for that is vscjava.vscode-gradle (which is a pack of multiple tools, notably vscjava.vscode-gradle and vscjava.vscode-maven.

I was not able to find a setting that turns that off. I asked copilot - it successfully hallucinated whole bunch of settings, but no real ones.

How can I disable auto building of java projects in VS Code on startup?

8
  • AFAIK, VSCode doesn't support Java without extensions. Can you provide links (or the unique identifiers) to the extensions you use?
    – jabaa
    Commented yesterday
  • I never said anything about doing it without extensions. By "I normally keep java tools disabled" I meant that I have the extensions, but usually turn them off on account of the ridiculous behavior I described in my question. But if I have to work on Java project, I enable the extensions and that's where the problems start. Commented yesterday
  • 1
    I meant that you didn't provide all necessary details to answer your question. Other users would have to guess if you don't list the extensions.
    – jabaa
    Commented yesterday
  • I updated my question to add the detail - but this detail is the recommended default, so that's why I didn't realize I should include it. Commented yesterday
  • Have you tried java.gradle.buildServer.enabled? It looks like neither vscjava.vscode-gradle nor vscjava.vscode-maven have an explicit configuration to stop all building all projects at startup.
    – jabaa
    Commented yesterday

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.