From 02747f41d9f1d318e66083d6fef09f704d85b4ee Mon Sep 17 00:00:00 2001 From: Nikita Skvortsov Date: Mon, 21 Jan 2019 14:46:45 +0300 Subject: [PATCH] [build tool window] more straightforward impl of manual auto-expand CPP-15162 --- .../src/com/intellij/build/BuildTreeConsoleView.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/build/BuildTreeConsoleView.java b/platform/lang-impl/src/com/intellij/build/BuildTreeConsoleView.java index f6a4c629447a..9bfb24841ec3 100644 --- a/platform/lang-impl/src/com/intellij/build/BuildTreeConsoleView.java +++ b/platform/lang-impl/src/com/intellij/build/BuildTreeConsoleView.java @@ -429,12 +429,10 @@ public class BuildTreeConsoleView implements ConsoleView, DataProvider, BuildCon final Update update = new Update(node) { @Override public void run() { - myTreeModel.invalidate(node, true).then(path -> { - if (node.isAutoExpandNode() && node.getChildCount() > 0) { - myTreeModel.expand(node, myTree, p -> {}); - } - return path; - }); + if (node.isAutoExpandNode() && node.getChildCount() > 0) { + myTreeModel.expand(node, myTree, p -> {}); + } + myTreeModel.invalidate(node, true); } }; myLaterInvocator.queue(update);