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
Roman Golyshev
e89a87b2e3
KT-29926: Support completion of suspend lambda body and parameters
...
- ^KT-29926 Fixed
2019-11-08 19:24:05 +03:00
Roman Golyshev
da4097f488
KT-29926: Support completion of suspend lambda parameters in the body
...
- `suspendLambdaSignature` directory is just a copy of `lambdaSignature`
2019-11-08 19:24:05 +03:00
Roman Golyshev
84b9044187
KT-29926: Get rid of filterFunctionExpected
...
- `filterFunctionExpected` does not provide meaningful concept, and will be a problem in the next steps on this issue.
- Refactor `SmartCompletionSession::descriptorKindFilter` to more precisely tell why we include references to constructors if we are completion functions
2019-11-08 19:24:05 +03:00
Alexander Podkhalyuzin
d2ae39489f
SmartPointers in Smart Completion for anonymous object generation
...
#KT-32615 Fixed
2019-11-05 17:51:34 +03:00
Roman Golyshev
28ec74648e
Use ML completion extension point from 193 platform
...
- completion-ranking-kotlin jar used to be in the IDEA itself; thanks to new extension it can reside in the plugin from now on
- ML completion is turned off by default
- use `implementation` dependency because `completion-ranking-kotlin` is required during runtime
2019-10-31 13:37:38 +03:00
Nikolay Krasko
7e5316b9f1
Fix completion test for Java in 193
...
It looks like java completion doesn't use () anymore.
2019-10-31 11:11:50 +03:00
Vladimir Dolzhenko
4b2834c4a8
Provide incremental analysis of a file when it is applicable
...
#KT32868 Fixed
2019-10-30 21:41:29 +01:00
Nikolay Krasko
7160653546
Fix KotlinConfidenceTest in 193
2019-10-29 13:47:14 +03:00
Roman Golyshev
3661dedacf
KT-31762: Fix completion in enum entries constructors
...
- The issue was caused by incorrect parsing of enum entry because of `$` in the `KotlinCompletionContributor::DEFAULT_DUMMY_IDENTIFIER`
- Incorrect parsing caused arguments next to completed one to be recognized as another enum entries
- Change `KotlinCompletionContributor::isInClassHeader` to accept classes without bodies, so identifier without `$` is used inside enum entries constructors
- ^KT-31762 Fixed
2019-10-29 12:35:13 +03:00
Nikolay Krasko
4ed64b0283
Regenerate tests with TargetBackend.ANY remove and using runTest with this
2019-10-23 12:49:48 +03:00
Vladimir Dolzhenko
30229da95a
Don't render pure error types in OverrideMemberChooserObject
...
#KT-34379 Fixed
2019-10-21 17:18:23 +02:00
Roman Golyshev
6560ecc82b
KT-15286: Provide object member extensions in the completion
...
- Add extensions only when completion of static members is enabled (double ctrl + space and nonempty prefix)
- Add full import for callables with receiver in `LookupElement.decorateAsStaticMember`
2019-10-18 17:17:28 +03:00
Dmitry Gridin
bf7c325f43
Completion: should prefer ShortenReferences by elements instead of text range
2019-10-16 15:59:47 +07:00
Dmitry Gridin
2d43d71727
CompletionUtils: cleanup code
2019-10-16 15:59:47 +07:00
Vladimir Dolzhenko
55548d9199
Use test path relative to testDataPath in fixture.configureByFile to be complaint with 193, part 3
2019-10-09 07:34:25 +02:00
Vladimir Dolzhenko
cd32c06df8
Don't grab ref to DeclarationDescriptor into LookupElement, KT-33898
2019-10-08 12:48:33 +02:00
Vyacheslav Gerasimov
dad9958adf
193: Fix test fixture configuration
...
Path to test data file should be relative to test data directory
2019-10-04 17:04:54 +03:00
Nikolay Krasko
030aaee117
Mute completion tests (KT-32919)
2019-10-03 12:24:46 +03:00