Commit Graph

453814 Commits

Author SHA1 Message Date
Aleksey Pivovarov
b2bc5e1223 diff: remove dependency on VcsEditorTabFilesManager
GitOrigin-RevId: 147d7554e49006d11866943ddaaa9f65350a0f27
2024-09-09 16:29:11 +00:00
Aleksey Pivovarov
a2b26d2f64 diff: drop 'DIFF_OPENED_IN_NEW_WINDOW' flag
GitOrigin-RevId: 872b7b54a28e4916332a7f8b5391229fc6dbfcd5
2024-09-09 16:29:11 +00:00
Aleksey Pivovarov
b8b2f0a5fc diff: move DiffEditorTabFilesManager implementation from [vcs-impl]
GitOrigin-RevId: 08b63232db191d60efa4b87db8e73fc9d7f22e2b
2024-09-09 16:29:11 +00:00
Aleksey Pivovarov
247b8078aa diff: reopen all FileEditor on 'Open Diff as Editor Tab' option toggle
GitOrigin-RevId: 7ad0568546b42ee84946ee5a9b870a2a22d3ab6c
2024-09-09 16:29:11 +00:00
Aleksey Pivovarov
b83a6715ba diff: use DiffEditorTabFilesManager over VcsEditorTabFilesManager
GitOrigin-RevId: af2bc69b324aacf8f2ca7393275f1cf8d58d74a4
2024-09-09 16:29:11 +00:00
Yann Cébron
bbb73865f7 [config] add "Plugin DevKit | Code | Incorrect service retrieving" to zero-tolerance // community
GitOrigin-RevId: 5a161588f04ef19006e5038882fdde6c78ce130c
2024-09-09 16:24:22 +00:00
Tagir Valeev
8a40a9edb8 [property-tests] InvokeIntention: dispatch pending EDT events after ModCommand action
It looks like, the write can be postponed now?

GitOrigin-RevId: ff78743ad2e105d1d57afff9ae33acdd8dd9502f
2024-09-09 16:23:50 +00:00
Tagir Valeev
b1045e92d7 [vcs] Mark VCS listener as non-headless
May help fixing property test failures

GitOrigin-RevId: 5d051165d7ef6337510a5a1c0b714eba6c4b4a17
2024-09-09 16:23:50 +00:00
Sebastian Sellmair
715a015e69 IJPL-161739: Migrate UserDataHolderEx extension function usages
GitOrigin-RevId: c62c3df22c1a6460e6e9b762bdef32cf96a43886
2024-09-09 16:18:53 +00:00
Sebastian Sellmair
0629629994 IJPL-161739: Add safe extensions to UserDataHolderEx.kt and deprecate/mark unsafe APIs
GitOrigin-RevId: 0bf8dc95df07d5a9bdc21ac5715c3ee8cd15feed
2024-09-09 16:18:53 +00:00
Alexandr Trushev
df4b25fc79 IJPL-161819 remove magic wand caret
GitOrigin-RevId: f89323e2548e0a5c45f733b4c3a87be6cfddb466
2024-09-09 16:13:20 +00:00
Frederik Haselmeier
4e0df68241 [kotlin] Cleaned up code in RedundantExplicitTypeInspection
KTIJ-28412

GitOrigin-RevId: ea48ffa0cb13d08018d96cea82ecbed3008c0be9
2024-09-09 16:04:50 +00:00
Frederik Haselmeier
5975abd6d1 [kotlin] Ported UnlabeledReturnInsideLambdaInspection to K2
^KTIJ-31250 fixed

GitOrigin-RevId: 7d2c8161cd8c36a32827b96c2946c909bb4a67d4
2024-09-09 16:04:50 +00:00
Vladimir Koshelev
aca9d92e9d [pycharm] introduce cleanAllFileLevelInspections to get rid of getting psi files on EDT for nothing
GitOrigin-RevId: 28acc147cf396d63d27338ce15cab1a6fdfe4a32
2024-09-09 15:50:16 +00:00
Mikhail Pyltsin
d72eba89a1 [java-completion] IDEA-357258 Java 23: .switch postfix completion is not supported for primitive data types
GitOrigin-RevId: ae848584ee81611bde2e1201c79923c2e170f6e6
2024-09-09 15:21:29 +00:00
Mikhail Pyltsin
8980aa2c1f IJ-CR-144148 [java] IDEA-358751 Java Annotations copied to generated getter / setter
- add new option

GitOrigin-RevId: b893b09e8e157cbcc4cba78cda4d61e973f1f4e5
2024-09-09 15:21:29 +00:00
Andrey Lisin
a8ca44f462 PY-75228 Fix issue with newly added breakpoints being ignored during debugging in Python 3.12
GitOrigin-RevId: 8a2b591dff069a2531d6af472955fbc62c4e531d
2024-09-09 15:19:11 +00:00
Egor Ushakov
12c9a722c0 IDEA-323195 "Object has been collected" error during the evaluation - fixed strings creation during the excessive gc
GitOrigin-RevId: a9d69d822891d035460c9e9fc364dae16355c723
2024-09-09 15:17:29 +00:00
Bart van Helvert
3aeac18f62 [java] Check whether param FQNs are qualified when generating API lists
GitOrigin-RevId: 09605e048b148eaad139c461d0b8ecc33f97ebbb
2024-09-09 15:04:13 +00:00
Bart van Helvert
0e36f51ffc [java] Don't generate API list when class is not in all scope
These members won't be resolvable.

GitOrigin-RevId: 9bf252c0965d16f9fa6f832b34fdd682ea64f7e6
2024-09-09 15:04:13 +00:00
Bart van Helvert
3af9455adb [java] Don't generate API list entry when API is not part of public API
These entries are useless because you can't call those APIs anyway.

GitOrigin-RevId: c43065e082851e1b1574bb9ed47050e8f0dfc61a
2024-09-09 15:04:13 +00:00
Konstantin Nisht
7da55d29da IJPL-161819: Fix colors for inline progress
GitOrigin-RevId: ff1178d1e7c345239c6a3675682b72a878884199
2024-09-09 15:01:59 +00:00
Andrey Cherkasov
48117cfbb5 [kotlin] Port InlineTypeParameterFix to K2
This quick is for the FINAL_UPPER_BOUND compiler warning.

^KTIJ-29501

GitOrigin-RevId: 8f8f66b1af5e60208a0ecf6e155466db76628ce9
2024-09-09 14:57:50 +00:00
Andrey Cherkasov
4f99adcce1 [kotlin] Rename data class and function
^KTIJ-29501

GitOrigin-RevId: 5ca3c31a9b03e543d485d403bedb09c395a0bb69
2024-09-09 14:57:50 +00:00
Andrey Cherkasov
e65e81858b [kotlin] Rename file
^KTIJ-29501

GitOrigin-RevId: 711c96970604a1306a7c62070eb8b277940fb1bf
2024-09-09 14:57:50 +00:00
Andrey Cherkasov
878729a322 [kotlin] Move InlineTypeParameterFix to kotlin.fir.frontend-independent module
^KTIJ-29501

GitOrigin-RevId: 4df7cd1219a8991af03cf174e8a12c47ee838eef
2024-09-09 14:57:50 +00:00
Andrey Cherkasov
a9c9e81236 [kotlin] Convert InlineTypeParameterFix to ModCommandAction
^KTIJ-29501

GitOrigin-RevId: be530d3940a87daecaeff70dd842d4dd1e255b7a
2024-09-09 14:57:50 +00:00
Alexander Lobas
d7b190097e IJPL-158612 Add clarifying labels for all categories in Settings (revert)
GitOrigin-RevId: 6dbe7e766d7412b6ea4a11dc9192b5804ccf6316
2024-09-09 14:57:14 +00:00
Vladimir Krivosheev
bca77eaede cleanup - formatting
GitOrigin-RevId: f4f7c03d87eb5048fb161ec3418d34b605f50ea0
2024-09-09 14:54:45 +00:00
Vladimir Krivosheev
a66b95f110 mark SdkLookupImpl as internal
GitOrigin-RevId: 066f77ae2f766461c4e10a6e8687f50c1bde5019
2024-09-09 14:54:45 +00:00
Vladimir Krivosheev
a1ceeb269c cleanup - don't use unneeded util method runReadAction, make clear that we use old blocking read action (part 2)
GitOrigin-RevId: 22e8680a22bb1e38d4c8bea9a2d8cb2d9c5dbede
2024-09-09 14:54:45 +00:00
Vladimir Krivosheev
583b8b458a cleanup - don't use unneeded run
GitOrigin-RevId: f42423cf62cbfec8c83a909911ff909ead6fa153
2024-09-09 14:54:45 +00:00
Vladimir Krivosheev
d6b365144f cleanup - don't use unneeded util method runReadAction, make clear that we use old blocking read action
GitOrigin-RevId: 6baa157abb86b45b6b0eaedeca05da60ae2e1cf8
2024-09-09 14:54:45 +00:00
Vladimir Krivosheev
067ae5a2b8 cleanup - "use equality instead"
GitOrigin-RevId: 9afb0077683a2bcd7ef57b787f46008189301f2c
2024-09-09 14:54:44 +00:00
Evgenii Zakharchenko
26f4517a0e [spring] IDEA-357318 Spring: inject on completion in constructor produces broken code
GitOrigin-RevId: 79fa4eeac4be5e1520963e1813be22c94db52b69
2024-09-09 14:54:07 +00:00
Daniil Ovchinnikov
086eca34c7 IJPL-161193 call Navigatable.navigate on EDT
GitOrigin-RevId: 8bccb96b25921771897d0cf839b4fa90663b9d0e
2024-09-09 14:52:37 +00:00
Sergei Vorobyov
1694b25d19 IJ-CR-143875 [Gradle|Sync] cleanup: removed the redundant ContentRootData.getSourceRoots method
GitOrigin-RevId: 6873309f3e41d00f75b56cc38d18047512677ac2
2024-09-09 14:37:03 +00:00
Sergei Vorobyov
e73521e0e3 IJ-CR-143875 [Gradle|Sync] cleanup: use the old ContentRootData.getPaths method instead of the getSourceRoots method
GitOrigin-RevId: f299fd202a1053d0876238531b1d4d323ae3f0f5
2024-09-09 14:37:03 +00:00
Daniil.Bubnov
b40e088eaf [ai-completion] ML-3950 Add typing features to logs 2.0
GitOrigin-RevId: 6ace91491bc87ebe8229d5764b1b2573f39b5c7c
2024-09-09 14:34:00 +00:00
Kate Botsman
b95da02afb RDCT-1444 bump Kotlin language and API version
GitOrigin-RevId: b6d783aef45d95f792fb36797c3f8ff158b1aa21
2024-09-09 14:33:02 +00:00
Kate Botsman
062c23194e IJPL-160418 Fix tests
A lot of tests started to fail with an error that `KernelService.getInstance` returns null
The problem is that `BackendKernelService` is not registered in these test due to the absent `intellij.platform.kernel.backend` module.

The proposed solution was to add `intellij.platform.monolith.main` dependency to `intellij.platform.resources` which should ensure platform services registration in all tests

GitOrigin-RevId: c3a8c3c51620497b0c8d23d5baeb2ba521df6c8f
2024-09-09 14:33:02 +00:00
Kate Botsman
afd04129b0 RDCT-1444 Rename entities.kt to TaskInfoEntity.kt
GitOrigin-RevId: bb24fd49ed129a3d8185ea3f7903b13342ffb632
2024-09-09 14:33:02 +00:00
Kate Botsman
4bd1678aee RDCT-1444 Update TaskStatus documentation
GitOrigin-RevId: a9b2714edfd21f2e2cd1cb864b4e9093fedd63a6
2024-09-09 14:33:02 +00:00
Kate Botsman
65763178b7 RDCT-1444 Add TaskInfoEntityTypeProvider to register TaskInfoEntity
GitOrigin-RevId: 1805a3e4af65fee2327c05b6d752349f8f6d9679
2024-09-09 14:33:02 +00:00
Kate Botsman
cad3657558 RDCT-1444 Fix API usage: use withKernel instead of kernelCoroutineContext
GitOrigin-RevId: 9b8d545283fde7325ab76b77ace310c47acad6ab
2024-09-09 14:33:02 +00:00
Kate Botsman
673bf24260 RDCT-1444 Report progresses to Rhizome DB in PlatformTaskSupport.kt
If flag `rhizome.progress` is enabled, progress info is going to be reported via Rhizome DB rather than with `progressStarted`.

Under the flag no indicators are created right now - additional support has to be added on the side of `StatusBarImpl`

`PlatformTaskSupport` also subscribes to `taskInfo.statuses` to cancel a task if its status has been set to `CANCELED`. `RUNNING` and `PAUSED` statuses are going to be supported later

GitOrigin-RevId: a7b702eaf20260a641e928a95b413e2ba4c61d3b
2024-09-09 14:33:02 +00:00
Kate Botsman
225f4aaaf8 RDCT-1444 Add TaskManager to manage the task lifecycle
`TaskManager` provides util methods to cancel, pause or resume a task.
The manager ensures that only valid transitions happen - for example, a canceled task cannot be resumed or paused.
Also, the manager ensures that non-cancelable tasks won't get canceled by checking `taskInfoEntity.cancellation` property

GitOrigin-RevId: d2a262b861dab310e314f304231da5103394843c
2024-09-09 14:33:02 +00:00
Kate Botsman
0e43a1e2dd RDCT-1444 Add TaskStorage implementations for frontend.split and backend
`TaskStorage` service is responsible for storing/updating/removing tasks from Rhizome DB.
There are two implementations of the service - backend (available in mononlith and backend.split) and frontend.split

The backend implementation stores `TaskInfoEntity` into a shared partition of DB, so the tasks can be available both on backend and all connected frontends.

Frontend split implementation stores `TaskInfoEntity` into a local partition of DB, so the tasks produced by one of the frontends won't be available for backend or other frontends.
Consider "Code With Me" case here: when one of the guests starts some tasks, it shouldn't be visible to other guests.
However, if the host starts a task - all guests should see it.

GitOrigin-RevId: a020d871d2f5f88809dfed551f511b116e8ff550
2024-09-09 14:33:02 +00:00
Kate Botsman
399c412ee6 RDCT-1444 Add backend module for progresses
This module is going to contain implementation of backend services for progress API.

`com.intellij.platform.experimental.backend` dependency in `.xml` file indicates that the module should not be loaded in frontend-only builds (e.g. frontend split)
The module is going to be loaded in monolith and backend split.

GitOrigin-RevId: adfe37ab2d8f914c422daf02fdd8f71f020a3661
2024-09-09 14:33:01 +00:00
Kate Botsman
35f17aa034 RDCT-1444 Add TaskInfoEntity
This entity is going to represent running progress in Rhizome DB.
The data is mostly copied from `PlatformTaskSupport.ProgressStartedEvent` structure.

Few differences here:
- No `CoroutineContext` in the entity

It's not possible to put the actual coroutine context to `SharedEntity` because it's not serializable.
The context is used mostly for cancellation of a job. The possibility to cancel a job will be provided through a different API.

- New `TaskStatus` field

The status represents the actual status of a task, whether it's running, paused or canceled.

Also:

- Added utils which should make working with `TasksInfoEntity` easier

The utils are queries, which allow avoiding writing the same `asQuery().getOne` in every place where tasks info needs to be retrieved.

- Marked classes used in `TaskInfoEntity` as `@Serializable`

All data used in `SharedEntities` have to be serializable, otherwise it won't be possible to put entity to shared DB

- Add `kotlinx/serialization/KSerializer` to `ideaProjectStructure/exposed-third-party`

With Rhizome `KSerializer` is going to be exposed in more places. Therefore, it makes sense to add this class to default `exposed-third-party-api`, so the tests won't fail because of the added `@Serializable` annotation.

GitOrigin-RevId: 1a1b979b7660d41879a40a4d28b6487b3205e743
2024-09-09 14:33:01 +00:00