Commit Graph

448658 Commits

Author SHA1 Message Date
Alexey Utkin
ecff9169b5 CPP-34081 Rename C++ to C/C++ in the settings
- more fixes after testing

GitOrigin-RevId: 7816c6c8a70b485c05e7b9ee12e5575c1ada3a48
2024-07-10 20:35:03 +00:00
Sergei Vorobyov
5a47e55ec0 [Gradle|Test] cleanup: extracted the sources and generated sources assertion function
GitOrigin-RevId: bae2b8ff3ff80d374ee62c99a47d1b388c9de61c
2024-07-10 20:03:49 +00:00
Vladimir Kharitonov
f40b216a44 JBR-7394 remove JBCefOsrComponent injection from JBCefOsrHandler
GitOrigin-RevId: 7b998401d562348380712cb5cab1df3cde4a2b64
2024-07-10 19:33:53 +00:00
vladimir.petrenko
3b77fee326 IJPL-157490 Telepresence: update API-dump file
yes, it is intended


(cherry picked from commit 0b4c9a2197c343382142ed88aec54eb87192d0ad)

IJ-CR-138667

GitOrigin-RevId: 4768bcef63b12840736c483b58b728db12b543d9
2024-07-10 19:24:02 +00:00
vladimir.petrenko
73308a8ea2 IJPL-157490 Telepresence: revert final modificator to EditRunConfigurationsAction (IJ-CR-138667)
not necessary anymore (see the commit, when it was removed)

this should fix the failed test `FileComparisonFailedError: 'intellij.platform.execution.impl' API dump does not match the actual API`


(cherry picked from commit 1e38ad80468fcab9541c5989f83f7e2e4c4b0c72)

IJ-CR-138667

GitOrigin-RevId: 7978505a09d1af492360dc92f8b8a1d23f255a37
2024-07-10 19:24:02 +00:00
vladimir.petrenko
6dd2a59984 IJPL-157490 Telepresence: rename actions (IJ-CR-138667)
(cherry picked from commit 95c7754c302d57f322476600527df766ab9d1ceb)

IJ-CR-138667

GitOrigin-RevId: d67dc7ee643bcaa8bf0bb7f8337709654c1b1702
2024-07-10 19:24:02 +00:00
vladimir.petrenko
3b5f8fa5b1 IJPL-157490 Telepresence: rename actions group to RunConfiguration.Group (IJ-CR-138667)
(cherry picked from commit 55d834ee0b9b9bbafcbe79b47b6cc6865d6b2fe5)

IJ-CR-138667

GitOrigin-RevId: 009298bc4107bab82e698110b5c59db1f1e6f71d
2024-07-10 19:24:02 +00:00
vladimir.petrenko
d2af4e1898 IJPL-157490 Telepresence: maintain the reorganized actions in Old UI (IJ-CR-138667)
2 problems are fixed by this commit:
1) bad naming of `EditRunConfigurationsInNewUiAction` and its needlessness (IJ-CR-138667)
2) missing of actions in OldUi, which were reorganized by previous commits

To avoid duplication of "Edit..." items in Old UI that was solved before this commit by `EditRunConfigurationsInNewUiAction` implementation, the action with id `IdeActions.ACTION_EDIT_RUN_CONFIGURATIONS` is added under the corresponding condition in code after the commit. (After the completely removing of Old UI this part of changes can be reverted)

About the missing actions in Old UI:
They were missed because the DataContext did not contain a value for `RUN_CONFIGURATION_KEY` during actions updates. This is fixed by the introduced overridden `createActionPopup` method.


(cherry picked from commit 867e94bdedfdd753e783812d1939e22a3e37baa4)

IJ-CR-138667

GitOrigin-RevId: 86da724a6dac4218f392e91f4577e1458827635b
2024-07-10 19:24:02 +00:00
vladimir.petrenko
082acd4d50 IJPL-157490 Telepresence: move actions texts and descriptions to bundles so that they could be associated automatically
the new key-values in `ActionsBundle.properties` file are the copies of the corresponding `choose.run.popup.*` keys from `ExecutionBundle.properties`. The keys are renamed to the "action.[action_id].text/description" and moved to `ActionsBundle.properties` file so that they were automatically assigned to the corresponding actions declared in `LangActions.xml` file without writing any special code for doing this. The corresponding key-values were not removed from `ExecutionBundle.properties` because they have other usages. These usages were not rewritten so that they use the new key-values from `ActionsBundle.properties` because it can lead to changes in 100500 files, that can complicate possible backporting.


(cherry picked from commit 7ea94ef5f48a4dd323eb4cb33e149f772c0377f6)

IJ-CR-138667

GitOrigin-RevId: b9f345d1c3045151f5dcc335b0a0f654da408c42
2024-07-10 19:24:02 +00:00
vladimir.petrenko
a8e8d03450 IJPL-157490 Telepresence: refactor: extract actions to separate files + rename
(cherry picked from commit 20229422a8554eadf52b007c8632ec733474cab4)

IJ-CR-138667

GitOrigin-RevId: 644a8fcfe095df48782fdbbff0e68a9e442ca365
2024-07-10 19:24:02 +00:00
vladimir.petrenko
45fbfa1720 IJPL-157490 Telepresence: use "actions-extension mechanism" instead of new extension point that provides actions
(cherry picked from commit 5a0035880a08c5327379c86542fcd6ec8e6063de)

IJ-CR-138667

GitOrigin-RevId: 54db2c78cec8664359f9a18c7c6abe4b94780f1c
2024-07-10 19:24:02 +00:00
vladimir.petrenko
9b555ecf0d IJPL-157490 Telepresence: move "Add Kubernetes Tunnel" button into "Configuration" section ...
... in Run Configiration executors menu and convert it into AnAction


(cherry picked from commit 608be4e8de2e2efe0490553dc3ead5987dc74060)

IJ-CR-138667

GitOrigin-RevId: 7f100be25f9970485a2dff9e81514bfa79043d02
2024-07-10 19:24:02 +00:00
Bas Leijdekkers
90930f2998 Java: handle reassigned parameters better (IDEA-256096)
for "Convert to instance method" refactoring

GitOrigin-RevId: 957b0b0cecf93f6ff849d4105ed864bc6ba99c8f
2024-07-10 19:17:56 +00:00
Bas Leijdekkers
610358505b Java: stable method ordering for "Convert to instance method" (IDEA-356128)
GitOrigin-RevId: 81b2e38494d7792dfe3ec13703851e4eb1539e71
2024-07-10 19:17:56 +00:00
Anastasia Katsman
004e3fb505 [starter]: increase connectTimeout LocalEventBusServerClient.sendRequest
GitOrigin-RevId: 412d5b661f33a8d7e2359f9168f70a5d679a28cd
2024-07-10 19:09:58 +00:00
Anastasia Katsman
31fd8d9ea4 [driver-tests]: add xx with QueryBuilder call
GitOrigin-RevId: 97cc1e10cd101d8383f44940deb1dc4175a4d77b
2024-07-10 19:09:58 +00:00
Anastasia Katsman
891dab1fd9 [driver-tests]: improve logs for waitAny/waitNotFound
GitOrigin-RevId: 0e96a0ff423dd667e598aae98fb833d85b412885
2024-07-10 19:09:58 +00:00
Anastasia Katsman
a2c4e13550 Revert "[driver-tests]: make UiComponent.toString a bit more readable"
This reverts commit a09adce49ba9ea7e02da8117c336f08ff0dc268a.

GitOrigin-RevId: b8609f1658cc44fef5531ecd5728620442aed09e
2024-07-10 19:09:57 +00:00
Anastasia Katsman
72647c37c5 [rdct-tests]: properly wait till modal dialogs are closed
GitOrigin-RevId: 5d5296c78989c6f677e2731090080efd1c7f366c
2024-07-10 19:09:57 +00:00
Andrey Cherkasov
47a4785a87 [kotlin] Port ReplaceExplicitFunctionLiteralParamWithItIntention for K2
^KTIJ-30542

GitOrigin-RevId: 04c20b21e48b497a15f1a5b71696554005cb2ffd
2024-07-10 18:54:45 +00:00
Andrey Cherkasov
8964bcba12 [kotlin] Introduce ReplaceExplicitLambdaParameterWithItUtils
to share functions that don't require analysis between K1 and K2 implementations of ReplaceExplicitFunctionLiteralParamWithItIntention.

^KTIJ-30542

GitOrigin-RevId: 3a4abe5ef00cc53c14136cd8a4853a7812f583f7
2024-07-10 18:54:45 +00:00
Vera Petrenkova
d9c3071f6b IJPL-157370 fix file templates resolving and wrap to try/catch a message bundle resolving for localization plugin
GitOrigin-RevId: 7031a7a3a0b746f9980854d4ce39c7c26b548065
2024-07-10 18:47:00 +00:00
Sergey Pak
e8d44eaeea IJPL-158105 Settings sync between 2024.1 and 2024.2 prompts to disable new UI in 2024.2 if is was disabled in 2024.1
GitOrigin-RevId: dc14421be467633cb1702293d2cc157b92d55c89
2024-07-10 18:45:37 +00:00
Elena Shaverdova
9011339c6c Event fields should use points as separators IJPL-157640 FUS-4740
GitOrigin-RevId: a83f5a7804e1f5d73e13430b58dee47420afcad3
2024-07-10 18:37:42 +00:00
Tomek jean Mańko
5bfc566e1c IJPL-13205 Fix setting status label update when deleting remote data
Since the even handler runs in a different thread from the progress modal, `ModalityKt.defaultModalityImpl()`
won't be able to get it from `ProgressManager.getInstanceOrNull()?.currentProgressModality`, causing the
modality state to fall back to non-modal, delaying the label update until after the settings dialog is closed.

It's fixed by just storing the settings dialog modality state before showing the progress modal and passing
it to `runInEdt` explicitly.

Signed-off-by: Sergey Pak <sergey.pak@jetbrains.com>

GitOrigin-RevId: ae45788cc3f16bb92e2bad666ba16b733762a216
2024-07-10 18:22:48 +00:00
Alexander.Glukhov
af89084372 [external system api][IJPL-157795] dead code cleanup
GitOrigin-RevId: 066512ddd37c3659902d157bfc087f5c9655c7b8
2024-07-10 18:22:10 +00:00
Alexander.Glukhov
eafd8ebca2 [external system api][IJPL-157795] do not expose implementations of external system actions
GitOrigin-RevId: db173a8559a953111ae01a9cca09b67ac1f220b4
2024-07-10 18:22:10 +00:00
Roman Shevchenko
2ede11fe3f Cleanup (dead code; formatting)
GitOrigin-RevId: f067460b725b7717c569430053e866e0f836a66a
2024-07-10 18:20:02 +00:00
Roman Shevchenko
ecf88e5b72 [tests] downgrading library URL check tests from "smoke" to "regular"
GitOrigin-RevId: 30cefbaefbbafc2c088cc5a1820b83950799f638
2024-07-10 18:20:02 +00:00
Mikhail Pyltsin
61eda5ef9f [java-inspections] IDEA-356142 Support several unconditional cases in "Replace if with switch"
GitOrigin-RevId: 55d493b34da246aa205be0fab09bf538d25b49fa
2024-07-10 18:15:49 +00:00
Alexey Merkulov
a9ffe233f0 [debugger] Revert additional debugging for stepThroughCoroutineScope.kt
Additional debugging fixed flaky, but the problem should be found

GitOrigin-RevId: 1c072f93b8defb3ee486d308f12af45c6e831bdf
2024-07-10 18:04:39 +00:00
Alexey Merkulov
b60df29a27 [debugger] IJPL-156831 Fix frames view painting freezing from the background thread
Fix EA-1185579

GitOrigin-RevId: 0e85ee5e292415a17f1a68f9876b5ee604f9d622
2024-07-10 18:04:39 +00:00
Andrew Kozlov
26e71d8383 [kotlin] KTIJ-29483 ChangeToPropertyAccessFix migrated to K2
GitOrigin-RevId: cff9333f87af3481d8aa212b67826a15c248cf99
2024-07-10 18:03:36 +00:00
Andrew Kozlov
b986cfa21a [kotlin] KTIJ-29483 test data moved
GitOrigin-RevId: c9f1e4b9b35231d46296331f094006792dc76c45
2024-07-10 18:03:36 +00:00
Andrew Kozlov
d67b656a4a [kotlin] KTIJ-29776 recursive calls should not be generated
GitOrigin-RevId: d331690cf24d7d0c147259672b6f8312b8dc12c2
2024-07-10 17:50:46 +00:00
Andrew Kozlov
7963484221 [kotlin] KTIJ-29776 method inlined
GitOrigin-RevId: 84d7f4bfdc3e09f019fc95ce59d37aa34cab8e79
2024-07-10 17:50:46 +00:00
Andrew Kozlov
f0eb68a89e [kotlin] KTIJ-29776 properties instead of methods
GitOrigin-RevId: deb2677132251300135c377d40f904949363c475
2024-07-10 17:50:46 +00:00
Andrew Kozlov
b8fb80f48b [kotlin] KTIJ-29776 text generation simplified
minor cleanup

GitOrigin-RevId: 57a60d09b6a5d85032a9864c40c8a5c709585152
2024-07-10 17:50:46 +00:00
Kate Botsman
06b972c349 RDCT-1496 fix fileOpened is not triggered in RD
There are two methods that open a file in RD: `blockingHandleModel` and `blockingHandleModel2`

They do the same thing, but only `blockingHandleModel2` triggers events such as `beforeFileOpened`, `fileOpenedSync` and `fileOpened`.

However, under `model.fireFileOpened` `blockingHandleModel` method is called (which doesn't trigger any events)

It seems that during refactoring the condition was misused. I switch methods so the correct one is called under the `model.fireFileOpened`

GitOrigin-RevId: 432487ac80e492527b0bee79b534bb2f1d334e49
2024-07-10 17:49:15 +00:00
Tomek jaen Mańko
3b3ef02a58 IJPL-13931 Ensure settings categories are respected in the initial sync
There are two parts to the fix:
  * explicitly flushing settings to disk before the initial sync — while the sync subsystem
    correctly filters out files not matching the selected sync categories, it only seems to
    take into account files that are actually persisted on disk when uploading them. When
    setting up sync, the settings object initially remains in-memory (at least until the
    time IDE decides to flush it on it's own), so initial upload might be missing the
    settings state, giving appearance of all the categories being synced, instead of just
    the selected ones,
  * correctly categorise plugin settings — `SettingsSyncFiltering.getSubCategory` was written
    to only classify font settings properly, so you could not disable a specific plugin from
    syncing. This is now fixed by using plugin ID for category  while filtering. It might make
    sense to unify this code with `SyncPluginGroup` one way or another, but it was simpler to
    just duplicate the behaviour for this fix.

Signed-off-by: Sergey Pak <sergey.pak@jetbrains.com>

GitOrigin-RevId: 88ab02f1198479eaad8966b7890748b87e53f5e0
2024-07-10 17:44:42 +00:00
Konstantin Hudyakov
f7f4adf3bc [terminal] Completion API: allow calling subcommands multiple times
It is natural for DSL that functions that define something (like subcommands in our case) can be called multiple times.
As suggested in review IJ-CR-135172.

GitOrigin-RevId: 8b7d3a650fde4cb0562dd95620df595bb24adda4
2024-07-10 17:36:54 +00:00
Konstantin Hudyakov
168d8b17f6 [terminal] Completion API: allow calling dynamicOptions multiple times
It is natural for DSL that functions that define something (like shell options in our case) can be called multiple times.
As suggested in review IJ-CR-135172.

GitOrigin-RevId: 2abe69dbbacf69dc2bed4e254ed3f78069852748
2024-07-10 17:36:54 +00:00
Rustam Vishniakov
1db710683d [json settings] Drop Pythonid:app:PyCondaPackageService.preferredCondaPath [IJPL-66537]
Conda path is taken automatically if Conda is installed, there is no need to configure it.

GitOrigin-RevId: fc1d7fcad84846542f9a242eb7c430d75e841bf1
2024-07-10 17:31:40 +00:00
Alexander Lobas
47181abd32 IJPL-158016 Language for Korean is wrong
GitOrigin-RevId: 1a3282410263e6d8d30134ee7379b081179fb12b
2024-07-10 17:29:36 +00:00
Ilya Goncharov
bd059ea31c [Kotlin] Detect wasm target based on preset name
^KTIJ-30552 fixed

GitOrigin-RevId: 934b1956c6f324b3cd16d8f1c27821e9a26d45c0
2024-07-10 17:17:50 +00:00
Yann Cébron
b47f5ffa32 [devkit] DOM: stub <idea-plugin@implementation-detail>
GitOrigin-RevId: 1a3720c91581b0e2ddd7028d6d49c997338e0af3
2024-07-10 17:07:41 +00:00
Vladimir Krivosheev
9c1353a479 experimental syntax to not load module per OS
GitOrigin-RevId: ebdbc3b3dedb863cb806d6e836bdc0f444eaf0c2
2024-07-10 17:04:06 +00:00
Artem Aleksyuk
5f2a9248fd IJPL-149248: Manually register NettyChannelProvider
GitOrigin-RevId: 32e564a031965dc974667ba019158deba91530de
2024-07-10 16:58:08 +00:00
Artem Aleksyuk
6898adbc14 IJPL-149248: Add the missing dependency to intellij.libraries.grpc.netty.shaded module
NettyChannelProvider from intellij.libraries.grpc.netty.shaded is a subclass of ManagedChannelProvider from intellij.libraries.grpc
Without this fix, PluginException: Cannot load class io.grpc.netty.shaded.io.grpc.netty.NettyChannelProvider is thrown caused by NoClassDefFoundError: io/grpc/ManagedChannelProvider.

GitOrigin-RevId: 11881a7c425ba959119ab4280ba067b305f4f803
2024-07-10 16:58:08 +00:00
Yann Cébron
da18ede174 [devkit] Extract "Plugin should have pluginIcon.svg" check from PluginXmlValidity inspection (IDEA-355886)
GitOrigin-RevId: 52964f1e4f897556ac7fa045258340d103e2cdb5
2024-07-10 16:49:34 +00:00