Commit Graph
650 Commits
Author SHA1 Message Date
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
Anna.Kozlova 56a364de17 collapse to diamond in more cases (following IDEA-CR-16753) 2016-12-13 15:47:37 +01:00
Anna.Kozlova 9f73d110c8 collapse to diamond during completion: don't walk up from statement (IDEA-162324) 2016-12-09 15:42:52 +01:00
Anna.Kozlova 5098bf49fc completion for private modifier in java 9 interfaces, hide 'static' from completion in java 6 2016-11-28 15:38:48 +01:00
peter 7a8bd02590 IDEA-163834 Smart completion for stream.toArray(..) arg loses "[]" after accepting - when array is of non-static inner class 2016-11-21 18:11:28 +01:00
peter 60e0db2a5c IDEA-163989 IDEA reports Object.getClass() with wrong return type for generic parameters 2016-11-21 16:41:08 +01:00
peter 53a517d779 completion preselection: choose the most relevant among exact prefix items (IDEA-163441) 2016-11-21 16:41:08 +01:00
peter 9ffa29ca2d doPostponedFormatting after formatting in completion after new (IDEA-CR-14717) 2016-10-20 18:16:36 +02:00
Anna.Kozlova 8952680a73 completion: infer Throwable for thrown bounds in completion so more candidates would be applicable (IDEA-162710) 2016-10-20 13:14:23 +02:00
peter 1831c53320 constructor completion: implement anonymous methods after arg live template (IDEA-CR-14717) 2016-10-19 19:27:57 +02:00
peter 5b863d7817 constructor completion: insert the chosen constructor and position the caret accordingly (IDEA-CR-14717) 2016-10-19 19:27:57 +02:00
peter 2824ee87e4 java completion: fix "{} ()" when choosing anonymous class constructor with parameters 2016-10-19 09:23:15 +02:00
peter 283613d591 IDEA-162322 Completion missing for field in copy constructor 2016-10-10 20:49:28 +02:00
peter 72f5f15010 IDEA-157276 Code completion should disprefer primitive names in method calls 2016-09-20 17:14:01 +02:00
peter e040a3d284 IDEA-157893 Autocompletion should not use static import in case of conflict 2016-09-20 16:41:43 +02:00
peter 0517ecae8e don't try to complete anonymous outer class method references (IDEA-CR-13773) 2016-09-14 16:48:21 +02:00