Commit Graph

470764 Commits

Author SHA1 Message Date
Arseny.Chernyaev
d88df875d9 adjust the attach dialog minimal size after a new host type being added (fixed RIDER-123674)
(cherry picked from commit 2cebce56744ce535b1b5dac9c4e6161fe7b67f1b)

NET-CR-16492

GitOrigin-RevId: 37b95fa10039ee5c6ac4e207ac388c0ccfb00a4c
2025-04-22 18:48:34 +00:00
Vladimir Panimaskin
f5b0213a98 [js] WEB-72475 Disable floating toolbar without selection for other JB IDEs
(cherry picked from commit b571bd67423b5db994683f03f47f9533e1bf5108)

IJ-CR-160730

GitOrigin-RevId: 56839819f5cfbbcc100f44c381a8b4fc9a84b3bc
2025-04-22 18:40:20 +00:00
Daniil.Bubnov
ac187ec510 IJPL-178966 Restrict nova product_mode to relevant products only
restrict nove detection to clion


(cherry picked from commit 53618d47e865759d211262860021b420403e88a0)

IJ-CR-155828

GitOrigin-RevId: ae028615bb376b43ba10cd532b0edc7010f25bd6
2025-04-22 18:36:51 +00:00
Yuriy Artamonov
de81b1b3da [plugins] IJPL-148225 Do not show "No license" info for freemium plugins in the Plugin Manager
(cherry picked from commit 59ce007b063310bb975ee3f2befdc2023f263ab8)

IJ-CR-160790

GitOrigin-RevId: 9b41ffb5d810bb2d3e0e48cc743c8adf618d1575
2025-04-22 18:24:36 +00:00
Ilya.Kazakevich
0074a87cf0 Python: Open PyTestFixtureReference for pytest imp.
https://platform.jetbrains.com/t/replacement-for-com-jetbrains-python-testing-pytestfixtures-recently-marked-internal/1397


(cherry picked from commit 9990aa0364c3bdfa2b313fa3d0a0cba51a28102e)

IJ-CR-160884

GitOrigin-RevId: 185ac8a5e0e57d00b40a68066a18afa981f05d7c
2025-04-22 18:13:10 +00:00
Ilia.Shulgin
7ceb9d9b92 [dvcs] IJPL-184367 Revert modal commit for Mercurial
(cherry picked from commit 84b7ddf6b1c1a6b8192d605d6912a43994d4026f)

IJ-MR-160787

GitOrigin-RevId: f65baac94099f647fb0aea2fad1891af65d20d11
2025-04-22 18:05:39 +00:00
Thomas Lam
5c6eaa97cf PY-77792: Fix No Conda environment selected error.
^PY-77792 fixed

What happened:
`validationRequestor` only tracked the Conda binary path, so when new environments were loaded into the list, revalidation wasn't called, and `selectedItem == null`.

Fix:
Call revalidation on each `comboBox` update.


(cherry picked from commit 26c56b9c44ada5e22f61bbdad828f5b20b04a2d7)

IJ-CR-160864

GitOrigin-RevId: 7ec603dedf5314f8621c8656bd369887cead0b30
2025-04-22 16:02:17 +00:00
Mikhail Shagvaliev
4e07bd57bb [AutoSync] Address IJ-CR-160378
- drop builder as it's redundant: all fields are required and don't have default values


(cherry picked from commit 78b99e731fa2332370cc05921b3179136ac166e4)

IJ-CR-160378

GitOrigin-RevId: 0989bb831ab245a555e5a9df15ed97683bc3b09c
2025-04-22 15:54:34 +00:00
Mikhail Shagvaliev
fdcab2ec1c [AutoSync] QD-10726 Qodana: run autoimport background tasks BackgroundAsyncSupplier in background, track them
(cherry picked from commit de898261d3086dc16103e4fcbaacddb62dd9daec)


(cherry picked from commit cebc463f092e0478c811a1963e6130625ce3198a)

IJ-CR-160378

GitOrigin-RevId: 0bef7f20a813560c972a5dd348f652ac8903c421
2025-04-22 15:54:33 +00:00
Sergei Vorobyov
f5a4051649 [TrustedProjects|Test] new: add the trusted project state tests for ProjectManager
### Issues
  * IJPL-183135 `Preview in safe mode` opens in normal mode

(cherry picked from commit 7e4fb7dc6eb240caed864f06bc2d350f9f57088f)
(cherry-pick approved by IJ-CR-159977)

GitOrigin-RevId: fa61d834d67b34899492e3b3989d07b14381194c
2025-04-22 15:45:22 +00:00
Sergei Vorobyov
9e8a18e014 [TrustedProjects] fix: automatically trust projects on in the createProject and newProject functions
The createProject and newProject functions create a new instance for the IDE-generated projects (tests or new project wizards). We completely control the project file generation process and can guarantee that we don't add malicious code.

However, the prepareNewProject function can be executed for any project. This function has a different "new project" semantic with the newProject function. Here "new project" means initializing a new project instance without the project caches (.idea). Therefore, it can be used for the existing project without (or with broken) project caches.

### Issues
  * IJPL-183135 `Preview in safe mode` opens in normal mode

(cherry picked from commit baf2a12490791dca716801686ba37eb983cc943a)
(cherry-pick approved by IJ-CR-159977)

GitOrigin-RevId: dd0ff1362b160d2d9598fe6d97ee4009cd6b3859
2025-04-22 15:45:22 +00:00
Sergei Vorobyov
fd43b19481 [TrustedProjects] cleanup: migrate tests on the public trusted projects API
Add a system property that allows enabling trusted checks in the unit test and headless modes. By default, all project in tests are trusted, because all tests are executed in safe environment.

### Issues
  * IJPL-172505 Trusted Projects' API is marked as Experimental

(cherry picked from commit 1c50198ca34c28d2e00fcba2774c878e993557b5)
(cherry-pick approved by IJ-CR-159977)

GitOrigin-RevId: d3fa2c34138265744689df1065048fd70d702101
2025-04-22 15:45:22 +00:00
Sergei Vorobyov
7c481b426a [TrustedProjects] cleanup: introduce the public trusted projects API
The com.intellij.ide.trustedProjects.TrustedProjects utility object is open for public usage. Other stuff is internal or deprecated in favor of this API.

### Issues
  * IJPL-172505 Trusted Projects' API is marked as Experimental

(cherry picked from commit a0f082950faadad8c855cde5090419293aa3646c)
(cherry-pick approved by IJ-CR-159977)

GitOrigin-RevId: 1560d86bb1a22b1e77f84be0e276937f7dc071f2
2025-04-22 15:45:22 +00:00
Egor Ushakov
ffa49b13cf IDEA-370048 Stream trace debugging does not show the traces for the gatherers and toList method - toList support
(cherry picked from commit 8758ddf107d8bd9e028743ba8d9592f239d22bed)

IJ-CR-160175

GitOrigin-RevId: ee245e671faae8a50e543b94791dccab660cc701
2025-04-22 14:24:35 +00:00
Konstantin Nisht
d35bcc251d [maven] IJ-CR-159827 IJPL-182857: Save project tree on project closing
This is needed because we changed the behavior of MergingUpdateQueue in dfe47c2d63b3489c9e2900f546ea9779f5dea314, and the update that was saving the tree previously is now canceled

(cherry picked from commit 51d29f39d93ab73d003dfbb37bd9ba87466346d1)

GitOrigin-RevId: 948cc9a50c09e7053a3647b8264ca9f0f75a8335
2025-04-22 14:06:27 +00:00
Konstantin Nisht
53603427d7 [maven, warmup] IJ-CR-159827 IJPL-182702: Schedule queue updates in a tracked way
(cherry picked from commit cc61fdf1ac216a35d1717bd050d971e8c28a4962)

GitOrigin-RevId: df8a9e61d1b3a644d15353876dc13e7eea67ce98
2025-04-22 14:06:27 +00:00
Konstantin Nisht
d2bbcedaf8 [threading] IJ-CR-159827 Improve cancellation guarantees of MergingUpdateQueue
(cherry picked from commit dfe47c2d63b3489c9e2900f546ea9779f5dea314)

GitOrigin-RevId: c8ccef21bd489340e3f18a942f84d624cf1b5073
2025-04-22 14:06:27 +00:00
Sergei Vorobyov
9ff7073266 [Observation|MergingQueue] IJ-CR-159827 fix: independently trace updates with the same equality objects
Introduced an identity key for TrackedUpdate. It allows tracing leaked updates event if they have the same equality objects to merge.

### Tests
  * org.jetbrains.plugins.gradle.setup.GradleCreateProjectTest

(cherry picked from commit 5cbc7f4d9b49f58061975a4ce5e3cb2d1298d28d)

GitOrigin-RevId: 7b9ccda795affdc8b5397df95a9900dfb91e170b
2025-04-22 14:06:27 +00:00
Sergei Vorobyov
90e6f37f08 [TestFramework] IJ-CR-159827 fix: move ListenerAssertion from the external system to the platform test framework
(cherry picked from commit 79011bc79b63fef6f25bdb55948b0277493cdc17)

GitOrigin-RevId: a3a6b1dd4a752c910e073a3689373257e238edba
2025-04-22 14:06:27 +00:00
Sergei Vorobyov
7f2b6094f7 [Observation|MergingQueue] IJ-CR-159827 new: add observed computation dumping for the merging queue updates
### Tests
  * org.jetbrains.plugins.gradle.setup.GradleCreateProjectTest

(cherry picked from commit 98ef87fea389e97af53a4e176c7994a27f4fa752)

GitOrigin-RevId: ca2834d2d4f007647d61506f1e791570c363c315
2025-04-22 14:06:27 +00:00
Aleksandr Krasilnikov
8bed89b339 IJPL-182732 diff: Add hovering for deleted blocks
IJ-MR-159564


(cherry picked from commit 0c4ba31ef401f51e2029dae71e8556b37add478f)

IJ-MR-160717

GitOrigin-RevId: 1deb7b134cc0d7aa0494f197894eafea30c85d38
2025-04-22 13:44:12 +00:00
Aleksandr Krasilnikov
ed1c987b68 IJPL-182732 diff: Synchronize hover and activation areas for vcs markers
IJ-MR-159564


(cherry picked from commit a8e7e5b214fdc8e89b92802b6dddf7cd0d996eaa)

IJ-MR-160717

GitOrigin-RevId: a1656f4e34c0e0b3d9bc9a5a6c2d42c93cd152a7
2025-04-22 13:44:12 +00:00
Aleksandr Krasilnikov
5e532e6a5a IJPL-182732 diff: Adjust marker size for deleted blocks
IJ-MR-159564


(cherry picked from commit 9cb9d30c4193bb3554b3f26dc4c649d85f17f5b5)

IJ-MR-160717

GitOrigin-RevId: 9a4b8ae0475ec9c7b283055df38f6aa8b686340e
2025-04-22 13:44:12 +00:00
Aleksandr Krasilnikov
76abb17677 IJPL-182732 diff: Extract sizes calculation
IJ-MR-159564


(cherry picked from commit 061ab900695b80f83d9c57b2cfbfc48ef862c4a9)

IJ-MR-160717

GitOrigin-RevId: 7d89d188ff26372912ecdd978fc43fcec011e9be
2025-04-22 13:44:12 +00:00
Roman Golyshev
5ea67ecb9e KTIJ-33579 [kotlin] Add extra documentation to ImportContext.isExplicitReceiver
GitOrigin-RevId: cfd9e9e20b2bcd436cc78377cc9d6e3e3ff953ba
2025-04-22 13:11:11 +00:00
Roman Golyshev
c92c3850c0 KTIJ-33579 [kotlin] Use ImportContextWithFixedReceiverType in ComponentFunctionImportQuickFixFactory to properly handle destructuring in lambdas
^KTIJ-33579 Fixed

GitOrigin-RevId: 41c63114663c0ce65496121794f6824c4c0e8107
2025-04-22 13:11:11 +00:00
Roman Golyshev
7bcaa68792 KTIJ-33579 [kotlin] Introduce ImportContextWithFixedReceiverType
GitOrigin-RevId: 5ffa7773d216d1cd06a5efebfc9cfa98eebaf7a9
2025-04-22 13:11:11 +00:00
Roman Golyshev
04de2dce3f KTIJ-33579 [kotlin] Make detectPosition happen under KaSession
GitOrigin-RevId: 113c944bad5189bd6d9ba3ec8ddd947d85ef7430
2025-04-22 13:11:11 +00:00
Roman Golyshev
5bb7b4edcb KTIJ-33579 [kotlin] Add ImportContext.isExplicitReceiver property and receiverTypes function
This would allow abstracting away the computation
of correct receiver types, so that they can
be substituted for cases when there is no
explicit receiver expression

GitOrigin-RevId: cde45523801969f912d15f909a67a60ceeed89ed
2025-04-22 13:11:11 +00:00
Roman Golyshev
ce9cdf6681 KTIJ-33579 [kotlin] Add ImportContext.positionType property and use it where possible
GitOrigin-RevId: e13de29b043b2cad9b07bc491cb242d1e3cb2529
2025-04-22 13:11:11 +00:00
Roman Golyshev
6a9dff5107 KTIJ-33579 [kotlin] Make ImportContext an interface to make it more flexible
GitOrigin-RevId: c58138f2e164b7de6bd495dd15a005b140bf2181
2025-04-22 13:11:11 +00:00
Roman Golyshev
c86f63165c KTIJ-33579 [kotlin] Introduce separate ImportPositionType class
`ImportPositionTypeWithReceiver` is
too rigid for some cases, because
there might be no explicit receiver
expression in the code, but we still need
to differentiate between different types
of calls

GitOrigin-RevId: 7ea7c20f0255d957640c106ddc7041ff873445b7
2025-04-22 13:11:11 +00:00
Roman Golyshev
7445ee577d KTIJ-33579 [kotlin] Add test cases for import of component operators in lambda parameter destructuring
Note 1: Tests are ignored in K1 Mode, and won't be fixed
there.

Note 2: Test for multiple imports at the same time is ignored
until KTIJ-33592 is fixed.

GitOrigin-RevId: 2487b6fb3da0fd313cc61141d7fc3ab13b03e987
2025-04-22 13:11:11 +00:00
Egor Ushakov
d03cc01e1b IDEA-370227 Error with quick evaluation in lambda expressions
(cherry picked from commit 0957f810d4a41d7aa787e68c6d65a5ccb63656ac)

IJ-CR-159332

GitOrigin-RevId: a40a87e2baa3d629b7417da6821275246a64349e
2025-04-22 12:57:54 +00:00
Lev Zagnetin
98194bc344 [ui-tests][driver] AT-2100 improve pointer accuracy in openMenuItem()
(might not really help)


(cherry picked from commit c9c34e28450cf79e67e2f1cad22f902dd17ac3e3)

IJ-CR-160798

GitOrigin-RevId: 594810389720be0ad9749afd05f3ac544a595171
2025-04-21 15:17:34 +00:00
Dmitriy.Panov
535ea78993 internal signing library should not be used in the community project
(cherry picked from commit 758bd714a3b29ae9d52d3bb6806433df8c52c94a)

IJ-CR-160544

GitOrigin-RevId: fce946f807ac7d0e27003002938ebea2b8988ae9
2025-04-18 13:02:08 +00:00
Nikolay Egorov
0ee56d3863 [scripting] Add test to bake up changes, add utility to compile script artifacts in tests directly
Reviewed in IJ-CR-159093

^KTNB-928

(cherry picked from commit fd444b4b2c7a0392563c9f863bde7e766cbc400f)

GitOrigin-RevId: 7fe9fa7f924d5c5cfe919434d7e662a76e9cb300
2025-04-17 18:15:20 +00:00
Nikolay Egorov
80db8b5cb3 [scripting] Do not create KaScriptModule for compiled scripts as it should come from LibraryDependency
Reviewed in IJ-CR-159093

^KTNB-928

(cherry picked from commit e1575ce430c6711511ca9eaab3b0628e2a1e629c)

GitOrigin-RevId: b5111d1c9225141753b640b5c405aaf52791309a
2025-04-17 18:15:20 +00:00
Patronus
e86ad22976 Merge analyzer-update/rride/kt-251/KTIJ-33830 into 251
GitOrigin-RevId: 747c1938130443250ce2fe685b8d774e7e3dc873
2025-04-17 17:54:06 +00:00
Anna Kozlova
6e6b556248 remove duplicated dependency
GitOrigin-RevId: 614820b8cd38f0e0141bad92bfcf4b9de634dc32
2025-04-17 16:35:08 +00:00
Anna Kozlova
ddf63243e1 [kotlin] k2: enable add actual modifier fix for [ACTUAL_MISSING] error
^KTIJ-33834 fixed

(cherry picked from commit cda3b84f5190a825161abcbddea8c981417a27e4)

GitOrigin-RevId: b556764d4dcc6d997d2442aa19615ac2e0271db2
2025-04-17 16:35:08 +00:00
Anna Kozlova
076cde728f [kotlin] k2: make AddOperatorModifierInspection.kt KMP aware
KTIJ-22888

(cherry picked from commit 1f0ef25f9fae251d83bc5955e46cb59e8692b868)

GitOrigin-RevId: 6ca747e761a1e26e74db1dc31d118b15f8785c48
2025-04-17 16:35:08 +00:00
Anna Kozlova
3acb61f5f4 [kotlin] k2: enable remove actual modifier on actual without expect error
^KTIJ-33823 fixed

(cherry picked from commit d51d24fcff85dab8b7d072f2042b87b68de09327)

GitOrigin-RevId: 35e1f61fb62360b4b93a309b0b8a80731b941c60
2025-04-17 16:35:08 +00:00
Anna Kozlova
81a39c03c7 [kotlin] k2: register fix for missed actual declarations in actual class
^KTIJ-33821 fixed

(cherry picked from commit 0fde17300381ef3dc393b335ec5add83e119c30a)

GitOrigin-RevId: 8e218012809903c096398d3428b348352624cf99
2025-04-17 16:35:08 +00:00
Anna Kozlova
b92756ed92 [kotlin] k2: create companion objects explicitly to avoid parsing errors on insert
^KTIJ-33752 fixed

(cherry picked from commit cc564ec894d666518b16e24ed35aab37f6d795ba)

GitOrigin-RevId: 06dfeb44996dc0eebe06c5eecd59af8e6972d722
2025-04-17 16:35:08 +00:00
Anna Kozlova
56bde304ca [kotlin] k2: create expect from actual
^KTIJ-33792 fixed

(cherry picked from commit b458688ce4490868388e3362fed1b1fd9d897336)

GitOrigin-RevId: e93fbf23648172c77d4e2ad34ebd1f80f4bf6c1d
2025-04-17 16:35:08 +00:00
Anna Kozlova
8a5fd26a40 [kotlin] k2: create actuals from expect: enable visibility modifiers
removed explicit primary constructor to avoid KT-76738

^KTIJ-33794 fixed

(cherry picked from commit b46158d91088c084afde7d91d97c8e3677a4f861)

GitOrigin-RevId: d543a278c5ffa9a5750a0ad573f711a022146e4c
2025-04-17 16:35:08 +00:00
Anna Kozlova
c0d37932e4 [kotlin] k2: render context parameter names in override/implement cases
^KTIJ-33253 fixed

(cherry picked from commit d34a54df564d6ffbdf437a3aa0a49ab7b8d85777)

GitOrigin-RevId: 4e58a8238c08887610105cf0bc3995678cce8d2a
2025-04-17 16:35:08 +00:00
Anna Kozlova
0e5865693d [kotlin] k2 generate expect for actual: don't include action if declaration with the same signature already exists
^KTIJ-33112 fixed

(cherry picked from commit 93353f8033872fa054864e6e48fabe20564569c2)

GitOrigin-RevId: 3baf6a1619376a93809d22f80d4b131e7795d5ad
2025-04-17 16:35:08 +00:00
Anna Kozlova
255344b3ef [kotlin] k2: include visibility in expect generation
KTIJ-33112

(cherry picked from commit 9e37218a68e7c6c52da68d479d030906b35193aa)

GitOrigin-RevId: 1c61e5c65b08f2bbbfa6181e2d333c8e69a2dc1d
2025-04-17 16:35:08 +00:00