mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
add knownIssue section for top issues
GitOrigin-RevId: 296ef270e95aed86cb21ec7ca0eb59d796aa0060
This commit is contained in:
committed by
intellij-monorepo-bot
parent
baab8e65be
commit
1811f0d17d
@@ -16,9 +16,11 @@
|
|||||||
package com.intellij.ide.hierarchy.type;
|
package com.intellij.ide.hierarchy.type;
|
||||||
|
|
||||||
import com.intellij.ide.hierarchy.HierarchyNodeDescriptor;
|
import com.intellij.ide.hierarchy.HierarchyNodeDescriptor;
|
||||||
|
import com.intellij.openapi.application.AccessToken;
|
||||||
import com.intellij.openapi.project.Project;
|
import com.intellij.openapi.project.Project;
|
||||||
import com.intellij.psi.CommonClassNames;
|
import com.intellij.psi.CommonClassNames;
|
||||||
import com.intellij.psi.PsiClass;
|
import com.intellij.psi.PsiClass;
|
||||||
|
import com.intellij.util.SlowOperations;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
@@ -31,6 +33,13 @@ public final class TypeHierarchyTreeStructure extends SubtypesHierarchyTreeStruc
|
|||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private static HierarchyNodeDescriptor buildHierarchyElement(@NotNull Project project, @NotNull PsiClass aClass) {
|
private static HierarchyNodeDescriptor buildHierarchyElement(@NotNull Project project, @NotNull PsiClass aClass) {
|
||||||
|
try (AccessToken ignore = SlowOperations.knownIssue("IDEA-345476, EA-700938")) {
|
||||||
|
return buildHierarchyElementInner(project, aClass);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
private static HierarchyNodeDescriptor buildHierarchyElementInner(@NotNull Project project, @NotNull PsiClass aClass) {
|
||||||
HierarchyNodeDescriptor descriptor = null;
|
HierarchyNodeDescriptor descriptor = null;
|
||||||
PsiClass[] superClasses = createSuperClasses(aClass);
|
PsiClass[] superClasses = createSuperClasses(aClass);
|
||||||
for(int i = superClasses.length - 1; i >= 0; i--){
|
for(int i = superClasses.length - 1; i >= 0; i--){
|
||||||
|
|||||||
@@ -125,7 +125,9 @@ public final class ShowAutoImportPass extends TextEditorHighlightingPass {
|
|||||||
|
|
||||||
private void importUnambiguousImports() {
|
private void importUnambiguousImports() {
|
||||||
ThreadingAssertions.assertEventDispatchThread();
|
ThreadingAssertions.assertEventDispatchThread();
|
||||||
if (!mayAutoImportNow(myFile, true, ThreeState.UNSURE)) return;
|
try (AccessToken ignore = SlowOperations.knownIssue("IDEA-335057, EA-843299")) {
|
||||||
|
if (!mayAutoImportNow(myFile, true, ThreeState.UNSURE)) return;
|
||||||
|
}
|
||||||
for (BooleanSupplier autoImportAction : autoImportActions) {
|
for (BooleanSupplier autoImportAction : autoImportActions) {
|
||||||
autoImportAction.getAsBoolean();
|
autoImportAction.getAsBoolean();
|
||||||
}
|
}
|
||||||
@@ -134,8 +136,8 @@ public final class ShowAutoImportPass extends TextEditorHighlightingPass {
|
|||||||
public static boolean mayAutoImportNow(@NotNull PsiFile psiFile, boolean isInContent,
|
public static boolean mayAutoImportNow(@NotNull PsiFile psiFile, boolean isInContent,
|
||||||
@NotNull ThreeState extensionsAllowToChangeFileSilently) {
|
@NotNull ThreeState extensionsAllowToChangeFileSilently) {
|
||||||
return isAddUnambiguousImportsOnTheFlyEnabled(psiFile) &&
|
return isAddUnambiguousImportsOnTheFlyEnabled(psiFile) &&
|
||||||
(ApplicationManager.getApplication().isUnitTestMode() || DaemonListeners.canChangeFileSilently(psiFile, isInContent,
|
(ApplicationManager.getApplication().isUnitTestMode() ||
|
||||||
extensionsAllowToChangeFileSilently)) &&
|
DaemonListeners.canChangeFileSilently(psiFile, isInContent, extensionsAllowToChangeFileSilently)) &&
|
||||||
isInModelessContext(psiFile.getProject());
|
isInModelessContext(psiFile.getProject());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -148,7 +150,8 @@ public final class ShowAutoImportPass extends TextEditorHighlightingPass {
|
|||||||
public static boolean isAddUnambiguousImportsOnTheFlyEnabled(@NotNull PsiFile psiFile) {
|
public static boolean isAddUnambiguousImportsOnTheFlyEnabled(@NotNull PsiFile psiFile) {
|
||||||
PsiFile templateFile = PsiUtilCore.getTemplateLanguageFile(psiFile);
|
PsiFile templateFile = PsiUtilCore.getTemplateLanguageFile(psiFile);
|
||||||
if (templateFile == null) return false;
|
if (templateFile == null) return false;
|
||||||
return ContainerUtil.exists(ReferenceImporter.EP_NAME.getExtensionList(), importer -> importer.isAddUnambiguousImportsOnTheFlyEnabled(psiFile));
|
return ContainerUtil.exists(ReferenceImporter.EP_NAME.getExtensionList(),
|
||||||
|
importer -> importer.isAddUnambiguousImportsOnTheFlyEnabled(psiFile));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static @NotNull List<HighlightInfo> getVisibleHighlights(@NotNull TextRange visibleRange,
|
private static @NotNull List<HighlightInfo> getVisibleHighlights(@NotNull TextRange visibleRange,
|
||||||
|
|||||||
@@ -585,7 +585,7 @@ public final class ShowUsagesAction extends AnAction implements PopupAction, Hin
|
|||||||
UsageNode USAGES_OUTSIDE_SCOPE_NODE = new UsageNode(null, table.USAGES_OUTSIDE_SCOPE_SEPARATOR);
|
UsageNode USAGES_OUTSIDE_SCOPE_NODE = new UsageNode(null, table.USAGES_OUTSIDE_SCOPE_SEPARATOR);
|
||||||
UsageNode MORE_USAGES_SEPARATOR_NODE = new UsageNode(null, table.MORE_USAGES_SEPARATOR);
|
UsageNode MORE_USAGES_SEPARATOR_NODE = new UsageNode(null, table.MORE_USAGES_SEPARATOR);
|
||||||
|
|
||||||
PingEDT pingEDT = new PingEDT("Rebuild popup in EDT", () -> popup.isDisposed(), 100, () -> {
|
Runnable runnable = () -> {
|
||||||
if (popup.isDisposed()) return;
|
if (popup.isDisposed()) return;
|
||||||
|
|
||||||
List<UsageNode> nodes = new ArrayList<>(usages.size());
|
List<UsageNode> nodes = new ArrayList<>(usages.size());
|
||||||
@@ -641,6 +641,11 @@ public final class ShowUsagesAction extends AnAction implements PopupAction, Hin
|
|||||||
showUsagesPopupData.header.setStatusText(hasMore, visibleCount, totalCount);
|
showUsagesPopupData.header.setStatusText(hasMore, visibleCount, totalCount);
|
||||||
rebuildTable(project, originUsageCheck, data, table, popup, parameters.popupPosition, parameters.minWidth, manuallyResized);
|
rebuildTable(project, originUsageCheck, data, table, popup, parameters.popupPosition, parameters.minWidth, manuallyResized);
|
||||||
preselectedRow.set(getSelectedUsageNode(table));
|
preselectedRow.set(getSelectedUsageNode(table));
|
||||||
|
};
|
||||||
|
PingEDT pingEDT = new PingEDT("Rebuild popup in EDT", () -> popup.isDisposed(), 100, () -> {
|
||||||
|
try (AccessToken ignore = SlowOperations.knownIssue("IDEA-346641, EA-830956")) {
|
||||||
|
runnable.run();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
MessageBusConnection messageBusConnection = project.getMessageBus().connect(usageView);
|
MessageBusConnection messageBusConnection = project.getMessageBus().connect(usageView);
|
||||||
|
|||||||
Reference in New Issue
Block a user