-
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
Add buildship offline mode preference #1308
Conversation
The offline flag is only used during project import. After import, if you toggle it, it has no effect to the project (try messing with dependency resolution) |
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.
changing the offline flag should also change buildship's preferences
@fbricon Done. |
This doesn't fix the issue. Buildship's offline status should react to preference changes sent by the client |
@@ -703,6 +713,19 @@ public Preferences setImportGradleEnabled(boolean enabled) { | |||
return this; | |||
} | |||
|
|||
@SuppressWarnings("restriction") | |||
public Preferences setImportGradleOfflineEnabled(boolean enabled) { |
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.
I'd rather prefer we decouple preferences from Gradle (or any build system). We should have preference listeners for that
Signed-off-by: Snjezana Peco <[email protected]>
@fbricon I have updated the PR. |
Fixes redhat-developer/vscode-java#1157
Requires redhat-developer/vscode-java#1199
Signed-off-by: Snjezana Peco [email protected]