FIR Completion: Prevent immediate completion in number literals
- This is copied from the original KotlinCompletionContributor
This commit is contained in:
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
fun test() {
|
||||
3<caret>
|
||||
}
|
||||
|
||||
// NOTHING_ELSE
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
fun test() {
|
||||
3.<caret>
|
||||
}
|
||||
|
||||
// INVOCATION_COUNT: 0
|
||||
// NOTHING_ELSE
|
||||
+10
@@ -2307,6 +2307,16 @@ public class JSBasicCompletionTestGenerated extends AbstractJSBasicCompletionTes
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/localVariablesAndFunctionsFromNestedScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noCompletionAfterNumberLiteral1.kt")
|
||||
public void testNoCompletionAfterNumberLiteral1() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/noCompletionAfterNumberLiteral1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noCompletionAfterNumberLiteral2.kt")
|
||||
public void testNoCompletionAfterNumberLiteral2() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/noCompletionAfterNumberLiteral2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableCompletion.kt")
|
||||
public void testNullableCompletion() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/nullableCompletion.kt");
|
||||
|
||||
+10
@@ -2307,6 +2307,16 @@ public class JvmBasicCompletionTestGenerated extends AbstractJvmBasicCompletionT
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/localVariablesAndFunctionsFromNestedScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noCompletionAfterNumberLiteral1.kt")
|
||||
public void testNoCompletionAfterNumberLiteral1() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/noCompletionAfterNumberLiteral1.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("noCompletionAfterNumberLiteral2.kt")
|
||||
public void testNoCompletionAfterNumberLiteral2() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/noCompletionAfterNumberLiteral2.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableCompletion.kt")
|
||||
public void testNullableCompletion() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/nullableCompletion.kt");
|
||||
|
||||
Reference in New Issue
Block a user