mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 12:31:26 +07:00
PY-50769: Make python completion contributors DumbAware
Completion contributors already wrapped in `DumbModeAccessType.RELIABLE_DATA_ONLY.ignoreDumbMode` in `CompletionProgressIndicator#calculateItems` so we don't need any extra-wrappings to prevent IndexNotReadyException (cherry picked from commit 83c120ed2502474f3ddcfa2a52c6e9552d02e55e) IJ-CR-14512 GitOrigin-RevId: e806ecb879708a75a8e7f544ea6d16a0648ca069
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a020a92632
commit
6c243ee77f
@@ -2,6 +2,7 @@
|
||||
package com.jetbrains.python.psi.impl;
|
||||
|
||||
import com.intellij.codeInsight.completion.*;
|
||||
import com.intellij.openapi.project.DumbAware;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.psi.*;
|
||||
@@ -14,7 +15,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import static com.intellij.patterns.PlatformPatterns.psiElement;
|
||||
|
||||
|
||||
public class PyConstructorArgumentCompletionContributor extends CompletionContributor {
|
||||
public class PyConstructorArgumentCompletionContributor extends CompletionContributor implements DumbAware {
|
||||
public PyConstructorArgumentCompletionContributor() {
|
||||
extend(CompletionType.BASIC,
|
||||
psiElement()
|
||||
|
||||
Reference in New Issue
Block a user