honor "auto-insert single item" completion settings in dumb mode
authorPeter Gromov <peter@jetbrains.com>
Mon, 10 Aug 2020 16:51:42 +0000 (18:51 +0200)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Mon, 10 Aug 2020 17:32:25 +0000 (17:32 +0000)
GitOrigin-RevId: bb681875ae63d8d7d0b33bce7c1ac7416fba6617

platform/lang-impl/src/com/intellij/codeInsight/completion/DefaultCompletionContributor.java

index 55c5d85c757719304a8f5584899ec7e3b207815b..28264a06391d839d47e22a59d2baceb35328bf00 100644 (file)
@@ -22,6 +22,7 @@ import com.intellij.codeInsight.lookup.impl.LookupImpl;
 import com.intellij.lang.LangBundle;
 import com.intellij.openapi.actionSystem.IdeActions;
 import com.intellij.openapi.keymap.KeymapUtil;
+import com.intellij.openapi.project.DumbAware;
 import com.intellij.openapi.project.Project;
 import com.intellij.openapi.util.text.StringUtil;
 import org.jetbrains.annotations.NotNull;
@@ -29,7 +30,7 @@ import org.jetbrains.annotations.NotNull;
 /**
  * @author peter
  */
-public class DefaultCompletionContributor extends CompletionContributor {
+public class DefaultCompletionContributor extends CompletionContributor implements DumbAware {
 
   static void addDefaultAdvertisements(LookupImpl lookup, boolean includePsiFeatures) {
     Project project = lookup.getProject();