From 6b9d4c15806a0f1290e4456ac3ef08a4bfb8ee63 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 23 Jul 2018 15:05:11 +0200 Subject: [PATCH] deprecate CompletionContributor#invokeAutoPopup (IDEA-CR-35240) --- .../codeInsight/completion/CompletionContributor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/lang-api/src/com/intellij/codeInsight/completion/CompletionContributor.java b/platform/lang-api/src/com/intellij/codeInsight/completion/CompletionContributor.java index 1b3ac51b9cca..7c70c516393b 100644 --- a/platform/lang-api/src/com/intellij/codeInsight/completion/CompletionContributor.java +++ b/platform/lang-api/src/com/intellij/codeInsight/completion/CompletionContributor.java @@ -189,8 +189,10 @@ public abstract class CompletionContributor { } /** - * Allow autoPopup to appear after custom symbol + * Don't use this method, because {@code position} can come from uncommitted PSI and be totally unrelated to the code being currently in the document/editor. + * Please consider using {@link com.intellij.codeInsight.editorActions.TypedHandlerDelegate#checkAutoPopup} instead. */ + @Deprecated public boolean invokeAutoPopup(@NotNull PsiElement position, char typeChar) { return false; }