Commit Graph

247 Commits

Author SHA1 Message Date
Nikolay Krasko 848863ef93 Completion fails with exception "Toplevel class has no fqName" (KT-5119)
Groovy scripts files can create PsiClasses with null qualfied names (getQualifiedName()) and names (getName()).

 #KT-5119 Fixed
2014-06-02 20:36:42 +04:00
Valentin Kipyatkov 4a7d4dffdf Fixed KT-5142 Code completion of parameter type inserts FQ-name
#KT-5142 Fixed
2014-05-30 19:28:06 +04:00
Valentin Kipyatkov 073dcd024c Fixed KT-5101 Partly qualified name is inserted by code completion
#KT-5101 Fixed
2014-05-30 14:31:20 +04:00
Valentin Kipyatkov 4be1cc2786 KT-5079 Support smart completion for when values
#KT-5079 Fixed
2014-05-30 14:30:36 +04:00
Valentin Kipyatkov 2ddcae68e8 Fixed KT-5077 Code completion inserts FQ names inside lambda
#KT-5077 Fixed
2014-05-23 19:16:23 +04:00
Pavel V. Talanov b3898cfb0d Force the user of AstAccessControl to write at least one test violating restriction, implement such tests for existing tests
This is needed because the slightest change in the test setup can make the check useless without the client knowing
The solution is ugly but gives at least some protection against this
2014-05-21 15:40:29 +04:00
Pavel V. Talanov 8354233f85 Add multi file test for completion of enum entry 2014-05-21 15:40:14 +04:00
Pavel V. Talanov 4c39886edc Minor: fix test data 2014-05-21 15:40:13 +04:00
Pavel V. Talanov fbf2cded0d Refactor AbstractMultiFileJvmBasicCompletionTest to extend CompletionTestCase
Extract common code from JetFixtureCompletionBaseTestCase to CompletionTestUtil.kt
Reason for this change is that I couldn't get the check that prohibits tree loading to work with fixture test case
2014-05-21 15:40:12 +04:00
Valentin Kipyatkov c56b5bfd61 Added 2 tests 2014-05-20 18:56:48 +04:00
Valentin Kipyatkov 5ce3df4845 KT-5025 Unnecessary qualifier inserted for class
#KT-5025 Fixed
2014-05-20 18:56:48 +04:00
Natalia Ukhorskaya d70770afb2 Completion and highlighting for blockCodeFragment 2014-05-15 13:54:26 +04:00
Valentin Kipyatkov 6c5d974284 Completion: added a test 2014-05-13 16:40:48 +04:00
Valentin Kipyatkov c9bde2de0e Smart completion: added a test 2014-05-13 16:40:48 +04:00
Valentin Kipyatkov 2d850f41f1 Smart completion: fixed addition of tail chars after true, false and null 2014-05-13 16:40:47 +04:00
Valentin Kipyatkov 0e86e628a3 KT-5012 Autocompletion is completing to FQN and not the value
#KT-5012 Fixed
 #KT-5006 Fixed
2014-05-13 16:40:47 +04:00
Valentin Kipyatkov dab6045f6a Fixed Code completion does not work inside function variable invocation
#KT-4978 Fixed
2014-05-07 22:50:23 +04:00
Valentin Kipyatkov 7bb84c139d Smart completion: fixed logic in elvis operator 2014-05-07 22:50:23 +04:00
Valentin Kipyatkov a65bd1a74d Added test data for future use 2014-05-07 22:50:22 +04:00
Valentin Kipyatkov 1b034c5fc3 Smart completion works for block's result 2014-05-07 22:50:22 +04:00
Valentin Kipyatkov 45f518a907 Smart completion after ?: works incorrectly
#KT-4926 Fixed
2014-05-07 22:50:22 +04:00
Valentin Kipyatkov 5e34791e68 Smart completion should not suggest variants for private signatures
#KT-4899 Fixed
2014-05-07 22:50:22 +04:00
Valentin Kipyatkov 57c41ce0b0 Smart completion: added test for KT-4929 fixed by svtk 2014-05-07 22:50:22 +04:00
Valentin Kipyatkov d781626201 Smart completion: only overloads with all previous arguments matched are considered 2014-05-07 22:50:21 +04:00
Valentin Kipyatkov 717977af61 No more java lookup elements in code completion (except for one case) 2014-05-07 22:50:21 +04:00
Valentin Kipyatkov 33de0e8393 Smart completion for then and else branches of if
#KT-4910 Fixed
2014-05-07 22:50:20 +04:00
Valentin Kipyatkov 7aa11a4207 Smart completion: auto-cast to non-null type is not recognized for field from constructor
#KT-4906 Fixed
2014-05-07 22:50:20 +04:00
Valentin Kipyatkov 3c75e9ec28 Smart completion: "null" when nullable value expected 2014-05-07 22:50:20 +04:00
Valentin Kipyatkov 32405e57e6 Smart completion: checking constructor's visibility + true and false for Boolean
#KT-4916 Fixed
2014-05-07 22:50:20 +04:00
Valentin Kipyatkov 9ae59db329 Smart completion: more correct Tab key handling
#KT-4954 Fixed
2014-05-07 22:50:20 +04:00
Valentin Kipyatkov 5f931be39b Smart completion after == and !=
#KT-4912 Fixed
2014-05-07 22:50:19 +04:00
Svetlana Isakova 69f3a64408 Added test for KT-4929
Smart completion should work for generic method argument
 #KT-4929 Fixed
2014-04-30 13:34:35 +04:00
Valentin Kipyatkov 6808e82b81 Code completion: another way of import insertion on class name completion.
#KT-4905 Fixed
2014-04-23 19:23:11 +04:00
Valentin Kipyatkov 7905d32c14 Smart completion: static members insertion reworked to support single lambda parameter, more correct reference shortening in range 2014-04-23 19:23:11 +04:00
Valentin Kipyatkov e8805f69bf Code completion: template item for function taking lambda with 2 or more parameters (KT-4855) + better handling of type instantiation in smart completion 2014-04-23 19:21:28 +04:00
Natalia Ukhorskaya 931b628988 Editor for evaluate expression: implement highlighting and completion using ResolveElementCache 2014-04-23 18:10:02 +04:00
Valentin Kipyatkov 134496d182 Smart completion: special items with "!!" and "?:" for nullable members 2014-04-21 22:14:20 +04:00
Valentin Kipyatkov 28e0f3013b Smart completion: no fq-names in types 2014-04-21 22:06:15 +04:00
Valentin Kipyatkov 4968377969 Smart completion: lambda item uses template to allow change parameter names 2014-04-21 22:06:15 +04:00
Nikolay Krasko 962044f887 Use render with short types names in completion lookup elements 2014-04-18 13:18:18 +04:00
Valentin Kipyatkov df299655a7 Smart completion: one more working test and one more test to fix later 2014-04-17 14:39:31 +04:00
Valentin Kipyatkov f682dc36e0 Smart completion: lambda items 2014-04-17 14:39:30 +04:00
Valentin Kipyatkov 1ba4c656a5 Smart completion: bugfix - no function reference after dot 2014-04-17 14:39:30 +04:00
Valentin Kipyatkov 5bff98c164 Smart completion: minor code refactoring 2014-04-17 14:39:30 +04:00
Valentin Kipyatkov 6b1ecc3fb0 Smart completion: "::functionName" items when value of function type is expected 2014-04-17 14:39:29 +04:00
Valentin Kipyatkov 7d5b86e000 Smart completion: no duplicates among static members 2014-04-17 14:39:29 +04:00
Valentin Kipyatkov 4b5d175aa7 Smart completion: no more duplicates among type instantiation items 2014-04-17 14:39:29 +04:00
Valentin Kipyatkov 5d8c5cfa31 Smart completion inserts closing parenthesis as well 2014-04-17 14:39:29 +04:00
Valentin Kipyatkov f984dbc5b6 Smart completion to insert comma when in argument list 2014-04-17 14:39:28 +04:00
Pavel V. Talanov 6ba8e4c4b1 Switch JetMultifileBasicCompletionTest to generated approach 2014-04-02 13:37:18 +04:00