Skip to content

Commit

Permalink
stash - targeted build
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrgodsey authored and pswaminathan committed May 17, 2023
1 parent 8e45e6a commit 3d6b1d2
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions base/src/com/google/idea/blaze/base/build/BlazeBuildService.java
Original file line number Diff line number Diff line change
Expand Up @@ -143,24 +143,21 @@ public void buildFiles(Collection<? extends VirtualFile> files) {
pathsToQuery.add(path);
}

ScopedFunction<List<TargetExpression>> targets =
context ->
BlazeQuerySourceToTargetProvider.getTargetsBuildingSourceFiles(
project, pathsToQuery.build(), context, BlazeInvocationContext.ContextType.Other
).stream().map(t -> t.label).collect(toImmutableList());

buildTargetExpressions(
project,
projectView,
projectData,
targets,
context ->
BlazeQuerySourceToTargetProvider.getTargetsBuildingSourceFiles(
project, pathsToQuery.build(), context, BlazeInvocationContext.ContextType.Sync
).stream().map(t -> t.label).collect(toImmutableList()),
new NotificationScope(
project,
"Make",
"Make project",
"Make project completed successfully",
"Make project failed"),
"Make project",
"Make files",
"Make files completed successfully",
"Make files failed"),
"Make files",
buildSystem);

// In case the user touched a file, but didn't change its content. The user will get a false
Expand Down

0 comments on commit 3d6b1d2

Please sign in to comment.