mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
PY-19920 Do not update cache of packages on EDT in PyActiveSdkModuleConfigurable#apply()
I explicitly call VFSTestFrameworkListener#isTestFrameworkInstalled() in pooled thread skipping the MergingUpdateQueue since (rather confusingly) it executes scheduled updates in the current thread when one calls MergingUpdateQueue#flush() even when it was explicitly stated that its alarm should use thread pool.
This commit is contained in:
+4
-2
@@ -16,6 +16,7 @@
|
||||
package com.jetbrains.python.configuration;
|
||||
|
||||
import com.intellij.application.options.ModuleAwareProjectConfigurable;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.module.ModuleManager;
|
||||
import com.intellij.openapi.options.ConfigurationException;
|
||||
@@ -53,10 +54,11 @@ public class PyActiveSdkModuleConfigurable extends ModuleAwareProjectConfigurabl
|
||||
for (Module module : ModuleManager.getInstance(myProject).getModules()) {
|
||||
final Sdk sdk = ModuleRootManager.getInstance(module).getSdk();
|
||||
if (sdk != null) {
|
||||
VFSTestFrameworkListener.getInstance().updateAllTestFrameworks(sdk);
|
||||
ApplicationManager.getApplication().executeOnPooledThread(() -> {
|
||||
VFSTestFrameworkListener.getInstance().updateAllTestFrameworks(sdk);
|
||||
});
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user