From 556c3b8bcc366948855b46bb5675f02b590570d2 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Sun, 13 Mar 2011 16:31:37 +0100 Subject: [PATCH] synchronously refresh skeletons after generation (may help against PY-2990) --- python/src/com/jetbrains/python/sdk/PythonSdkType.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/src/com/jetbrains/python/sdk/PythonSdkType.java b/python/src/com/jetbrains/python/sdk/PythonSdkType.java index 8afc25a94c4c..58a579c463be 100644 --- a/python/src/com/jetbrains/python/sdk/PythonSdkType.java +++ b/python/src/com/jetbrains/python/sdk/PythonSdkType.java @@ -533,7 +533,10 @@ public class PythonSdkType extends SdkType { VirtualFile skeletonsVFile = LocalFileSystem.getInstance().refreshAndFindFileByPath(skeletonsPath); assert skeletonsVFile != null; - skeletonsVFile.refresh(true, true); + if (indicator != null) { + indicator.setText("Reloading generated skeletons..."); + } + skeletonsVFile.refresh(false, true); } private static String getSkeletonsPath(String bin_path) {