mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-60682 user live template requires two presses of the expansion key in some cases
This commit is contained in:
@@ -540,4 +540,15 @@ class Foo {
|
||||
}
|
||||
}
|
||||
|
||||
public void "test expand current live template on no suggestions in lookup"() {
|
||||
myFixture.configureByText "a.java", "class Foo {{ <caret> }}"
|
||||
myFixture.completeBasic()
|
||||
assert myFixture.lookup
|
||||
myFixture.type("sout")
|
||||
assert myFixture.lookup
|
||||
assert myFixture.lookupElementStrings == []
|
||||
myFixture.type('\t')
|
||||
myFixture.checkResult "class Foo {{\n System.out.println(<caret>); }}"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
-3
@@ -84,9 +84,6 @@ public abstract class ChooseItemAction extends EditorAction {
|
||||
return false;
|
||||
}
|
||||
if (finishingChar == Lookup.REPLACE_SELECT_CHAR) {
|
||||
if (lookup.isFocused()) {
|
||||
return true;
|
||||
}
|
||||
return !lookup.getItems().isEmpty();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user