Simon Ogorodnik
be7158eeb2
KT-16110 Missing suspend keyword completion inside generic arguments
...
#KT-16110 fixed
2017-02-07 19:48:05 +03:00
Simon Ogorodnik
c2ba4e3ab9
KT-14252 Completion could suggest constructors available via typealiases
...
#KT-14252 fixed
2017-01-31 15:14:18 +03:00
Ilya Gorbunov
38b79a51d5
Fix tests after introducing exlcusions to default imports of kotlin.js package.
2017-01-30 19:44:51 +03:00
Simon Ogorodnik
d117b0210f
Revert "KT-14252 Completion could suggest constructors available via typealiases"
...
Reverted due problems with tests
This reverts commit 55eeb74c08 .
2017-01-30 16:46:38 +03:00
Simon Ogorodnik
55eeb74c08
KT-14252 Completion could suggest constructors available via typealiases
...
#KT-14252 fixed
2017-01-30 16:24:12 +03:00
Denis Zharkov
88b82d5fa2
Exclude coroutine inrinsics and internal packages
...
#KT-16018
2017-01-30 15:45:02 +03:00
Dmitry Jemerov
720da176db
Exclude keywords from completion if the corresponding feature is unsupported by the language level selected for the module
2017-01-30 12:32:41 +01:00
Dmitry Petrov
77ea0614f9
Fix testData in smart completion test
...
(abbreviation is preserved for 'arrayListOf').
2017-01-30 10:51:47 +03:00
Simon Ogorodnik
b422b0e24d
KT-14722 completion list isn't filled up for typealias to object
...
#KT-14722 fixed
2017-01-28 21:42:39 +03:00
Simon Ogorodnik
2a08e3c679
KT-14767 typealias to annotation class should appear in the completion list
...
#KT-14767 fixed
2017-01-27 21:29:23 +03:00
Mikhail Zarechenskiy
462aed35d3
Don't exclude callable references with type parameters from completion
2017-01-26 14:48:37 +03:00
Simon Ogorodnik
3948c1e007
KT-15153 Support typeAlias extensions in completion and add import
...
#KT-15153 fixed
2017-01-25 20:47:48 +03:00
Simon Ogorodnik
4ca10c61fd
KT-11308 Hide kotlin.jvm.internal package contents from completion and auto-import
...
#KT-11308 fixed
2017-01-25 17:39:36 +03:00
Zalim Bashorov
cd04e794ee
KJS: class MathClass -> object Math
2017-01-23 14:14:13 +03:00
Ilya Gorbunov
3ec48ab244
Add kotlin.comparisons package to default imports.
2017-01-19 18:21:14 +03:00
Ilya Gorbunov
07e529c8ec
Fix completion test: expected appearance of 'takeIf' and 'also'
2017-01-16 09:32:17 +03:00
Denis Zharkov
f611e39a69
Fix return keyword completetion tests
...
Now suspendOrReturn is toplevel, so we should explicitly choose "return" item
2017-01-14 13:24:53 +03:00
Simon Ogorodnik
0cf02dcb7b
KT-15092 Suppress inspection "use property access syntax" for some getters and fix completion for them
...
#KT-15092 fixed
2017-01-12 14:53:38 +03:00
Ilya Gorbunov
eb07d9407d
Unexpected appearance of minOf/maxOf for T: Comparable<T> in smart completion tests
2017-01-11 14:42:36 +03:00
Ilya Gorbunov
18245c5b73
Expected appearance of minOf/maxOf for T: Comparable<T> in one of smart completion tests
2017-01-11 14:42:36 +03:00
Mikhail Zarechenskiy
6cccad9647
Update year in license and regenerate tests
2017-01-10 12:01:17 +03:00
Stanislav Erokhin
ab53978793
Allowed ast access for some tests.
2016-12-16 00:57:04 +03:00
Stanislav Erokhin
5a353412e4
Fixed KeywordCompletionTests.
2016-12-15 23:58:18 +03:00
Dmitry Petrov
8e3fd0efc3
If the last argument of a function is a suspend function,
...
suggest trailing lambda variant in completion.
2016-12-15 23:58:14 +03:00
Stanislav Erokhin
0132f3eea7
Remove kotlin.coroutine package from default imports.
2016-12-15 23:57:51 +03:00
Dmitry Petrov
a15d423db4
Support modifiers on types in parser
...
(required for 'suspend' on functional types).
TYPE_REFERENCE element now has MODIFIER_LIST child, which hosts annotations and modifiers for the corresponding type reference.
Annotations and modifiers written before an extension function type are now parsed as annotations and modifiers for the functional type, not the receiver type.
So, '@Ann A.(B) -> C' was '(@Ann A).(B) -> C', and became '@Ann (A.(B) -> C)'.
NB: DSL_SCOPE_VIOLATION testData updated accordingly.
Type projection variance modifiers ('in', 'out') belong to a separate modifier list under corresponding type projection (not under a type reference).
'A<in suspend T>' is 'A<(in (suspend T))>', 'A<suspend in T>' is an error.
In stub builder, create a modifier list node to host annotations and modifiers (none so far; TODO properly serialize/deserialize types with modifiers).
2016-12-15 23:57:41 +03:00
Nikolay Krasko
2bb48fc802
Allow empty single-line bodies in property accessors
2016-12-14 13:40:44 +03:00
Stanislav Erokhin
653d589f98
FIx tests after renaming platform to header.
2016-12-13 23:08:47 +03:00
Stanislav Erokhin
59efedf610
Rename platform to header.
2016-12-13 18:00:00 +03:00
Ilya Gorbunov
e4ab3f3b93
Fix rendered descriptors in test data after enhancing signatures.
2016-12-08 20:34:59 +03:00
Nikolay Krasko
6a9c368532
Auto-import does not suggest enum constant (KT-14100)
...
#KT-14100 Fixed
(cherry picked from commit 61730ee)
2016-12-01 14:33:37 +03:00
Simon Ogorodnik
b93c37faa2
Added tests to prove, that KT-8547 fixed
2016-11-29 14:08:09 +03:00
Simon Ogorodnik
1a211ee7b0
Completion for fqNames in KDoc links
...
Tests, also proved that KT-14432 are fixed
Added completion and tests for extension functions.
2016-11-29 14:06:54 +03:00
Alexander Udalov
6e2ef9b1d2
Add platform/impl soft keywords, add isPlatform/isImpl to MemberDescriptor
2016-11-25 20:50:17 +03:00
Ilya Gorbunov
d103657e07
Fix JS completion tests: remove unneeded imports, take care about type aliases looking different in completion.
2016-11-16 18:47:42 +03:00
Ilya Gorbunov
e787930673
Fix completion handler tests: use tail specifier to select one of multiple completion variants (eg 'kotlin.collections.ArrayList' vs 'java.util.ArrayList').
...
Replace aliased types imported by default with something else.
2016-11-16 18:47:42 +03:00
Ilya Gorbunov
a62cda8365
Replace types that are imported by default via typealiases such as java.util.ArrayList with something else as it conflicts now with kotlin.collections.ArrayList and has to imported explicitly.
2016-11-16 18:47:42 +03:00
Alexander Udalov
1ce8ed907c
Use TargetPlatformDetector.getPlatform instead of ProjectStructureUtil.isJsKotlinModule
...
The reason for this is to make the choice of the platform more explicit now
that there are more platforms than just JVM and JS (default platform, and also
possibly native in the future)
2016-11-11 19:00:10 +03:00
Zalim Bashorov
1dedb38481
Regenerate tests
2016-11-09 21:41:12 +03:00
Valentin Kipyatkov
9b55ad82a0
KT-14370 Completion inserts fully qualified name for any Java interface with single abstract method (SAM-interface)
...
#KT-14370 Fixed
2016-11-08 19:14:41 +03:00
Ilya Gorbunov
fbcf7c146b
Remove JavaPackage from common completion tests, move to java-specific tests
2016-11-07 21:39:42 +03:00
Ilya Gorbunov
6656d10c67
Fix tests: do not refer to removed things.
2016-11-07 21:39:41 +03:00
Valentin Kipyatkov
3fb64f4fa6
Fixed completion list sorting so that "shouldCompleteTopLevelCallablesFromIndex" not be first when typing "st"
2016-11-07 18:28:24 +03:00
Valentin Kipyatkov
eefa409a1d
Fixed "Offset ... is not registered" exceptions when running under IDEA 2016.3
2016-11-07 18:28:24 +03:00
Valentin Kipyatkov
0af142edb3
KT-14410 Autopopup completion is triggered in string literals for packages
...
#KT-14410 Fixed
2016-11-07 18:28:24 +03:00
Valentin Kipyatkov
a2ebf07a93
KT-14386 Smart completion: add "<parameter name> = true/false" choices
...
#KT-14386 Fixed
2016-11-07 18:28:23 +03:00
Michael Bogdanov
fd6d4c352c
Special enum function support; Fix for KT-10569: Cannot iterate over values of an enum class when it is used as a generic parameter
...
#KT-10569 Fixed
2016-11-03 14:27:13 +03:00
Valentin Kipyatkov
6a3597fa0f
Minor changes on code review
2016-11-02 19:25:28 +03:00
Valentin Kipyatkov
6d3dd5d9b7
More uses of partial body resolve
2016-11-02 19:25:28 +03:00
Valentin Kipyatkov
68174470c3
Add BodyResolveMode parameter to resolveToDescriptor()
2016-11-02 19:25:27 +03:00