mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 17:03:12 +07:00
fixed PY-17113 Right click menu is very slow to open up in PyCharm EAP PY-143.24
This commit is contained in:
@@ -130,9 +130,9 @@ public class PyCondaPackageManagerImpl extends PyPackageManagerImpl {
|
||||
getCondaOutput("remove", arguments);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@NotNull
|
||||
@Override
|
||||
public List<PyPackage> getPackages(boolean cachedOnly) throws ExecutionException {
|
||||
protected List<PyPackage> getPackages() throws ExecutionException {
|
||||
final ProcessOutput output = getCondaOutput("list", Lists.newArrayList("-e"));
|
||||
return parseCondaToolOutput(output.getStdout());
|
||||
}
|
||||
|
||||
@@ -276,8 +276,7 @@ public class PyPackageManagerImpl extends PyPackageManager {
|
||||
}
|
||||
}
|
||||
try {
|
||||
final String output = getHelperResult(PACKAGING_TOOL, Arrays.asList("list"), false, false, null);
|
||||
final List<PyPackage> packages = parsePackagingToolOutput(output);
|
||||
final List<PyPackage> packages = getPackages();
|
||||
synchronized (myCacheLock) {
|
||||
myPackagesCache = packages;
|
||||
return new ArrayList<PyPackage>(myPackagesCache);
|
||||
@@ -291,6 +290,12 @@ public class PyPackageManagerImpl extends PyPackageManager {
|
||||
}
|
||||
}
|
||||
|
||||
@NotNull
|
||||
protected List<PyPackage> getPackages() throws ExecutionException {
|
||||
final String output = getHelperResult(PACKAGING_TOOL, Arrays.asList("list"), false, false, null);
|
||||
return parsePackagingToolOutput(output);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public Set<PyPackage> getDependents(@NotNull PyPackage pkg) throws ExecutionException {
|
||||
final List<PyPackage> packages = getPackages(false);
|
||||
|
||||
Reference in New Issue
Block a user