mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
(IDEA-170558) don't show popup after special chars in Custom File type
* don't show completion autoPopup if there is no changelist Combobox data in the related document;
This commit is contained in:
+3
-1
@@ -47,7 +47,9 @@ public class ChangeListCompletionContributor extends CompletionContributor imple
|
||||
|
||||
@Override
|
||||
public boolean invokeAutoPopup(@NotNull PsiElement position, char typeChar) {
|
||||
return true;
|
||||
PsiFile file = position.getContainingFile();
|
||||
Document cachedDocument = PsiDocumentManager.getInstance(file.getProject()).getCachedDocument(file);
|
||||
return cachedDocument != null && cachedDocument.getUserData(COMBO_BOX_KEY) != null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user