-
Notifications
You must be signed in to change notification settings - Fork 312
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
Use git info only when Expand to Working Set is enabled #6944
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,7 @@ | |
import com.google.idea.blaze.base.settings.Blaze; | ||
import com.google.idea.blaze.base.settings.BlazeImportSettings; | ||
import com.google.idea.blaze.base.settings.BlazeImportSettingsManager; | ||
import com.google.idea.blaze.base.settings.BlazeUserSettings; | ||
import com.google.idea.blaze.base.sync.SyncScope.SyncCanceledException; | ||
import com.google.idea.blaze.base.sync.SyncScope.SyncFailedException; | ||
import com.google.idea.blaze.base.sync.projectview.LanguageSupport; | ||
|
@@ -125,7 +126,7 @@ private SyncProjectState getProjectState(BlazeContext context, BlazeSyncParams p | |
createBazelInfoFuture(context, syncFlags, params.syncMode()); | ||
|
||
ListenableFuture<WorkingSet> workingSetFuture; | ||
if (params.addWorkingSet() || params.syncMode() == SyncMode.FULL) { | ||
if (params.addWorkingSet() || (BlazeUserSettings.getInstance().getExpandSyncToWorkingSet() && params.syncMode() == SyncMode.FULL)) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't know when this one is used but it is bad to ignore the setting anyway so we need to double check here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, params.addWorkingSet already checks for that, but I'll merge There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I want to avoid unconditional |
||
workingSetFuture = vcsHandler.getWorkingSet(context, executor); | ||
} else { | ||
workingSetFuture = Futures.immediateFuture(null); | ||
|
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.
Probably other option should be added for QS yet even QS-relevant delta calculation will be taxing in some cases.
Also Sync to Working Set is enabled by default, iirc. So default QS behavior won't change.