mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
IDEA-121138 Tab completion does not work in autopopup
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
public class Foo {
|
||||
void m() {
|
||||
new MyClass()<caret>
|
||||
}
|
||||
|
||||
private class MyClass {
|
||||
public void parents() {}
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
public class Foo {
|
||||
void m() {
|
||||
new MyClass().parents();<caret>
|
||||
}
|
||||
|
||||
private class MyClass {
|
||||
public void parents() {}
|
||||
}
|
||||
}
|
||||
+12
@@ -143,6 +143,18 @@ public class TemplatesCompletionTest extends CompletionAutoPopupTestCase {
|
||||
type("r");
|
||||
myFixture.assertPreferredCompletionItems(selectedIndex, ".par", "parents");
|
||||
}
|
||||
|
||||
public void testTabCompletionWithTemplatesInAutopopup() {
|
||||
LiveTemplateCompletionContributor.ourShowTemplatesInTests = true;
|
||||
|
||||
configureByFile();
|
||||
type(".");
|
||||
myFixture.assertPreferredCompletionItems(0, "parents");
|
||||
|
||||
type("\t");
|
||||
assertNull(getLookup());
|
||||
checkResultByFile();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getBasePath() {
|
||||
|
||||
Reference in New Issue
Block a user