Commit Graph
438402 Commits
Author SHA1 Message Date
Bart van Helvert 32c3233209 [kotlin] Port PackageDirectoryMismatchInspection to K2
#KTIJ-22914 Fixed

GitOrigin-RevId: 18855f4f0cda8c56682fe56e5a23da81c033634d
2024-03-29 21:00:39 +00:00
Bart van Helvert 5ba0910bee [kotlin] Fix package quotations in move refactoring
GitOrigin-RevId: f886c7212f4ef4a631375703b9e490dcd3e25e83
2024-03-29 21:00:34 +00:00
Sergei Vorobyov 8e03ba21ca [Gradle|Test] fix: moved all tests for the Gradle sync action to the importing.syncAction package
All Gradle importing tests are executed as part of the Gradle Integration Tests bucket on the Team City

GitOrigin-RevId: 20b9a5dc45baa2584a864aaee64d5c9a5d4b9fb3
2024-03-29 19:05:45 +00:00
Andrey Lisin ee3f7ebc62 PY-57113 Fix smart stepping into method in PEP 669-based debugger
GitOrigin-RevId: 28d9ad33c84af42c4a54958feffa9c9bbdf66c7d
2024-03-29 18:59:09 +00:00
Mikhail Pyltsin a750ec4eb0 [java-inspections] IDEA-197280 Non-constant string concatenation as argument" could also be triggered for String.format
- Support simple cases for String.format
- Support simple cases for MessageFormat.format

GitOrigin-RevId: 50f52f526923950e30746691414bb89ce5fca5ab
2024-03-29 18:34:16 +00:00
Daniil Ovchinnikov 8a1cf90bc0 IJPL-850 extract intellij.platform.navbar.compatibility.ide module
GitOrigin-RevId: e79239a85182d6b9f99c0254b4528d5736dfbace
2024-03-29 18:12:43 +00:00
Gregory.Shrago d14c7271b0 make PSI and VFS icon calculation consistent
1. Keep fast PSI icon providers but run VFS patchers over their results
2. (Avoid recursion in `ElementBase` and `PsiBasedFileIconProvider`)
3. Add test to assert same psi/vfs file/dir icons

Fixes
IJPL-714 PsiDirectory ignores FileIconProvider EP
IJPL-939 PsiIconUtil.getProvidersIcon ignores FileIconPatcher EP

GitOrigin-RevId: 948129ab4b9a9195a32d4b2a4ec191bcbd647d80
2024-03-29 18:02:04 +00:00
Gregory.Shrago 204f56656e annotate/fix names for icon providers/patchers
GitOrigin-RevId: 2faa3be0c1e377ffa08874a5f49d862118e83cfd
2024-03-29 18:02:00 +00:00
Mikhail Pyltsin 75f080da26 [java-tests] IDEA-348322 Java: Add the ability to launch tests in Dumb mode
Merge-request: IJ-MR-128894
Merged-by: Mikhail Pyltsin <Mikhail.Pyltsin@jetbrains.com>

GitOrigin-RevId: 68a6972f96f46855ecce100a84f85ef03d60e6e4
2024-03-29 16:31:09 +00:00
Sergei Vorobyov fcdd70af41 [Gradle|TestFramework] fix: made the tearDown more tolerant to failures in the setUp
GitOrigin-RevId: e6cfb03986d9ccaf181daf66f62a171b2db8f7c8
2024-03-29 14:21:33 +00:00
Sergei Vorobyov 03e140a2da IJ-CR-129986 [Gradle|TestFramework] fix: restore application and project initial state after each Gradle project test
GitOrigin-RevId: d47227bdc999f0c0c74b684ebaecb35b1e3f9bfd
2024-03-29 14:21:28 +00:00
Sergei Vorobyov ac748035e8 IJ-CR-129986 [Gradle|TestFramework] fix: restore application and project initial state after each Gradle code insight test
GitOrigin-RevId: b2d59521f4aeec4ce6aa48f312377861fefb57d2
2024-03-29 14:21:23 +00:00
Sergei Vorobyov 31884a4053 IJ-CR-129986 [Gradle|TestFramework] new: added GradleTestApplication annotation for the Gradle Junit 5 tests
GitOrigin-RevId: 3f5f37177ea5990722961086c7154a0917a36a7e
2024-03-29 14:21:18 +00:00
Sergei Vorobyov dd5043893a IJ-CR-129986 [Gradle|TestFramework] cleanup: renamed the GradleTestApplication to the GradleProjectTestApplication
Added the detailed comment for the GradleProjectTestApplication annotation. This annotation should be used only with the GradleProjectBaseTestCase

GitOrigin-RevId: 37f090b9a9d875964114739f2c5905610d215d02
2024-03-29 14:21:13 +00:00
Sergei Vorobyov c22123f6b0 IDEA-329792 [Gradle|Sync] fix: added javaToolchainHome to the source set copy constructor
GitOrigin-RevId: 5841854a6b32476c58fc112efd24ff55423d0e82
2024-03-29 14:21:08 +00:00
Sergei Vorobyov 2fee407cf3 IDEA-329792 [Gradle|Sync] fix: returned old filed for the migration of the java toolchain home
Source set is serialized with the data nodes storage. So we need to migrate old data.

GitOrigin-RevId: 0512049a8436225e8e7e8602ae6862710144de89
2024-03-29 14:21:02 +00:00
Sergei Vorobyov 35a2d5872e [SDK|Test] cleanup: renamed the GradleProjectResolverTest to the GradleProjectSdkResolverTest
The name "GradleProjectResolverTest" is already used in tests for the GradleProjectResolver.

GitOrigin-RevId: e45497503227830d5350d9a2927d8b4b68063db2
2024-03-29 14:20:58 +00:00
Ekaterina Berezhko 964e38a3f1 [Grazie][IDEA-345866] Exclude noinspection comments from concatenated text analysis
GitOrigin-RevId: ce8b783aa812909358a905de69ca744065195f8f
2024-03-29 14:15:10 +00:00
Mikhail Pyltsin ba0a409500 [java-completion] IJ-CR-129761 IDEA-349764 Suggest a full catch section
- tests are extracted
- CatchLookupElement works in dumb-mode

GitOrigin-RevId: 75b5c34ce124a4315a8a73c020ac08f01ecd9487
2024-03-29 12:09:38 +00:00
Sergei Tachenov b478a4dc36 IDEA-317864 Fix coordinate checks in SimpleToolWindowPanel
The top/left insets weren't taken into account: the toolbar height
isn't always the same as its bottom-edge coordinate.

Get its bounds and convert them to the panel's coordinate system
to make code more generic and layout-agnostic. This also factors in
the insets automatically.

Use case: the Remote Host tool window, it has a top border
on the panel.

GitOrigin-RevId: 04574d8a0f2b64a08e012fa600023e9b6891b971
2024-03-29 11:41:22 +00:00
Sergei Tachenov f503db70f5 IDEA-317864 Fix coordinate equality in SimpleToolWindowPanel
The "excellent" Swing API strikes again: x is integer, but getX
is floating-point. Of course we don't want to use equality
on floating-point numbers.

GitOrigin-RevId: 3bdac7537a157911cf7e7e89360e9dbcd28d1104
2024-03-29 11:41:19 +00:00
Sergei Tachenov 964b21ede4 IDEA-317864 Don't show double borders at tool window edges
Similarly to a component touching the tool window header, we need to
avoid double borders at the left/right/bottom edges, in cases when
the tool bar that should be there (and is the reason for adding a border
to begin with) isn't visible.

GitOrigin-RevId: f9ad39005964852696a92ebb0635290762857127
2024-03-29 11:41:15 +00:00
Sergei Tachenov c1bccb0dc5 IDEA-317864 Clean up ScrollableContentBorder
Remove empty lines, format parameter lists, extract common border creation
logic.

GitOrigin-RevId: 53ab49f35543ac6a43f3cdcb381d1be62da446e5
2024-03-29 11:41:12 +00:00
Sergei Tachenov 14cef17872 IDEA-317864 Use ScrollableContentBorder in the Build tool window
GitOrigin-RevId: 1f3b84192fc0f86aee2427dd4de7a17fbad107fe
2024-03-29 11:41:09 +00:00
Sergei Tachenov c7e91d822f IDEA-317864 Add ScrollableContentBorder implementation for complicated cases
Track scroll panes automatically as they're added and add borders if a scroll pane
touching the edge is scrolled. Needed for complicated tool windows like Build,
where it's hard to figure out the exact scroll panes to track, because they are added
to a splitter, which may or may not have other components and it may change
at any moment.

So instead track scroll panes and check their location to see if scrolling should add
a border.

GitOrigin-RevId: 1dae2bf8b5ce43beb54de84a59a58e78721fb3eb
2024-03-29 11:41:05 +00:00
Sergei Tachenov d879451de7 IDEA-317864 Fix insets handling in Splitter
They were ignored by the layout code, making it impossible to use
borders on splitters. And we need one for the Build tool window.

GitOrigin-RevId: d730e55ec16de38a4d5280266238932923e1c58d
2024-03-29 11:41:02 +00:00
Nikita Kudrin 3a16290557 [workspace model perf tests] AT-867 Replace metrics on hot path in ValuesCache from duration to hit/miss counters
GitOrigin-RevId: 10b97d2599aae1b5a55375fadf3b8695f91588c5
2024-03-29 10:30:35 +00:00
Julia Beliaeva 3e11d8e5f0 [lvcs] cleanup
GitOrigin-RevId: 103998537fca4845c08f6430d88f7336c65883f8
2024-03-29 03:22:29 +00:00
Gregory.Shrago 00a400dab2 drop host action workaround in ActionButton.update
EA-1114700 - UOE: BackendActionGroup.update

GitOrigin-RevId: 66fe8e47be82d667b0e04316b9bdfe631101fccd
2024-03-29 02:17:03 +00:00
Gregory.Shrago 4c7ac79e77 EA-1106356 - AE: History.forward
GitOrigin-RevId: 920ac483e5a1b1a1094f21f2b0cad45f6ff0cf8c
2024-03-29 02:17:00 +00:00
Ivan Pashchenko 7c55cd5a5a IJPL-442: re-enable console output for windows debug mode
GitOrigin-RevId: a8ab3a84092fd1109373a56e749236df78a59503
2024-03-29 01:20:00 +00:00
Ivan Pashchenko abcf215ab3 IJPL-442: add build tracing to see why the aarch64 compilation is slow sometimes
GitOrigin-RevId: 0c60bbf8a7407134b9f9f9618e9cacd150e6226b
2024-03-29 01:20:00 +00:00
Daniil Ovchinnikov 9b185d7d3e IJPL-850 list existing navbar modules as dependencies of platform main modules
GitOrigin-RevId: 69216c74fc493762eef92a9b4781e6cffddb21bd
2024-03-29 00:56:13 +00:00
Daniil Ovchinnikov eeff9bdd13 IJPL-850 add intellij.platform.*.main aggregator modules and include them in product mains
- `intellij.platform.backend.main`
- `intellij.platform.ide.backend.main`
- `intellij.platform.ide.frontend.main`
- `intellij.platform.ide.monolith.main`

GitOrigin-RevId: ae5d6e447c8347ad8a715583fb6ee84324ce8e87
2024-03-29 00:56:08 +00:00
Roman Shevchenko a975835a18 Cleanup (simpler error report notification; dead code; minor optimization; typos; formatting)
GitOrigin-RevId: 6bd71df8664e004f756e3b6a573a0a5301c4383e
2024-03-29 00:12:55 +00:00
Boris Krylov 0afe84be2e [rider] refactoring footer creation for RecentFiles and Text contributors
GitOrigin-RevId: c114bb87ce255a0e849d98409dc2aedf020961c5
2024-03-28 23:53:44 +00:00
Boris Krylov 3f37f62792 [rider] readding text SE contributor with footer to Rider
GitOrigin-RevId: a77271336e7f9c08d765ed8edbab82716f2eab99
2024-03-28 23:53:44 +00:00
Boris Krylov 72948465dc [rider] readding recent files SE contributors to Rider
GitOrigin-RevId: 3b505e1c27b88e29a356a6740ecc4e92002342dd
2024-03-28 23:53:44 +00:00
Julia Beliaeva bca31965b5 [lvcs] show only the first line of the multiline label
GitOrigin-RevId: 395ed2e43a23d4d6e383285dbf2b39d80a7016b6
2024-03-28 23:49:22 +00:00
Andrew Kozlov 03cda69999 [kotlin] KTIJ-29133 parameters renamed to avoid naming conflicts
GitOrigin-RevId: 2e17873eccb4a48918c2fa35901b252cc99668d1
2024-03-28 22:10:23 +00:00
Andrew Kozlov 2a1b00e11d [kotlin] KTIJ-29133 base class renamed to reflect that only PSI update might happen
GitOrigin-RevId: faf2bed92aadf18f49eef2e0288afb6d35108728
2024-03-28 22:10:18 +00:00
Julia Beliaeva fe6d8b4e08 [vcs-log-graph] cleanup: rename fields
GitOrigin-RevId: 05a253c047cfad08bb6515155586a99e82afd809
2024-03-28 21:36:44 +00:00
Julia Beliaeva 3655c29472 [vcs-log-graph] include only important branch heads into GraphLayout
Layout indexes for branch heads are saved in the GraphLayoutImpl#startLayoutIndexForHead field, and binary search is used to find a head commit by layout index.

Since all branch heads are used for building graph layout, some branch heads are contained in other branches. If a less important branch is contained in a more important branch, the less important branch does not receive its own layout index and is assigned a layout index from the more important branch. This means that GraphLayoutImpl#startLayoutIndexForHead is no longer sorted, and binary search may return incorrect results on it.

This commit includes only important branch heads with own layout index into the GraphLayout.

follow-up: 1cd228ff6107d0ca03d5f3172f9940e0d55d9e4f

GitOrigin-RevId: f3d5bf4cc85b6b8dbea81895a650e4eca8985cad
2024-03-28 21:36:39 +00:00
Julia Beliaeva 1153085450 [vcs-log-graph] refactor: extract build function
GitOrigin-RevId: ece007461841481b7a495b67800fecfd7bbc17d9
2024-03-28 21:36:34 +00:00
Julia Beliaeva e0d855267e [vcs-log-graph] compute correct start layout indexes for the branch heads
Since branch heads are now being used as the start nodes for building graph layout, a head commit might be visited earlier from another head, giving it a layout index different from the currentLayoutIndex value.

This commit avoids the problem altogether by computing layout indexes array for heads after all layout indexes have been calculated.

follow-up: 1cd228ff6107d0ca03d5f3172f9940e0d55d9e4f

GitOrigin-RevId: c01942bad60c09979711769905ac35a43b9c98f0
2024-03-28 21:36:30 +00:00
Artem Aleksyuk 00c776df24 GO-16615: Run with sudo doesn't work with dev server
Probably caused by commit b203c7d1 "IJPL-166 coroutine dump without byte-buddy (final variant #10.1)"

GitOrigin-RevId: b155f7380baafd0050d55338b7f3edeee6bcaa34
2024-03-28 20:47:19 +00:00
Vladimir Krivosheev 475f7c8bd5 IJPL-866 specify proper receiver (otherwise, we can disable a main module instead of sub)
refactoring and unit test will be added later (avoid conflicts)

GitOrigin-RevId: 49039d8e19001f0388b6b2358f7871d8618c421d
2024-03-28 20:32:17 +00:00
Mikhail Mazurkevich 98278fd456 [workspace model] Fix generator test for rider modules
GitOrigin-RevId: f601727d5aa8e6cfcca21279987f0ca04d9b9367
2024-03-28 20:30:40 +00:00
Andrey Lisin 75848fc2de PY-71557 Remove dedicated C-file for building debugger binaries for Python 3.12
GitOrigin-RevId: 37620d019fde1a306d263b8b47b1dae9231218eb
2024-03-28 20:17:04 +00:00
Anton Lobov 53ca65dbf0 [json schema] properly handle nested completions with exotic value separators
GitOrigin-RevId: 485035750a904024fa915c080efaa0fba5e5aa3a
2024-03-28 19:53:28 +00:00