[java-rd] IDEA-322563 Improve editing experience in Remote Dev for Java

- fix while completion

GitOrigin-RevId: 40827f77037557eab988d33d8170bd4446b8478a
This commit is contained in:
Mikhail Pyltsin
2023-09-18 16:13:41 +02:00
committed by intellij-monorepo-bot
parent de67570ff3
commit 76d10b31f3
6 changed files with 17 additions and 76 deletions

View File

@@ -553,7 +553,7 @@ public final class BasicJavaAstTreeUtil {
@Nullable
public static ASTNode getWhileCondition(@Nullable ASTNode element) {
if (!is(element, BASIC_DO_WHILE_STATEMENT) ||
if (!is(element, BASIC_DO_WHILE_STATEMENT) &&
!is(element, BASIC_WHILE_STATEMENT)) {
return null;
}