Skip to content
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

Merged
merged 1 commit into from
Dec 24, 2019

Conversation

snjeza
Copy link
Contributor

@snjeza snjeza commented Dec 17, 2019

@fbricon
Copy link
Contributor

fbricon commented Dec 18, 2019

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)

Copy link
Contributor

@fbricon fbricon left a 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

@snjeza
Copy link
Contributor Author

snjeza commented Dec 18, 2019

changing the offline flag should also change buildship's preferences

@fbricon Done.

@fbricon
Copy link
Contributor

fbricon commented Dec 18, 2019

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) {
Copy link
Contributor

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

@snjeza
Copy link
Contributor Author

snjeza commented Dec 19, 2019

@fbricon I have updated the PR.

@fbricon fbricon merged commit e9c903b into eclipse-jdtls:master Dec 24, 2019
@fbricon fbricon added this to the End January 2020 milestone Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add buildship offline mode preference
2 participants