mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
check for intention dumb-awareness before applying (EA-64965 - INRE: FileBasedIndexImpl.handleDumbMode)
This commit is contained in:
@@ -246,6 +246,11 @@ class IntentionListStep implements ListPopupStep<IntentionActionWithTextCaching>
|
||||
@Override
|
||||
public void run() {
|
||||
if (myProject.isDisposed()) return;
|
||||
if (DumbService.isDumb(myProject) && !DumbService.isDumbAware(cachedAction)) {
|
||||
DumbService.getInstance(myProject).showDumbModeNotification(cachedAction.getText() + " is not available during indexing");
|
||||
return;
|
||||
}
|
||||
|
||||
PsiDocumentManager.getInstance(myProject).commitAllDocuments();
|
||||
final PsiFile file = PsiUtilBase.getPsiFileInEditor(myEditor, myProject);
|
||||
if (file == null) {
|
||||
|
||||
Reference in New Issue
Block a user