Dmitry Gridin
11a3482970
tests: apply official code style
...
#KT-38632 Fixed
2020-05-07 12:36:44 +00:00
Vladimir Dolzhenko
1cc58518c0
Compatify KotlinCodeBlockModificationListener p.2
...
Relates to #KT-38443
2020-04-25 20:57:14 +00:00
Dmitriy Dolovov
22dc837e26
IDE. Allow expect declarations in completion in shared native modules
...
Issue #KMM-218
2020-04-21 10:21:19 +07:00
Vladimir Dolzhenko
3d4c5b0091
Fix NPE in LookupCancelService$Reminiscence
...
#EA-228125 Fixed
2020-04-20 08:16:25 +00:00
Vladimir Dolzhenko
67fec903f6
Read file content under readAction in ToFromOriginalFileMapper
...
Relates to #EA-212072
2020-04-20 08:16:24 +00:00
Mikhail Zarechenskiy
cf90fe81ac
Move Sam(TypeAlias)ConstructorDescriptor to core
2020-04-15 02:06:32 +03:00
Vladimir Dolzhenko
9f09e50a28
ApplicationUtils syntax improvements
2020-03-31 17:00:19 +02:00
Vladimir Dolzhenko
674f1d129f
Clean up of plugin-common.xml and convert components to services
2020-03-27 07:54:14 +00:00
Dmitry Gridin
22c94026c6
i18n: add bundle for idea-completion
2020-03-16 18:40:50 +07:00
Roman Golyshev
4c6ea7c26a
KT-36808 Sink down member function Flow.collect in the completion
...
- This method is never supposed to be called, so we try to lower its
presence in the completion list by puting it on the last possible
position
- ^KT-36808 Fixed
2020-03-13 18:05:29 +03:00
Roman Golyshev
90750483ee
KT-36860 Collect extensions from object on first completion
...
- This should not affect the performance of the completion, since all
object extensions are collected on the last step, when all main variants
are already collected
- Add more tests
- Also, disable completion of extensions from objects as callable
references (^KT-37395 Fixed)
- ^KT-36860 Fixed
2020-03-11 13:31:56 +03:00
Nikolay Krasko
c22272bbca
Enable mute for KotlinCompletionTestCase
2020-02-28 11:36:34 +03:00
Abduqodiri Qurbonzoda
e19c0c9768
Update idea-completion testData after introducing vararg maxOf/minOf
2020-02-27 02:24:49 +03:00
Abduqodiri Qurbonzoda
fe50bb4b93
KProperty and ReadOnlyProperty type parameter names #KT-16529
2020-02-26 17:34:03 +03:00
Nikolay Krasko
3a5f42cc5e
Refactoring: always use compiler settings with de-configuration in tests
2020-02-21 16:07:23 +03:00
Roman Golyshev
36f4b6daf3
Update completion-ranking-kotlin dependency
2020-02-19 14:16:48 +03:00
Roman Golyshev
3461effd47
KT-33372 Remove renaming file reference to the contents of the file
...
- There is still a hack with returning null from `getLastFileReference`,
it is here to keep KT-25674 issue fixed
- Overrides of `bindToElement` are removed, they caused renames of the
file references to their contents
- Code of `KotlinFilePathReferenceContributor.kt` is refactored
- ^KT-33372 ^KT-32514 ^KT-36306 Fixed
2020-02-16 17:08:11 +03:00
Nikolay Krasko
54b1c512c5
201: LookupImpl.focusedDegree renamed
2020-02-11 20:28:03 +03:00
Roman Golyshev
31315e2c45
Add plugin_version and file_type features for ML completion
...
- This is required to be able to use ML completion infrastructure to monitor code completion quality (even without ML enhancement)
2020-02-05 12:19:49 +03:00
Dmitry Gridin
c34b417d0c
Fix tests after disabling trailing comma
...
#KT-34744
2020-02-04 21:34:53 +07:00
Dmitry Gridin
96f49d8e3c
Remove trailing comma from some tests
2020-01-30 15:32:09 +07:00
Ilya Gorbunov
c37a2d3dc3
Fix completion test: add coroutines-compat jar dependency
...
Related to KT-34582
2020-01-29 09:12:43 +03:00
Natalia Selezneva
606279b462
as36: Update to AS 3.6 RC (192.7142.36.36.6071332)
...
^KT-36005 Fixed
2020-01-21 15:56:01 +03:00
Toshiaki Kameyama
2daedc98b5
KT-35648 RemoveArgumentNameIntention: Support MixedNamedArgumentsInTheirOwnPosition
...
- ^KT-35648 Fixed
2020-01-21 11:43:37 +03:00
Nikolay Krasko
f01b4706d1
Switch to 193 platform
2020-01-19 12:01:53 +03:00
Mikhail Zarechenskiy
547865d5c7
Fix tests for completion after fun keyword
...
It's correct from the current implemention but still questionable and
should be discussed
#KT-35990 Open
2020-01-17 19:37:48 +03:00
Dmitry Gridin
d06787886a
Fix tests after implementing trailing comma in formatter
...
#KT-34744
2020-01-17 21:02:54 +07:00
Roman Golyshev
4b50fb18fb
KT-35258 Add better completion for MixedNamedArgumentsInTheirOwnPosition feature
...
- When named parameter is on its own position, the completion of the next argument will not be limited by named arguments only
- The completion will not suggest already used arguments names
- ^KT-35258 Fixed
2020-01-17 12:06:08 +03:00
Roman Golyshev
9f15c0f4d7
Add commentary about inserting type for lateinit var in completion
...
- Also, use dedicated method to check modifier
2020-01-16 17:38:01 +03:00
Alexander Udalov
8a4510c21b
Regenerate tests
2020-01-02 10:31:00 +01:00
Roman Golyshev
42deb7db48
KT-34582 Exclude kotlin.coroutines.experimental package from completion and auto-import
...
- Exclusion happens only when `ReleaseCoroutines` feature is supported
- Add `LANGUAGE_VERSION` to few tests to make sure that previous exclusions still work when `experimental` package is not excluded entirely
- ^KT-34582 Fixed
2019-12-29 15:35:49 +03:00
Vyacheslav Gerasimov
d8d21b0cba
as40: Fix test compilation for AS 4.0 C7
2019-12-25 20:19:36 +03:00
Vyacheslav Gerasimov
68f1d91e1b
as40: Upgrade to AS 4.0 C7
2019-12-25 20:19:36 +03:00
Nikolay Krasko
143cfc7030
Minor: put first actual item to the new line in tests
2019-12-25 14:05:13 +03:00
Michael Kuzmin
254dc8f71c
Build: Drop IntelliJ 2018.3 and Android Studio 3.4 support
...
Delete *.183 and *.as34 bunch-files
2019-12-19 18:31:07 +03:00
Toshiaki Kameyama
ba640be81d
KT-32178 Keyword completion: don't add 'fun' after 'suspend' in type position
...
#KT-32178 Fixed
2019-12-19 15:07:20 +03:00
Dmitry Gridin
8dbbd64beb
idea: cleanup code
2019-12-17 13:56:48 +07:00
Dmitriy Novozhilov
e7f8c8e155
[TEST] Regenerate tests after previous commit
2019-12-12 16:11:45 +03:00
Natalia Selezneva
b66fdad80c
Set since build to IDEA 192.7142.36 for 192 bunch
...
Fix compilation in idea-gradle module
Android Studio 3.6 doesn't still contain some of those changes
2019-12-10 09:16:27 +03:00
Roman Golyshev
66ffdf1b2d
KT-33979 KT-34150 Remove filtering overridden object members and nested objects
...
- ^KT-33979 Fixed
- ^KT-34150 Fixed
- Also, in extension completion check descriptor instance first
2019-12-03 13:29:30 +03:00
Roman Golyshev
3112d70420
KT-35042 Fix InsertHandlerProvider.kt to work with suspend functional parameters
...
- ^KT-35042 Fixed
- Also, fix review suggestions for KOTLIN-CR-3495
2019-11-29 14:55:22 +03:00
Roman Golyshev
6f234beb9c
KT-34414 Make sure completion for suspend functional parameters works too
...
- Replace `isFunctionType` with `isBuiltinFunctionalType` where it is relevant
- ^KT-34414 Fixed
2019-11-29 14:55:21 +03:00
Roman Golyshev
faf4c05fc8
KT-34644 Give return keyword more priority in completion where appropriate
...
- See `returnExpressionItems::returnIsProbableInPosition` to get an idea where return is supposed to be more appropriate
- End of the block (except for top level block of unit function or cycle) or as single expression in if or when
- Right side of the elvis operator (which is not already in return)
- Add additional `probable_keyword` weigher to signalize about probable keyword (for now it is only for `return`)
- ^KT-34644 Fixed
2019-11-26 11:56:32 +03:00
Roman Golyshev
de11b4cb64
KT-34644 Refactor CompletionUtils::returnExpressionItems
...
- Collecting `return` lookups to `blockBodyReturns` will later allow to modify them to increase priority in the completion
2019-11-26 11:56:19 +03:00
Yan Zhulanow
2983c87212
EA-215308: Fix unsafe check casts in template entry handling
2019-11-25 17:26:29 +09:00
Yan Zhulanow
f91a84872a
EA-216299: fix SIOOBE in completion
2019-11-25 17:26:28 +09:00
Nikolay Krasko
394a812329
Re-mute completion tests (KT-32919)
2019-11-22 22:12:37 +03:00
Roman Golyshev
633005fb57
KT-25732 Perform keywords completion earlier to complete them before freeze
...
- If you complete keywords too late, the completion list may become frozen, and `null` will never make it to the top of it
- Remove `flushToResultSet` between `addReferenceVariantElements` calls because flush already happens inside of them
- ^KT-25732 Fixed
2019-11-14 19:50:38 +03:00
Toshiaki Kameyama
4d9b19da82
Remove comments from function/property implementation template
...
#KT-18539 Fixed
2019-11-13 08:37:25 +09:00
Alexander Udalov
f7ef16d2d5
Regenerate tests
...
This fixes project compilation after incorrect merge of
da4097f4/e89a87b2 and 4ed64b02
2019-11-09 00:42:10 +01:00