From 443c77a8ee5e4fb8b4a61b2e450cd9cc61b70c4d Mon Sep 17 00:00:00 2001 From: Colin Godsey Date: Wed, 10 May 2023 10:03:01 -0600 Subject: [PATCH] stash - targeted build --- .../blaze/base/build/BlazeBuildService.java | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/base/src/com/google/idea/blaze/base/build/BlazeBuildService.java b/base/src/com/google/idea/blaze/base/build/BlazeBuildService.java index a62ea7fece4..8103ff1a090 100644 --- a/base/src/com/google/idea/blaze/base/build/BlazeBuildService.java +++ b/base/src/com/google/idea/blaze/base/build/BlazeBuildService.java @@ -143,24 +143,21 @@ public void buildFiles(Collection files) { pathsToQuery.add(path); } - ScopedFunction> 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