mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 21:55:01 +07:00
IDEA-97822 Code completion inserts a space after primitive types but not reference types
This commit is contained in:
@@ -625,10 +625,8 @@ public class JavaCompletionData extends JavaAwareCompletionData {
|
||||
afterNew ||
|
||||
expressionPosition ||
|
||||
isStatementPosition(position)) {
|
||||
boolean needSpace = !inCast && !typeFragment && !expressionPosition && !inGenerics && !afterNew;
|
||||
for (String primitiveType : PRIMITIVE_TYPES) {
|
||||
LookupElement keyword = createKeyword(position, primitiveType);
|
||||
result.addElement(needSpace ? new OverrideableSpace(keyword, TailType.HUMBLE_SPACE_BEFORE_WORD) : keyword);
|
||||
result.addElement(createKeyword(position, primitiveType));
|
||||
}
|
||||
}
|
||||
if (declaration) {
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
public class Foo {
|
||||
Object foo(boolean <caret>){ }
|
||||
Object foo(boolean<caret>){ }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user