mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
don't classes by ( not after new, don't insert space when completing an already typed variable name by comma
This commit is contained in:
@@ -666,4 +666,28 @@ class Foo {
|
||||
assert myFixture.editor.document.text.contains('iter ')
|
||||
}
|
||||
|
||||
public void testNewClassParenthesis() {
|
||||
myFixture.configureByText("a.java", """ class Foo { { new <caret> } } """)
|
||||
type 'fil('
|
||||
assert myFixture.editor.document.text.contains('new File()')
|
||||
}
|
||||
|
||||
public void testUnknownMethodParenthesis() {
|
||||
myFixture.configureByText("a.java", """ class Foo { { <caret> } } """)
|
||||
type 'filinpstr('
|
||||
assert myFixture.editor.document.text.contains('filinpstr()')
|
||||
}
|
||||
|
||||
public void testNonFinishedParameterComma() {
|
||||
myFixture.configureByText("a.java", """ class Foo { void foo(int aaa, int aaaaa) { foo(<caret>) } } """)
|
||||
type 'a,'
|
||||
assert myFixture.editor.document.text.contains('foo(aaa, )')
|
||||
}
|
||||
|
||||
public void testFinishedParameterComma() {
|
||||
myFixture.configureByText("a.java", """ class Foo { void foo(int aaa, int aaaaa) { foo(<caret>) } } """)
|
||||
type 'aaa,'
|
||||
assert myFixture.editor.document.text.contains('foo(aaa,)')
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user