mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-71339 If completion of method call without parameters is finished by space two spaces are inserted
This commit is contained in:
@@ -811,7 +811,7 @@ public class JavaCompletionUtil {
|
||||
final boolean hasTail = tailType != TailType.NONE && tailType != TailType.UNKNOWN;
|
||||
final boolean smart = completionChar == Lookup.COMPLETE_STATEMENT_SELECT_CHAR;
|
||||
|
||||
if (completionChar == '(' || completionChar == '.' || completionChar == ',' || completionChar == ';' || completionChar == ':') {
|
||||
if (completionChar == '(' || completionChar == '.' || completionChar == ',' || completionChar == ';' || completionChar == ':' || completionChar == ' ') {
|
||||
context.setAddCompletionChar(false);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
class Foo {
|
||||
int foo1() {}
|
||||
int foo2() {}
|
||||
|
||||
{
|
||||
foo<caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class Foo {
|
||||
int foo1() {}
|
||||
int foo2() {}
|
||||
|
||||
{
|
||||
foo1() <caret>
|
||||
}
|
||||
}
|
||||
+1
@@ -875,6 +875,7 @@ public class NormalCompletionTest extends LightFixtureCompletionTestCase {
|
||||
public void testCommaAfterVariable() throws Throwable { doTest(',') }
|
||||
|
||||
public void testClassAngleBracket() throws Throwable { doTest('<') }
|
||||
public void testNoArgsMethodSpace() throws Throwable { doTest(' ') }
|
||||
|
||||
public void testClassSquareBracket() throws Throwable { doTest('[') }
|
||||
public void testPrimitiveSquareBracket() throws Throwable { doTest('[') }
|
||||
|
||||
Reference in New Issue
Block a user