mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-142613 "Show Affected Paths" from annotations doesn't work in dumb mode
This commit is contained in:
+2
-2
@@ -1381,7 +1381,7 @@ class EditorGutterComponentImpl extends EditorGutterComponentEx implements Mouse
|
||||
|
||||
GutterIconRenderer renderer = getGutterRenderer(e);
|
||||
final Project project = myEditor.getProject();
|
||||
if (isNavigationBlocked(renderer, project)) {
|
||||
if (renderer != null && isNavigationBlocked(renderer, project)) {
|
||||
DumbService.getInstance(project).showDumbModeNotification("Navigation is not available during indexing");
|
||||
return;
|
||||
}
|
||||
@@ -1409,7 +1409,7 @@ class EditorGutterComponentImpl extends EditorGutterComponentEx implements Mouse
|
||||
}
|
||||
}
|
||||
|
||||
private static boolean isNavigationBlocked(@Nullable GutterIconRenderer renderer, @Nullable Project project) {
|
||||
private static boolean isNavigationBlocked(@NotNull GutterIconRenderer renderer, @Nullable Project project) {
|
||||
return project != null && DumbService.isDumb(project) && !DumbService.isDumbAware(renderer);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user