Commit Graph

735 Commits

Author SHA1 Message Date
peter
f79c0a63d2 java completion: don't suggest inacessible method/constructor references (IDEA-182311) 2018-01-03 16:12:19 +01:00
peter
76f23b6a7d IDEA-181269 "void" is not suggested in expressions 2018-01-03 15:56:39 +01:00
peter
a753417bb9 IDEA-182794 "class" not suggested inside method 2018-01-03 15:07:35 +01:00
Tagir Valeev
390cec4927 TypeConstraint#union: smarter merge of supertypes
union("is X, Y; not SubX", "is SubX, Y") now produces "is X, Y"; before it was "is Y".
Fixes IDEA-184153 Smart-cast completion fails
2017-12-22 12:42:40 +07:00
peter
5806663661 java completion: put type above signature containing that type (IDEA-181329) 2017-12-21 13:37:01 +01:00
Tagir Valeev
6c4367b679 Revert "JavaCompletionUtil: use findMethodInSuperClassBySignatureInDerived" (e9f00a8) + test
It appears that findMethodInSuperClassBySignatureInDerived does not substitute recursively, at least in some cases.
2017-12-11 11:46:41 +07:00
Tagir Valeev
af2f419e5f ExpressionTypeMemoryState:isSuperStateOf to check additional field
Fixes IDEA-183267 Completion based on instanceof is gone
2017-12-06 17:19:53 +07:00
Tagir Valeev
f38a359e18 IDEA-182988 Spurious collection cast on completion Set -> HashSet 2017-12-04 11:58:51 +07:00
peter
20cee42f50 migrate NormalCompletionTest to use jdk 9, add test for IDEA-88939 2017-12-02 08:47:00 +01:00
Tagir Valeev
8673ad67aa IDEA-182822 Raw type completion options are suggested when actual expression type is inferred 2017-11-29 17:59:35 +07:00
Tagir Valeev
d47671a183 Test for IDEA-181794 Suggest completion items with type casts in stream chains
The functionality was implemented automatically after a combination of earlier commits: 9fedf66f and 80e63e2
2017-11-22 14:33:42 +07:00
peter
724e2c37e5 IDEA-182417 Smart cast completion fails on a specific declarations 2017-11-21 12:18:12 +01:00
Tagir Valeev
9fedf66ff5 GuessManagerImpl: support type constrains from DFA, various improvements
Partially fixes IDEA-181794 Suggest completion items with type casts in stream chains if there exists 'filter(x -> x instanceof Foo)' call
Fixes IDEA-182455 Code completion: resolve actual value type assigned to local variable
2017-11-21 11:00:54 +07:00
Tagir Valeev
0dbef4cc6b GuessManagerImpl: minimal assignment handling 2017-11-20 16:11:26 +07:00
Pavel Dolgov
4dfff46920 Java: Provide completion for nested class names in reflection API (IDEA-181545) 2017-11-09 13:06:59 +03:00
peter
fbbb381483 IDEA-181657 Completion items with type casts derived from control flow are not suggested if there are several nested checks from different paths of hierarchy 2017-11-08 10:01:07 +01:00
peter
30867ebca3 java: don't complete non-annotation-methods inside incorrect annotation 2017-11-03 17:28:26 +01:00
peter
e849eaa058 IDEA-181266 Modifiers are not suggested after annotation with parentheses 2017-10-30 21:39:49 +01:00
Dmitry Batkovich
60921be2e3 relevant method chain completion: do not suggest casts for introduced variable (EA-108521) 2017-10-26 16:36:55 +03:00
peter
ceb018b369 complete java class keywords after top-level annotation
regression after IDEA-CR-25484
2017-10-13 13:32:10 +02:00
peter
44a2ffa2ff JavaKeywordCompletion: simplify
make short code out of long ElementFilters
remove dead logic
cleanup unused filters
also fixes IDEA-179855 Double "final" suggestion after annotation
2017-10-13 09:49:22 +02:00
peter
969a93d5a8 IDEA-179864 Autocomplete does not handle generics when method has parameters 2017-10-04 16:12:59 +02:00
Dmitry Batkovich
87e841ef88 relevant method chain completion: chains ended with casts are valid too 2017-09-25 17:35:44 +03:00
Dmitry Batkovich
07a4324053 Merge branch 'db/method-chains-with-casts'
# Conflicts:
#	java/compiler/impl/src/com/intellij/compiler/chainsSearch/context/ChainCompletionContext.java
2017-09-25 12:40:26 +03:00
Dmitry Batkovich
eb9fd79648 add tests for completion with casts 2017-09-25 12:32:08 +03:00
peter
d8a63070d0 don't preselect better-matching deprecated classes (IDEA-124382) 2017-09-18 18:44:39 +02:00
peter
bbc6baa91e IDEA-178535 Duplicate class suggestions in cast 2017-09-16 19:11:43 +02:00
peter
84f49683cb IDEA-178377 No "final" completion suggestion in catch declaration 2017-09-16 19:11:43 +02:00
peter
dd920e884e completion: place functional expressions after variables of expected type (IDEA-174428, IDEA-178600) 2017-09-15 22:04:11 +02:00
peter
e5bde2ff34 IDEA-173927 Support keywords autocompletion when keyboard layout is incorrect 2017-09-15 22:04:10 +02:00
peter
b3d29e5749 IDEA-178141 Case sensitive completion: First Letter - doesn't work correctly if class starts with special symbol
check first letter after the underscore
2017-09-13 15:47:11 +02:00
peter
0f8897cacb IDEA-178141 Case sensitive completion: First Letter - doesn't work correctly if class starts with special symbol 2017-09-13 10:31:21 +02:00
Tagir Valeev
22425f9a7b Fixes EA-107194 - assert: PsiElementFactoryImpl.createType 2017-09-13 12:07:44 +07:00
Dmitry Batkovich
86829cac3e java property index 2017-09-06 10:40:47 +03:00
peter
ee3d96da1a IDEA-177895 Completion items with type casts derived from control flow are not suggested for 'this' 2017-08-31 17:39:08 +02:00
Anna Kozlova
50ca349572 completion for <>: overloaded constructors (IDEA-177256)
provide arguments compatible with the first constructor to reduce cases where diamonds can't be applicable
2017-08-19 13:58:27 +02:00
Anna Kozlova
90148e6425 completion: don't ignore Object substitution (IDEA-177259) 2017-08-19 13:58:26 +02:00
peter
d562896618 a test for IDEA-174819 Following annotation is removed on autocomplete 2017-08-16 19:57:19 +02:00
peter
75179fcfef IDEA-177034 A qualified class name should be suggested when there's a shadowing type parameter 2017-08-14 19:13:11 +02:00
peter
d78fe7b18f IDEA-177166 Unexpected call completion in package statement 2017-08-14 19:13:11 +02:00
peter
5ec1403c27 IDEA-177292 No "new" keyword completion after dot 2017-08-14 16:11:54 +02:00
peter
792940cf8e java completion: fix shadowed type parameter duplication 2017-07-26 12:34:10 +02:00
peter
a7821e5bdf java completion: don't suggest class keywords in array variable initializer (IDEA-CR-23174) 2017-07-26 11:24:39 +02:00
Kyle Thomson
bf4df4a979 Enhance Java builder completion for superclasses and generics 2017-07-24 15:27:58 +02:00
peter
3badd07183 java completion: don't suggest class keywords in array field initializer 2017-07-21 15:57:16 +02:00
peter
bcbee2120e make completion work in java type arguments inside cast 2017-07-21 09:53:58 +02:00
peter
1e79df00e5 java completion: suggest primitive types in method returning array 2017-07-19 17:01:28 +02:00
peter
4b6aa72d74 java completion: suggest 'package' after javadoc 2017-07-18 14:46:56 +02:00
Dmitry Batkovich
7b978a1d48 relevant method chain completion: do not suggest chains qualified with enclosing local variables 2017-07-17 16:36:45 +03:00
peter
64c770a1f6 IDEA-60581 Statement keywords presented when completing inside Java for loop 2017-07-17 14:14:22 +02:00