peter
4208f1d7b3
java completion: group fields together with local variables (IDEA-168743 , IDEA-172888)
2017-05-24 20:40:20 +02:00
Dmitry Batkovich
18592664b7
method chain completion: remove sub lookup element (automatic argument insertion)
2017-05-15 16:27:16 +03:00
peter
29672cb324
java smart completion: prefer all items with exactly expected type, not only classes (IDEA-169490)
2017-05-15 09:16:00 +02:00
peter
1c977bd5dd
IDEA-170406 Prefer expected enum constants in annotation attribute, despite statistics
2017-05-13 07:53:22 +02:00
Alexey Kudravtsev
4a4626c750
removed default file header, because it adds no information but subtracts attention and space
2017-05-12 14:02:24 +03:00
Alexey Kudravtsev
920d5b4fba
removed default file header, because it adds no information but subtracts attention and space
2017-05-11 13:39:07 +03:00
peter
a9db058d17
java completion: suggest guava/protobuf builder variants (IDEA-130386)
2017-05-10 10:13:55 +02:00
Dmitry Batkovich
a82a3842bb
method chains search: check assignability; use name suggester; use JavaChainLookupElement
2017-04-28 18:20:11 +03:00
Pavel Dolgov
5ef59d28e1
Java: In MethodHandle completion show the list of available signatures of overloaded method, don't complete automatically the first item from that list (IDEA-167319)
2017-04-28 15:12:25 +03:00
Dmitry Batkovich
0301170130
method chains completion: fix tests (class shouldn't be functional)
2017-04-26 19:21:47 +03:00
Anna.Kozlova
20113417a0
completion: don't start template if Object was inferred by the parent type
2017-04-25 17:03:13 +02:00
Pavel Dolgov
e8dabd42ff
Java: Fixed completion of overloaded method parameters in getDeclaredMethod("methodName", ...) (IDEA-171721)
2017-04-25 14:41:26 +03:00
Dmitry Batkovich
af57b8414a
method chain completion: suggest chains for collection of elements
2017-04-20 18:46:21 +03:00
Dmitry Batkovich
4d79d6635a
method chain completion: suggest chains for arrays
2017-04-20 16:12:08 +03:00
Dmitry Batkovich
9f13e80bc1
method chain completion: use proper qualifier, not method declaration class
2017-04-20 12:23:55 +03:00
Dmitry Batkovich
a0cb4092b7
Merge branch 'db/method-chains-completion'
...
# Conflicts:
# jps/jps-builders/src/org/jetbrains/jps/backwardRefs/BackwardReferenceIndexUtil.java
# jps/jps-builders/src/org/jetbrains/jps/backwardRefs/BackwardReferenceIndexWriter.java
# jps/jps-builders/src/org/jetbrains/jps/incremental/JavaBuilderService.java
2017-04-03 17:08:15 +03:00
Dmitry Batkovich
91fa3f1dbe
method chain search use PsiType-s instead of raw strings
2017-04-03 16:07:09 +03:00
peter
7372d02347
override/implement completion: show short types, not raw (IDEA-CR-19511)
2017-03-27 17:39:24 +02:00
Pavel Dolgov
25afffeb70
Java: Filter by 'static' modifier in MethodHandle/VarHandle completion assistance (IDEA-167319, IDEA-CR-19610)
2017-03-24 15:45:42 +03:00
Pavel Dolgov
7c3a2057df
Java: Implemented completion of field types and method signatures in calls to findConstructor(), findVirtual(), findVarHandle(), etc (IDEA-167319)
2017-03-22 14:44:26 +03:00
peter
09d6f71387
IDEA-169780 Show parameter types in implement/override popup
2017-03-20 13:32:19 +01:00
peter
6271698a64
IDEA-169818 Completion for first argument of Map.getOrDefault should be same as for Map.get
2017-03-20 13:32:19 +01:00
Anna.Kozlova
cd431e9763
completion for inherited after new: find corresponding type parameter when target type passes to another parameter (IDEA-157803)
2017-03-17 09:39:29 +01:00
Anna.Kozlova
0dd24ab38d
completion: take into account provided type arguments (IDEA-169478)
2017-03-13 17:18:18 +01:00
Anna.Kozlova
4e3b104169
fix completion context to collapse to diamonds (IDEA-169491)
2017-03-13 17:18:18 +01:00
Anna.Kozlova
e7edc56bc6
welcome mock jdk 9 (IDEA-168823)
2017-03-07 14:57:35 +01:00
Pavel Dolgov
c1bb394630
Java: Implemented completion assistance for Var/Method Handle - suggest field/method name, autocomplete the signature (IDEA-167319)
2017-03-06 15:59:04 +03:00
peter
428cba1c1b
let exact prefix items be the ones that have exact prefix as any lookup string, not just the main one (IDEA-168948)
2017-03-04 21:59:48 +01:00
peter
246d10ad26
IDEA-169028 Broken auto-import completion inside lambda
2017-03-03 17:12:02 +01:00
Pavel Dolgov
aedc783354
Java: Avoid duplicates for shadowed members in completion list for arguments of reflection calls. Simplify building the list of method names with PsiClass.getVisibleSignatures() (IDEA-167250)
2017-03-03 12:04:52 +03:00
peter
2dcd8d24ba
java completion: no case enumConstant suggestions where inapplicable (IDEA-168749)
2017-02-27 14:53:56 +01:00
Pavel Dolgov
0a85d2a207
Java: Remove duplicates from the completion list for argument of getMethod(). Simplified priority in the argument completion for getField() and getMethod() (IDEA-167250)
2017-02-16 16:00:47 +03:00
Pavel Dolgov
e4ec230e5d
Java: Added priorities in the completion list for arguments of getField() and getMethod() (IDEA-167250)
2017-02-14 17:11:55 +03:00
Pavel Dolgov
8754155e85
Java: Added priorities in the completion list for arguments of getAnnotation() and getConstructor() (IDEA-167250)
2017-02-14 17:11:55 +03:00
Pavel Dolgov
24e71dc952
Java: Provide completion for arguments of Class.getAnnotation() and Class.getConstructor(), tests added (IDEA-167250)
2017-02-10 13:05:28 +03:00
peter
030b38fd76
IDEA-167807 Completion inside wildcard type suggests equals
2017-02-08 17:28:32 +01:00
Pavel Dolgov
bcb8f9b8e8
Java: Provide completion inside literal argument of Class.forName() and ClassLoader.loadClass() (IDEA-167267)
2017-02-06 17:49:05 +03:00
Pavel Dolgov
69b3a8c6cb
Java: Improved completion for arguments of getField() and getMethod() - extract the type information from forName() and getClass() to provide code assistance (IDEA-167250)
2017-02-06 15:40:31 +03:00
Pavel Dolgov
8a73604580
Java: Improved completion for arguments of reflection calls getField() and getMethod() - extract the actual type from Class.forName and from generic type parameter to provide the code assistance (IDEA-167250)
2017-02-02 14:55:52 +03:00
peter
8c1e3a6103
IDEA-165033 Completion should prefer expected enum values over the constants from other enums, even if they're more recently used
...
a test proving it works
2017-02-01 17:42:12 +01:00
peter
67bd507337
fix collecting completion stats for methods with argument suggestions
...
ensure that we don't change the tracked document range when starting live template
2017-02-01 11:57:32 +01:00
peter
07e1a72077
prefer lookup items with shorter tail text (e.g. List#add(element) without index)
2017-02-01 09:22:50 +01:00
peter
f66c322e16
prefer relevant types when completing cast type (IDEA-167190, IDEA-156868)
2017-01-31 19:23:12 +01:00
peter
d1d548b8b8
let class name completion statistics not depend on the expected type
...
once ContainerUtil is selected in one context, prefer it in others
2017-01-31 15:49:07 +01:00
peter
a5a04bb4af
IDEA-167285 Using "complete current statement" with code completion produces broken code
2017-01-30 21:10:52 +01:00
peter
2ac4ed9c48
IDEA-167160 Completion doesn't suggest types for parameters in lambdas in Java
2017-01-27 15:06:16 +01:00
peter
b814473c58
java completion: suggest expected method type arguments (IDEA-166668)
2017-01-19 20:40:38 +01:00
peter
ab22b9b3ac
IDEA-166582 No completion inside lambda when instance of contains lambda
2017-01-18 19:42:14 +01:00
peter
9ccfc30d74
remember completion method statistics per qualifier type (alas, undoing IDEA-87104)
...
otherwise methods from base classes get preferred over more relevant ones
example: Object methods like equals/getClass would be preselected when invoking a completion in a just created class, instead of its own methods
2017-01-17 09:24:44 +01:00
peter
f85b52691f
make completion stats prefix-independent, make prefix more important a weighing criterion (IDEA-165932, also needed for IDEA-166442)
2017-01-17 09:24:43 +01:00