mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
[java-rd] IDEA-371682 Add missing ";" quick fix is not available in RD in 252
GitOrigin-RevId: fd8cd0edfc0b43b79ef221cef46422bd628f0205
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c16d6840e8
commit
e2375d0521
+3
-1
@@ -6,13 +6,15 @@ import com.intellij.idea.AppMode;
|
||||
import com.intellij.java.codeserver.highlighting.JavaSyntaxErrorChecker;
|
||||
import com.intellij.lang.java.JavaLanguage;
|
||||
import com.intellij.psi.PsiErrorElement;
|
||||
import com.intellij.util.PlatformUtils;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public final class JavaHighlightErrorFilter extends HighlightErrorFilter {
|
||||
@Override
|
||||
public boolean shouldHighlightErrorElement(@NotNull PsiErrorElement element) {
|
||||
// todo we should handle it on the platform side IJPL-185339
|
||||
if (element.getLanguage().equals(JavaLanguage.INSTANCE) && AppMode.isRemoteDevHost()) {
|
||||
// should be skipped on the client only, because the client doesn't know about fixes
|
||||
if (element.getLanguage().equals(JavaLanguage.INSTANCE) && PlatformUtils.isJetBrainsClient()) {
|
||||
return false;
|
||||
}
|
||||
return JavaSyntaxErrorChecker.shouldHighlightErrorElement(element);
|
||||
|
||||
Reference in New Issue
Block a user