Also wait for CalcThread termination when reopening search everywhere popup

(cherry picked from commit 9ba2c48 in Rider fork)
This commit is contained in:
Nikolay Kuznetsov
2018-03-20 17:48:05 +01:00
parent d3d81e10a4
commit 8205c4a8ba
@@ -2223,8 +2223,8 @@ public class SearchEverywhereAction extends AnAction implements CustomComponentA
myPopup = null;
myHistoryIndex = 0;
myPopupActualWidth = 0;
myCurrentWorker = ActionCallback.DONE;
showAll.set(false);
myCurrentWorker = myCalcThread.cancel();
myCalcThread = null;
myEditor = null;
myFileEditor = null;