-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure Gradle project reacts to build configuration changes. #3349
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes the issue, but I noticed a small bug this introduces.
If I set the This is described at redhat-developer/vscode-java#3893 (comment) . It existed even before."java.configuration.updateBuildConfiguration": "interactive"
(this is where the issue occurs) and make a change in the build file, this updates the build before I answer the prompt.
Screencast.From.2025-01-06.12-06-16.mp4
- I wasn't sure why you touched any logic in the
automatic
case because for me the issue is only reproducible when the build configuration is set tointeractive
. I did however notice that when going frominteractive
->automatic
it didn't seem to respect/update the build. Is that what you're trying to fix as well ?
The issue is reproducible when you set
to
|
my
|
Maybe I didn't describe it correctly. I think the PR fixes things, but it makes the case more clear that when you import the sample project as In my original video, I didn't show the project first loaded as |
@rgrunber I have fixed this issue. Could you, please, check it again? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good to me. Just some minor things to confirm.
...lipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/managers/StandardProjectsManager.java
Show resolved
Hide resolved
org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/managers/GradleBuildSupport.java
Outdated
Show resolved
Hide resolved
org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/managers/GradleBuildSupport.java
Show resolved
Hide resolved
Signed-off-by: Snjezana Peco <[email protected]>
Fixes redhat-developer/vscode-java#3893