Commit Graph

199 Commits

Author SHA1 Message Date
Yan Zhulanow 080dcf882e Minor: fix broken tests 2015-09-26 03:29:09 +03:00
Valentin Kipyatkov 1c6ca9d036 Initial implementation of KT-5955 Completion for override methods
#KT-5955 Fixed
2015-09-25 18:12:18 +03:00
Alexey Sedunov 6b9e2b0bbb Resource Bundles: Enable property key completion in string literals
#KT-6946 Fixed
2015-09-25 17:18:02 +03:00
Denis Zharkov 73799e2c3c Replace deprecated lambda syntax in testData
It's done with similar constructions where possible trying to preserve
intended behavior.
Some usages are removed because they test exactly the feature that
we are going to drop soon.
2015-09-25 08:29:25 +03:00
Valentin Kipyatkov f27c18b4a2 KT-8979 Completion of non-imported extension with "!" character corrupts code
#KT-8979 Fixed
2015-09-24 16:44:41 +03:00
Yan Zhulanow bc727a170b Add 'operator' keyword 2015-09-23 21:25:51 +03:00
Denis Zharkov 67486b867b Get rid of inlineOptions usages in IDE tests 2015-09-23 12:18:12 +03:00
Denis Zharkov 02b64ce1ed Parse const as soft modifier keyword 2015-09-23 08:20:56 +03:00
Dmitry Jemerov 4ca434da54 remove support for 'trait' keyword 2015-09-22 15:00:24 +02:00
Ilya Gorbunov 92e66b0d81 Fix deprecations in testData: smart completion and find usages 2015-09-19 04:33:31 +03:00
Stanislav Erokhin b51edf9004 Fixed completion for package, import directive and user type. 2015-09-18 21:00:22 +03:00
Stanislav Erokhin 81934b75c2 Suppressed inserting of package import from ImportInsertHelperImpl 2015-09-18 21:00:22 +03:00
Stanislav Erokhin 8efbf4fc32 Fixed testdata -- removed package import 2015-09-18 21:00:20 +03:00
Denis Zharkov daa2c8372d Do not parse '@' as a part of modifier 2015-09-18 09:34:25 +03:00
Pavel V. Talanov f673852d98 Test completion of multifile facades in java 2015-09-09 21:22:07 +03:00
Pavel V. Talanov 4106a0d736 Test for completing unimported file facade 2015-09-09 21:21:17 +03:00
Pavel V. Talanov daaefcc7fd Test completion of single file facades in java 2015-09-09 21:20:35 +03:00
Denis Zharkov c449c0d080 Deprecate inlineOption in favor of crossinline modifier 2015-09-09 12:35:19 +03:00
Denis Zharkov fc447e2d2f Parse some builtin annotations as modifiers
But still resolve them as annotations.
Mostly it's needed as begin of migration path, one day they become modifiers anyway

Some tests are dropped because they supposed that `annotation` should have parameter
2015-09-08 08:53:35 +03:00
Mikhail Glukhikh 8f7b29f80a Annotation rename: target --> @Target 2015-09-07 13:42:26 +03:00
Yan Zhulanow add13cae82 lateinit modifier on property 2015-09-05 00:54:18 +03:00
Valentin Kipyatkov fe3e9341a1 Smart completion: no instantiation of anonymous object with uninferred type arguments in code 2015-09-04 23:27:37 +03:00
Valentin Kipyatkov 40de063ebd Smart completion for generic class instantiation to not insert explicit type arguments (for they'll probably be inferred from the expected type) 2015-09-04 23:27:37 +03:00
Valentin Kipyatkov f470fec840 "return emptyList()" & "return emptySet()" in completion 2015-09-04 23:27:37 +03:00
Valentin Kipyatkov 997aef8fee Smart completion to work when some of previous arguments do not match
#KT-8400 Fixed
2015-09-04 23:27:36 +03:00
Valentin Kipyatkov 7663793e3d Smart completion to work when some of previous arguments have errors (+ fixed testAfterEmptyArgument broken by previous changes) 2015-09-04 23:27:36 +03:00
Valentin Kipyatkov db4c163539 More correct named arguments completion 2015-09-04 23:27:35 +03:00
Mikhail Glukhikh eab288bdd7 annotation() now has no arguments. Syntax migration to Retention / Repeatable / MustBeDocumented combination
Deprecated test for annotation(params) completion deleted. A lot of tests changed.
2015-09-04 19:21:12 +03:00
Denis Zharkov 31244edec9 Deprecate deprecated in favor of Deprecated 2015-09-04 18:19:31 +03:00
Denis Zharkov 11fed1674e Deprecate extension annotation in favor of Extension 2015-09-04 17:23:25 +03:00
Valentin Kipyatkov 14c2500261 Added a test 2015-09-03 15:55:54 +03:00
Valentin Kipyatkov 58e79037ed Renamed tests 2015-09-03 15:55:54 +03:00
Stanislav Erokhin 5ded315cbb Improved error reporting for candidates with wrong parameter count 2015-09-01 23:37:42 +03:00
Valentin Kipyatkov e8dc9ede31 Implemented HiddenDeclaration annotation (doc-comment to be added!) 2015-08-29 10:54:59 +03:00
Valentin Kipyatkov a012fd0c7d Minor changes after code review 2015-08-28 16:22:48 +03:00
Valentin Kipyatkov 02922f3f93 No parameter name&type completion for anonymous function 2015-08-28 16:22:48 +03:00
Valentin Kipyatkov bd4f1c65c2 Insert type arguments by Tab too 2015-08-28 16:22:47 +03:00
Valentin Kipyatkov 9df3bb8a06 More correct sorting of parameter name&type suggestions in completion 2015-08-28 16:22:47 +03:00
Valentin Kipyatkov 7ef9a9d6d4 Better presentation 2015-08-28 16:22:47 +03:00
Valentin Kipyatkov 2de5229098 Additional item inserting lambda provided by completion when all parameters before the last are optional 2015-08-28 16:22:47 +03:00
Valentin Kipyatkov a4c5907a1f KT-8898 If invocation context contains functional value compatible with function in completion list, show non-literal item
#KT-8898 Fixed
2015-08-28 16:22:46 +03:00
Valentin Kipyatkov 363295f6af Moved creation of additional items like special items for functions accepting lambda into LookupElementFactory to provide them in smart completion too 2015-08-28 16:22:44 +03:00
Valentin Kipyatkov 66719923c2 KT-6050 Support completion for super qualifier
#KT-6050 Fixed
2015-08-28 16:22:44 +03:00
Valentin Kipyatkov 9d7e6600d4 Got rid of allKotlinClasses() method 2015-08-27 13:34:33 +03:00
Natalia Ukhorskaya 576b4f445c Debugger: add tests for smart casted property 2015-08-26 12:16:08 +03:00
Valentin Kipyatkov 0883bfa615 Changes on code review 2015-08-25 18:56:45 +03:00
Valentin Kipyatkov 6c46e3ec02 Better test 2015-08-25 18:56:18 +03:00
Valentin Kipyatkov fd34ff3239 Implemented own version of LookupElementProximityWeigher (the standard one checks getObject() instanceof PsiElement)
#KT-8842 Fixed
2015-08-25 18:56:18 +03:00
Valentin Kipyatkov 0f332bd8b9 Refactored sorting in completion
Also changed semantics of DeclarationDescriptor.importableFqName - it now returns null when descriptor cannot be referenced by import + dropped DeclarationDescriptor.importableFqNameSafe
2015-08-25 18:56:16 +03:00
Valentin Kipyatkov 68c0c83879 Better sorting: current package is preferred 2015-08-25 18:56:16 +03:00