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
peter
4ca9fb5197
java completion: include outer classes into display name and lookup string after new (IDEA-160509)
2016-09-13 17:55:46 +02:00
peter
2b69e1d7ec
IDEA-160958 Smart completion should suggest method references of outer class
2016-09-13 17:55:44 +02:00
peter
7de306e76b
IDEA-161034 Code completion should be provided for static method references too
2016-09-13 17:55:44 +02:00
peter
1368f7e7bb
IDEA-CR-12743, IDEA-157088 The autocomplete to offer not only the implementation of the interface, but the interface itself (when Object arrays are expected)
2016-08-17 16:24:56 +02:00
peter
6ac6e6712b
IDEA-157088 The autocomplete to offer not only the implementation of the interface, but the interface itself
2016-08-03 16:07:38 +02:00
peter
59381e94ae
IDEA-158094 Auto-completion popup could display values when autocompleting constants
2016-08-01 15:37:27 +02:00
peter
b3ca224f07
IDEA-55146 Autocomplete case inside switch
...
indent, remove duplicates, restore completion after 'case' (IDEA-CR-12610)
2016-07-28 12:39:54 +02:00
peter
9179fa8fea
IDEA-55146 Autocomplete case inside switch
2016-07-27 17:07:11 +02:00
peter
c71a1e7136
IDEA-158267 Parameter completion overwrites the following lambda declaration ' () -> {}'
2016-07-27 12:15:56 +02:00
peter
45b1fe1515
IDEA-158416 Deprecated methods are not striked through in implements/override completion
2016-07-25 19:42:49 +02:00
peter
6b92a3aa95
IDEA-158497 "catch" completion of "try {}"
2016-07-25 18:35:39 +02:00
Alexey Kudravtsev
db48c64473
use mockJdk18 by default in LightCodeInsightTestCase; remove dependency on swing/net classes in some tests
2016-07-20 15:47:18 +03:00
peter
817581a5ba
remove unused test data file
2016-05-24 15:21:50 +02:00
Anna.Kozlova
cd63335147
pass parameter type inference policy to produce ? extends for cases when no constraints were found during inference (IDEA-156231)
2016-05-23 16:29:23 +02:00
peter
b0bfb5b5d8
java completion: prefer break/continue in likely positions inside loops (IDEA-156192)
2016-05-18 18:07:47 +02:00