mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't focus lookups in comments, I said
This commit is contained in:
@@ -27,7 +27,7 @@ public class UnfocusedComments extends CompletionConfidence {
|
||||
@NotNull
|
||||
@Override
|
||||
public ThreeState shouldFocusLookup(@NotNull CompletionParameters parameters) {
|
||||
if (PsiTreeUtil.getParentOfType(parameters.getPosition(), PsiComment.class) != null) {
|
||||
if (PsiTreeUtil.getParentOfType(parameters.getPosition(), PsiComment.class, false) != null) {
|
||||
return ThreeState.NO;
|
||||
}
|
||||
return ThreeState.UNSURE;
|
||||
|
||||
Reference in New Issue
Block a user