mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
fix completion not launching insert handler after explicit common prefix insertion
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
public class SomeClass {
|
||||
void foo(String param) {
|
||||
if (param.<caret>)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
public class SomeClass {
|
||||
void foo(String param) {
|
||||
if (param.equals(<caret>))
|
||||
}
|
||||
}
|
||||
+10
@@ -858,6 +858,16 @@ public class NormalCompletionTest extends LightFixtureCompletionTestCase {
|
||||
assertStringItems("myField1", "myField2");
|
||||
}
|
||||
|
||||
public void testAfterCommonPrefix() throws Throwable {
|
||||
configure()
|
||||
type 'eq'
|
||||
assertStringItems("equals", "equalsIgnoreCase");
|
||||
complete()
|
||||
assertStringItems("equals", "equalsIgnoreCase");
|
||||
type '('
|
||||
checkResult()
|
||||
}
|
||||
|
||||
public void testClassNameInsideIdentifierInIf() throws Throwable {
|
||||
configure()
|
||||
type '\n'
|
||||
|
||||
Reference in New Issue
Block a user