Commit Graph
625 Commits
Author SHA1 Message Date
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
peter 6b5f30f0f2 java completion: prefer return inside then/else parts of if (IDEA-156192) 2016-05-18 18:07:47 +02:00
peter e68d6eac26 IDEA-155716 Statically imported method should be higher in the completion list 2016-05-13 17:15:10 +02:00
peter d91c606bfa IDEA-155984 Completion suggests nothing if you try to complete a variable before a call 2016-05-13 16:15:16 +02:00
peter f54e06de93 IDEA-155572 Basic completion could prefer false when boolean is expected 2016-05-13 16:15:14 +02:00
peter 80ad8e9ebd IDEA-154276 Suggest method references to constructors of implementing classes when Supplier<AnAbstractClass> is expected 2016-05-02 08:58:57 +02:00
peter b7f5f72066 IDEA-154336 Missing space after completed @annotation 2016-05-02 08:58:57 +02:00
peter 905527c804 "too generic method" completion sorting criteria shouldn't be applied in void context (IDEA-154635) 2016-05-02 08:58:55 +02:00
peter 48b941daa8 IDEA-154891 IDEA adds unnecessary space/colon on switch case autocompletion 2016-04-29 22:56:20 +02:00
peter 493794856b smart enter during completion inside synchronized expression should put the caret inside the synchronized block 2016-04-29 22:56:19 +02:00
peter 5131d6fadb IDEA-155383 Auto-complete for method references should use the type where the method is declared 2016-04-29 22:56:18 +02:00