[^ann] don't automatically show documentation in non-completion lookups (IDEA-95734)

(cherry-picked from 42c7f92)
This commit is contained in:
peter
2012-11-23 21:52:08 +01:00
parent 6b5d564822
commit b0e1f1bf3a
@@ -152,7 +152,7 @@ public class LookupManagerImpl extends LookupManager {
public void run() {
if (myActiveLookup == lookup && lookup.getCurrentItem() != null) {
final CompletionProcess completion = CompletionService.getCompletionService().getCurrentCompletion();
if (completion == null || !completion.isAutopopupCompletion()) {
if (completion != null && !completion.isAutopopupCompletion()) {
DocumentationManager.getInstance(myProject).showJavaDocInfo(editor, psiFile, false);
}
}