mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
IDEA-68635 Completion inserts new line on SPACE
This commit is contained in:
@@ -759,7 +759,7 @@ public class JavaCompletionUtil {
|
||||
String name = psiClass.getName();
|
||||
document.replaceString(startOffset, endOffset, name);
|
||||
|
||||
final RangeMarker toDelete = insertTemporary(startOffset + name.length(), document, ";");
|
||||
final RangeMarker toDelete = insertTemporary(startOffset + name.length(), document, "#");
|
||||
|
||||
PsiDocumentManager.getInstance(project).commitAllDocuments();
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
class Xxx {
|
||||
{
|
||||
if (ABCDEF<caret>aaa.bbb()) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import foo.ABCDEFFFFF;
|
||||
|
||||
class Xxx {
|
||||
{
|
||||
if (ABCDEFFFFF<caret>aaa.bbb()) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -853,6 +853,11 @@ public class NormalCompletionTest extends LightFixtureCompletionTestCase {
|
||||
doTest('\n')
|
||||
}
|
||||
|
||||
public void testClassNameInIfBeforeIdentifier() throws Throwable {
|
||||
myFixture.addClass("package foo; public class ABCDEFFFFF {}")
|
||||
doTest('\n')
|
||||
}
|
||||
|
||||
public void testClassNameWithInnersTab() throws Throwable { doTest('\t') }
|
||||
|
||||
public void testClassNameWithGenericsTab() throws Throwable {doTest('\t') }
|
||||
|
||||
Reference in New Issue
Block a user