Java: "insert ';'" quick fix for local variables and fields (IDEA-330590)

and skip JavaErrorQuickFixProvider for non-Java elements

GitOrigin-RevId: 2fb2b6321c1a087d53bf52509f1513859ac4faf8
This commit is contained in:
Bas Leijdekkers
2024-01-10 11:32:32 +01:00
committed by intellij-monorepo-bot
parent f521fc113b
commit 04ee289bc9
9 changed files with 32 additions and 13 deletions

View File

@@ -0,0 +1,9 @@
// "Apply all 'Insert ';'' fixes in file" "true"
class X {
String one = "1";
String two;
void test() {
String s;
String t = "t";
}
}

View File

@@ -1,4 +1,4 @@
// "Apply all 'Insert ;' fixes in file" "true"
// "Apply all 'Insert ';'' fixes in file" "true"
class X {
void test() {
System.out.println("Hello");

View File

@@ -1,4 +1,4 @@
// "Insert ;" "true-preview"
// "Insert ';'" "true-preview"
class X {
void test() {
System.out.println("Hello");

View File

@@ -0,0 +1,9 @@
// "Apply all 'Insert ';'' fixes in file" "true"
class X {
String one = "1"
String two
void test() {
String s<caret>
String t = "t";
}
}

View File

@@ -1,4 +1,4 @@
// "Apply all 'Insert ;' fixes in file" "true"
// "Apply all 'Insert ';'' fixes in file" "true"
class X {
void test() {
System.out.println("Hello")<caret>

View File

@@ -1,4 +1,4 @@
// "Insert ;" "true-preview"
// "Insert ';'" "true-preview"
class X {
void test() {
System.out.println("Hello")<caret>