Commit Graph

446688 Commits

Author SHA1 Message Date
Dmitrii Gridin
4f5d99f7de [kotlin] update bootstrap artifacts to 2.1
^KT-68653

GitOrigin-RevId: 813e61b202209c2216e28c3c9a58cb8b5d4c0682
2024-07-03 15:17:09 +02:00
vladislav.grechko
8e487fe110 Add test for KT-68794
GitOrigin-RevId: ecf5904b295b548bed02bed4bc083ffb7c87b9e6
2024-07-03 10:35:24 +00:00
vladislav.grechko
3e662a3883 Add test for KT-69509
GitOrigin-RevId: 954df1838950d5639c695429d37f2557b091a1bc
2024-07-03 10:35:24 +00:00
Yan Zhulanow
48201dfbc3 [kotlin] Adapt the Kotlin code plugin after 'KaType' unsealing
GitOrigin-RevId: 55678a9e611d5fadee00fe418ec0c3767bc8f6e2
2024-07-03 09:34:29 +00:00
vladislav.grechko
11ffd87739 Add test for KT-68794
GitOrigin-RevId: 4e9f2be1465a8912a06e9361595d338683ac09dc
2024-07-01 17:20:36 +02:00
Jaebaek Seo
dc2df9e648 Add Compose compiler plugin to allow-list of plugins
^KTIJ-30164

GitOrigin-RevId: e70c1f8b4516fbb7cd62ec4c4924a494231925c1
2024-07-01 13:46:37 +02:00
Dmitrii Gridin
8e7d8d7add [kotlin] generate missed tests
GitOrigin-RevId: 0445ec837ee4fbbc6fac0f262084c887b79381b7
2024-07-01 12:41:17 +02:00
Yan Zhulanow
ace6572a1c [kotlin] Adapt to changes in 'containingSymbol' and 'containingDeclaration'
^KT-69535

GitOrigin-RevId: 59dfdb3fea56a3858be459988e41640b8ed53ae5
2024-07-01 10:37:41 +00:00
Yan Zhulanow
f85553a22a [kotlin] Mark usages of protected Analysis API parts
^KT-69533

GitOrigin-RevId: 14bec67eb5303a2b5976ae037c812a2d38cceef5
2024-06-30 01:34:04 +09:00
Dmitrii Gridin
e91645f0a0 [kotlin] add optIn for KaResolveExtension tests
^KT-69371

GitOrigin-RevId: cded1527f3a5723316afb6b2816876b9ce14dc3d
2024-06-29 14:39:16 +02:00
Dmitrii Gridin
f2c88d36c1 [kotlin] adapt KotlinCallProcessor to Analysis API changes
The Analysis API doesn't provide any implementation details

^KT-69371

GitOrigin-RevId: ab973f5948c481d2dce77427fd4431502a6dc577
2024-06-29 14:38:47 +02:00
Yan Zhulanow
0bf41cee5b [kotlin] Update Analysis API annotation names
The old annotation names left for now to ease the Kotlin/IntelliJ migration.

^KT-69417

GitOrigin-RevId: c0e34979a64ff5101bd439c2b9ca8c3d1c54916e
2024-06-29 05:54:43 +09:00
Vyacheslav Karpukhin
45b511e1fa KTIJ-30335 keepConflict -> skipUsage in KotlinChangeSignatureConflictFilter
GitOrigin-RevId: 872fc0bce23531743231c6e524489ed84daee503
2024-06-28 14:19:20 +02:00
Vyacheslav Karpukhin
6ecb34fe83 KTIJ-30335 K2: introduce KotlinChangeSignatureConflictFilter extension point
GitOrigin-RevId: cb9400f75cbed6b187a6c11952bf3eb28d44435c
2024-06-28 14:19:16 +02:00
Vyacheslav Karpukhin
898330a8b4 KTIJ-30335 allow K2
GitOrigin-RevId: 8843e6ea6b78dc00e64f03492914654205e18f3b
2024-06-28 13:35:19 +02:00
Vyacheslav Karpukhin
d8a990c332 KTIJ-30335 Move ForeignUsagesRenameProcessor to kotlin.refactorings.common and use it directly
GitOrigin-RevId: f22747e1fede20bdaaf0b2a02b567706282ee62d
2024-06-28 13:35:18 +02:00
Marco Pennekamp
a8e9e98cd2 [kotlin] Register KotlinPlatformSettings
^KT-69443

GitOrigin-RevId: ae43bca12b66346380a43325e41cf0cdc8f8aba0
2024-06-27 15:57:42 +00:00
Kirill Rakhman
8ab1a2ba04 [kotlin] Fix test data after #KT-11526
GitOrigin-RevId: 5049b7203210fe97e1663b776a00a153a9ce4b5c
2024-06-27 14:01:34 +00:00
Kirill Rakhman
e645b7bc6c [kotlin] Fix test data after #KT-69390
GitOrigin-RevId: 923d5048edd386c903b4519e1a7a93336cabf64a
2024-06-27 13:31:46 +00:00
Marco Pennekamp
9b71b98cb1 [kotlin] Rename queriedAnnotation to annotationClassId in IdeKotlinAnnotationsResolver
- The same parameter was renamed on the Analysis API side.

^KT-65215

GitOrigin-RevId: 3c93fe72721e0e3bfb40933dec1b1092e6720442
2024-06-26 17:39:20 +00:00
Marco Pennekamp
7e91861db5 [kotlin] Adapt to merge of KotlinLifetimeTokenProvider and KaLifetimeTokenFactory
^KT-65215

GitOrigin-RevId: d4ae05b3d3bfba13f4a36651efd6b62e8bc13b81
2024-06-26 17:39:20 +00:00
Marco Pennekamp
e28cbe8d49 [kotlin] Adapt to Analysis API platform components being turned into interfaces
^KT-65215

GitOrigin-RevId: b113ebd2802577f90c9256efab701f399b83c41a
2024-06-26 17:39:20 +00:00
Dmitrii Panov
11caddf1c7 Revert "platform: base build number set to 243.SNAPSHOT"
This reverts commit b267b02bed0051dd9268c82a8e54fb1087e7c8d7.

GitOrigin-RevId: ddc7e0ee664c10c090d3442f015bbed78ff4cd31
2024-06-26 16:32:35 +00:00
Dmitrii Panov
a1ece42e79 platform: base build number set to 243.SNAPSHOT
GitOrigin-RevId: b267b02bed0051dd9268c82a8e54fb1087e7c8d7
2024-06-26 11:19:35 +00:00
Abduqodiri Qurbonzoda
07574d6378 [kotlin] Update testData after adding new kotlin.uuid package
GitOrigin-RevId: 9f0b7ff46a3e42f05ce3aeebc303ef2c1d81efc1
2024-06-25 16:36:15 +00:00
Kirill Rakhman
9ac72574c4 [kotlin] Fix test data after #KT-59510
GitOrigin-RevId: 42161ff71981818c9b5e2d4fb7f2c1de3337cde5
2024-06-25 13:59:05 +02:00
Nikolay Lunyak
89edef0b6a [kotlin] Fix test data after ^KT-63864
GitOrigin-RevId: 7c6a640e450e42a4a69d62d610025ad764388163
2024-06-25 12:15:22 +03:00
Anna Kozlova
06153d1c1a fix compilation
GitOrigin-RevId: 1cb175e0c9276aa1e7a2a7594f96160d1fd64890
2024-06-25 10:32:58 +02:00
Anna Kozlova
aa09fa252f fix compilation
GitOrigin-RevId: 584d891d2e696bb1ba647c274089e932e1c450d9
2024-06-25 10:26:42 +02:00
Anna Kozlova
8362775baa fix compilation
GitOrigin-RevId: 18ed41c5af4faaca9736f92d589356f64af436a1
2024-06-25 09:51:44 +02:00
Anna Kozlova
abf1044aa2 fix compilation
GitOrigin-RevId: 56a326b1543b0cf845458a435b8d81e3d028469a
2024-06-25 09:41:51 +02:00
Ilya Kirillov
e12acb6837 [kotlin] enable KMP common completion tests as KTIJ-29826 is now fixed
KTIJ-28550

GitOrigin-RevId: 81c772bc9bbc68c707cc7fcd4893cf00c84c8fcf
2024-06-24 17:30:03 +00:00
Ilya Kirillov
95e5561d32 [kotlin] adapt to changes in Analysis API for KT-68689
GitOrigin-RevId: fb0508f7afc558e68c8762eee47aecb6bc1496c5
2024-06-24 17:29:55 +00:00
Ilya Kirillov
71c818c1bb fixup! [kotlin] fix completion from builtins in common sourcest
GitOrigin-RevId: 2835e95efbdf67404767595a2ef58ed968849b27
2024-06-24 17:29:47 +00:00
Ilya Kirillov
b9122da1cd [kotlin] fix completion from builtins in common sourcest
The problem was in fact that common stdlib does not contain builtins. In this case, builtin declarations should be resolved to the bundled builtins.

Completion works via `KtScopeProviderMixIn.getScopeContextForPosition`.
Builtins should come via default star-importing scope.
To collect callable and classifier names there, `IdeKotlinDeclarationProvider.getTopLevel(KotlinClassLikeDeclaration/Callables)NamesInPackage` are used which use the scope provided by `IdeKotlinByModulesResolutionScopeProvider`.

An additional change in `IdeKotlinByModulesResolutionScopeProvider` is needed to ensure that for the declarations from builtins we get `KtBuiltinsModule` instead of `KtNotUnderContentRootModule`

Tests were added in the previous commits as a part of KTIJ-28550

^KTIJ-29826 fixed

GitOrigin-RevId: 819b4c70c6c135e51b232ac8d5e22d165da4debe
2024-06-24 17:29:39 +00:00
Yan Zhulanow
860f311e27 [kotlin] Restore cooperative development in the 'kt-master' branch
GitOrigin-RevId: 3a034cdfcc4249f3e9489e769c5327851a857c8c
2024-06-24 21:41:00 +09:00
Mikhail Glukhikh
3eaff0ec4f [kotlin] Make inspection test with feature BreakContinueInInlineLambdas ignored for K1
GitOrigin-RevId: 6096f38194bf8e9893bc75d6cb0abbcbe26baea8
2024-06-24 21:39:24 +09:00
Patronus
b5da600b1b Merge refs/patronus/safepush/8d5c16cf4b1f407dbd9f20862727fab3 into master
GitOrigin-RevId: 890e99af905280a6a58deb10cb2e291deadbca65
2024-06-24 12:27:04 +00:00
Dmitry Matveev
5d604f256f [dotnet] Check texts 242 18
GitOrigin-RevId: a9a804be99d49623de18b19124c6ea1615762669
2024-06-24 12:26:30 +00:00
Piotr Tomiak
0596c9318f StringHash: speed up buz algorithm by reducing the number of charAt calls.
GitOrigin-RevId: 3ba26c35847fa1d5230819467c542986f2e43dc8
2024-06-24 12:06:12 +00:00
aleksandrina-streltsova
804ccc2676 [kotlin] k2 Completion: fix missing suggestions for second and further named argument in case of private function
Another possible solution would be to use `analyzeCopy` with `PREFER_SELF` in `KotlinFirCompletionProvider`, but this way duplicate symbols (one from the original file, and another one from the copy) start appearing in a lot of cases. They come from the package scope and are not easily filtered out. Also, some of them might not be covered by tests. So it would be more preferable to use `analyzeCopy` with `IGNORE_ORIGIN`, and not `PREFER_SELF`, in `KotlinFirCompletionProvider`, which will be possible once KT-68929 is implemented. For now, use a workaround by adding `analyzeCopy` with `PREFER_SELF`
to `FirNamedArgumentCompletionContributor` specifically.

 ^KTIJ-29748 Fixed

GitOrigin-RevId: 1a33b3ebfcb198b7f4fc0160cf0176474da99de2
2024-06-24 11:39:35 +00:00
Kirill.Karnaukhov
548004d09b [inline-completion] IJPL-149157: minor post-refactoring in handling partial accept in the update manager
GitOrigin-RevId: f1d7d53c34813fd0974cd5e7c2a4ff91773b959d
2024-06-24 11:32:49 +00:00
Kirill.Karnaukhov
5aaee4568b [inline-completion] IJPL-149157: fix ApiCheckTest
GitOrigin-RevId: aaae14742ac141f34d81b547add31806360e33e1
2024-06-24 11:32:49 +00:00
Kirill.Karnaukhov
c9bfd0da01 [inline-completion] IJPL-149157: fix reproduced ML-1341 that moving caret to the right doesn't clear inline completion
GitOrigin-RevId: 83053e0d1704bfef32c952141c4055401c19da68
2024-06-24 11:32:49 +00:00
Kirill.Karnaukhov
1f59ba5467 [inline-completion] IJPL-149157: introduce InlineCompletionQuoteHandlerEx for handling quotes when partially accepting
GitOrigin-RevId: 3c45f5bc8165e2e9914271033e0b41f34083f821
2024-06-24 11:32:49 +00:00
Kirill.Karnaukhov
c6360e4c58 [inline-completion] IJPL-149157: minor improvements of partial accept implementations
GitOrigin-RevId: 6500d64359f14c8483607ecc2b95596ee72549b0
2024-06-24 11:32:49 +00:00
Kirill.Karnaukhov
531356b9e7 [inline-completion] IJPL-149157: close brackets and quotes when inserting line by line
GitOrigin-RevId: 7fb0d236aa5ce00b82420c40e560e71a26c5a068
2024-06-24 11:32:49 +00:00
Kirill.Karnaukhov
bb1f47625a [inline-completion] promote InlineCompletionElement as non-extendable
The fact that `InlineCompletionElement` was extendable was a problem for:
* Implementing common features like 'insert the next word'/'insert the next line': some elements may have unexpected behaviour and there is no way to handle them properly in a general way.
* Supporting Inline Completion for RemDev: there is no way to serialize and deserialize them.

GitOrigin-RevId: aeb497627ccb781875ac6000ba6529cab9762631
2024-06-24 11:32:49 +00:00
Kirill.Karnaukhov
44305da848 [inline-completion] IJPL-149157: refactor and document closing of brackets/quotes on next lines
GitOrigin-RevId: 04ed6aefc05704d1bb2be679dd803a30ee1afec3
2024-06-24 11:32:48 +00:00
Kirill.Karnaukhov
79a5abf7f5 [inline-completion] IJPL-149157: support closing of brackets/quotes on next lines when partially accepting words
GitOrigin-RevId: 67e6e1910ba4d6b6c78944d8f904819394890fe3
2024-06-24 11:32:48 +00:00