Giter VIP home page Giter VIP logo

Comments (9)

testforstephen avatar testforstephen commented on July 28, 2024 1

It's the eclipse.jdt.ls project to handle the auto compilation, i suggest you have a look at the source code there. https://github.com/eclipse/eclipse.jdt.ls/blob/master/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/handlers/DocumentLifeCycleHandler.java#L204

from java-debug.

testforstephen avatar testforstephen commented on July 28, 2024

modify -> textDocument/didChange
save -> textDocument/didSave

from java-debug.

gengu avatar gengu commented on July 28, 2024

textDocument/didSave does not seem to work .

I want to know how to implement classes that automatically compile changes?

from java-debug.

gengu avatar gengu commented on July 28, 2024

Thanks

from java-debug.

yaohaizh avatar yaohaizh commented on July 28, 2024

@gnegu, you need enable auto building for your work. Refer https://github.com/eclipse/eclipse.jdt.ls/blob/c0656fc1230be7f77202238cac61f1f6cd4b74a1/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/managers/ProjectsManager.java for enable this value.

from java-debug.

gengu avatar gengu commented on July 28, 2024

I think , you said the settings

"autobuild": {
      "enabled": true
},

Actually , I set it to true, then I save a file does not appear to take effect.

from java-debug.

yaohaizh avatar yaohaizh commented on July 28, 2024

setting.json:

    "java.autobuild.enabled": true

from java-debug.

gengu avatar gengu commented on July 28, 2024

It seems that I am setting the right value for autobuild .

from java-debug.

gengu avatar gengu commented on July 28, 2024

https://github.com/eclipse/eclipse.jdt.ls/blob/v0.25.0/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/handlers/InitHandler.java#L220

Looks like it was written to false stable.

from java-debug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.