Commit Graph

4017 Commits

Author SHA1 Message Date
Vladimir Krivosheev
7eb33862d7 IJPL-300 Do not use AllIcons class during ActionManager instantiation
GitOrigin-RevId: 3f6590989a50044398ef0f4414285b20444257f2
2023-10-20 20:08:32 +00:00
Tagir Valeev
51854f80b3 "Method can be static" fix massive application
GitOrigin-RevId: ed296b85922a6814d5c6057b5cbc720f0c546e41
2023-10-20 19:12:56 +00:00
Vladimir Krivosheev
8520c6da9c IJPL-90 cleanup - run activity is not called for a default project
GitOrigin-RevId: 808aac3cac7e803eb6cdc8d69c196fc75da71d46
2023-10-19 10:54:36 +00:00
Daniil Ovchinnikov
c02e719798 IJPL-274 migrate tasks.kt functions' usages
GitOrigin-RevId: d11b1726a501df22853efabc37b3275e62e392ed
2023-10-18 23:33:12 +00:00
Alexey Kudravtsev
8cc9c26729 IDEA-321013 Outdated HighlightInfo's should be removed as soon as the relevant annotator or inspection finishes
- Rework inspection execution order. Run several inspection tools on all suitable PSI elements in parallel. As soon as the inspection tool finishes all its elements, analyze the HighlightInfo delta and apply it immediately (see HighlightInfoUpdater). Thus, the inspection tool doesn't interfere with the other inspection tool, allowing fast tools to apply infos sooner.
- Increase parallelism of tools for visible area, tools for invisible area, tools for injected fragments, allowing them all to execute in parallel, thus reducing the FJP rampup/rampdown latency (JobLauncherImpl.processQueueAsync() FTW).
- Implement LIP-wide duplicate info elimination, now that all tools are independent. Fix corresponding tests messing with expected duplicate problems.
- Rework file-level highlights. They are stored now as a regular HighlightInfo/RangeHighlighter with textRange=entire file.
- HighlightInfo now has `toolId` field for discerning infos generated by different inspection tools/annotators/highlight visitors.

GitOrigin-RevId: bc85a1858754dec04cec74a79909f009681bda98
2023-10-18 20:30:33 +00:00
Andrey Cherkasov
094b9fc6c1 The "Simplifiable service retrieving" inspection: cleanup
Merge-request: IJ-MR-116656
Merged-by: Andrey Cherkasov <Andrey.Cherkasov@jetbrains.com>

GitOrigin-RevId: d42dd51ec49b4176265baf2bb69df04a964418a3
2023-10-17 13:36:11 +00:00
Dmitry Kichinsky
b5b1ce813b [maven] IDEA-334703 retain "Unpack nested archives" setting during reimport
GitOrigin-RevId: c6485f211497a8ed7c0711e84fd7d5318760be24
2023-10-17 10:54:55 +00:00
Yann Cébron
62d8759f01 [java] annotate Topic level
GitOrigin-RevId: b64ccde9cf72f39247c9450c4d80a3daac1a1b9f
2023-10-16 19:42:24 +00:00
Mikhail Pyltsin
87e2d5c58f [java-execution] IDEA-327658 Freeze due to non-cancelable RA in ShowAffectedTestsAction.findMethods.
- do not run until it calls explicitly

GitOrigin-RevId: 17ed84ad5ed3d675898a50fea547c21c265270b9
2023-10-12 17:01:04 +00:00
Vladimir Krivosheev
f0f3ce047d IJPL-227 use Caffeine for name cache in BuildManager
GitOrigin-RevId: b15792973eea94c0ef60e316de7137b7466edbad
2023-10-12 11:04:29 +00:00
Andrey Cherkasov
46e2dfa159 The "Mismatch between light service level and its constructor" inspection: cleanup
GitOrigin-RevId: 2a6e7bcc32cb11f9fcdfa77c717aac6183182fb5
2023-10-12 03:02:23 +00:00
Nikolay Chashnikov
97e876d874 cleanup: reorder import statements for workspace model classes (IDEA-320676)
Workspace model classes were moved to different packages, but the order of import statements wasn't changed, so we have many files with unsorted imports. They are often become sorted when other changes are made in these files, and such unrelated modifications complicate reviewing and may cause merge conflicts.

GitOrigin-RevId: 827744c328ddb2ac3d08ce0bcb8f8e1bb30ac4e9
2023-10-06 11:31:33 +00:00
Mikhail Pyltsin
2dd32d9d08 Revert "[java-execution] IDEA-327658 Freeze due to non-cancelable RA in ShowAffectedTestsAction.findMethods."
This reverts commit 79b7ec3902cd374dd8b2e16196154df15752d36d.

GitOrigin-RevId: daa7dd27676e582bcfcfd45987cc25e4a28a6fcb
2023-10-05 22:28:46 +00:00
Vladislav Rassokhin
3a996be4e1 [jps caches] IDEA-332915 Fetching Space token should not block build and prevent IDE from closing when offline
GitOrigin-RevId: 19e7e002fa12e33ca396ac466fcc95fac56caab1
2023-10-02 20:32:39 +00:00
Yuriy Artamonov
96a47a3106 [fus] IDEA-324109 Project usage collectors do not need companion object
GitOrigin-RevId: fbc4dfdb3961d57ad8ecedc496474833c7b2991d
2023-09-30 22:22:30 +00:00
Nikolay Chashnikov
d67bdd5b72 [java] API cleanup: remove unused deprecated API (IDEA-322162)
GitOrigin-RevId: 8b8a875126194efe99989d51127072dd8e503d6e
2023-09-29 09:21:34 +00:00
Eugene Zhuravlev
0e91adbf2e review followup, readAction-> nonBlocking readAction (IDEA-307606)
GitOrigin-RevId: d5ba0400dc1446a93283a2e56e9934fe1cf19a20
2023-09-27 17:17:13 +00:00
Eugene Zhuravlev
53c66dc845 review followup, additional checks (IDEA-307606))
GitOrigin-RevId: 079732a57e62f8163439d8b04993f4963131e52a
2023-09-27 09:03:37 +00:00
Eugene Zhuravlev
44c3dddac8 perform root discovery in background (IDEA-307606)
GitOrigin-RevId: 58e02bb27faec9dfa32be3cb4e81fd2d0fa5406e
2023-09-26 14:28:27 +00:00
Aleksey Pivovarov
f6cb4aa87a IDEA-333175 vcs: fix threading in UnloadedModulesCompilationCheckinHandler
GitOrigin-RevId: a71fa3024a3cef89d95f0c08b84eec9c3a13d284
2023-09-25 14:40:06 +00:00
Aleksey Pivovarov
54f782f716 IDEA-333175 vcs: fix threading in UnloadedModulesCompilationCheckinHandler
GitOrigin-RevId: af2df5289bf59e5eec1c08f13557856d454ea955
2023-09-25 12:55:14 +00:00
Stepan Bagritsevich
4907beb57c [Workspace Model] IDEA-300053 Regenerate metadata storage impl with new codegen-impl version (2.3.3)
ListOf changed to arrayListOf, setOf to hashSetOf, mapOf to hashMapOf

GitOrigin-RevId: 267067923a1126d086dded311be7b2f833d08841
2023-09-25 12:12:29 +00:00
Daniil Ovchinnikov
c973850ddc IJPL-255 replace Application.assertIsDispatchThread -> ThreadingAssertions.assertEventDispatchThread
GitOrigin-RevId: da80a0648ffce76e93f35f72afc93334b21fe9a2
2023-09-22 00:08:26 +00:00
Stepan Bagritsevich
b7e00c5e35 [Workspace Model] IDEA-300053 Fix regex for entity source and symbolicId implementations
GitOrigin-RevId: aa6aab0ce58dbf11bb9ba06e3c8fe4157646889f
2023-09-21 07:34:11 +00:00
Mikhail Pyltsin
dc24b17a29 [java-execution] IDEA-327658 Freeze due to non-cancelable RA in ShowAffectedTestsAction.findMethods.
- not run until it calls explicitly

GitOrigin-RevId: 79b7ec3902cd374dd8b2e16196154df15752d36d
2023-09-15 15:07:08 +00:00
Alex Plate
a601226c12 [Workspace Model] Store an instance of the snapshot in the builder
In this way:
- The collectChanges function, which expects an original snapshot as an argument, won't need an argument at all. And with this, we'll be sure that the snapshot is always the correct one.
- Also the method hasSameEntities(original: EntityStorage) won't need an argument as well.
- With the new API, we'll have a cache that is located right in the snapshot. To make this cache efficient, we'll need to pass it between snapshots. With storing the snapshot in builder, we'll be able to pass the cache from the original snapshot to the new one for operations like `snapshot.toBuilder().toSnapshot()`.

GitOrigin-RevId: fc0d21654eef9d3c5ce3bb51a302e2ad816703c1
2023-09-12 11:37:45 +00:00
Nikolay Chashnikov
ab9274d78a cleanup: remove some mentions of Upsource in comments and limit visibility where possible
GitOrigin-RevId: a8fab57ed18782d1691531d9ecce9fee30f0f432
2023-09-11 18:55:15 +00:00
Nikolay Chashnikov
dc165f9be8 cleanup: use ModuleListener.TOPIC instead of deprecated ProjectTopics.MODULES (IDEA-331726)
GitOrigin-RevId: 4ced7d2d9eff4fa2e3b2d232b60d7c7fa343df0a
2023-09-06 11:12:05 +00:00
Nikolay Chashnikov
f9a1959a64 cleanup: use ModuleRootListener.TOPIC instead of deprecated ProjectTopics.PROJECT_ROOTS (IDEA-331726)
GitOrigin-RevId: cb899d0b2e7a30e0e6751534e700d5de7506ab7e
2023-09-06 11:11:55 +00:00
Nikolay Chashnikov
1042c5a0a2 cleanup: remove author from TODO comments and remove some obsolete and unclear TODOs
Mentioning an author of a comment makes little sense since it can be easily found by 'Annotate' action. Also, it may give a false impression that only the author may address the problem described in the comment.

GitOrigin-RevId: 2aa52762b109f0d2f1a6ec6f7bf53f24b39c0997
2023-09-06 11:11:13 +00:00
Alex Plate
b458751605 [Workspace Model] Make VersionedEntityStorageOnSnapshot type safe
GitOrigin-RevId: bb5fe16e3d8233bf1e538988e6152d36bb72e2ae
2023-08-31 14:52:49 +00:00
Nikolay Chashnikov
9152cce524 [java] refactoring: introduce a method in AnnotationProcessorsPanel.MyModuleNode and reuse it
GitOrigin-RevId: 88906c93cb5d54db2dc6f12a6ee43a389c5f663e
2023-08-31 12:00:45 +00:00
Nikolay Chashnikov
59670fbfa5 [java] support speed search in 'Annotation Processors' tree
GitOrigin-RevId: 61e5f29feb78ccd192a8508833f72b9a7f0e06b3
2023-08-30 12:13:52 +00:00
Vladimir Krivosheev
97661aa3c0 JpsMacroExpander - avoid using of FileUtil (reduce classloading)
GitOrigin-RevId: c063f7d6dca475033b996770a6f83d1dbeb48590
2023-08-29 19:33:12 +00:00
Alex Plate
05de50753e [Workspace Model] [IDEA-318790] Use the new API of workspace model caches for the ArtifactVirtualFileListener
GitOrigin-RevId: 16b0e23ef2e4b4b6c898f2c9548267a2ee072987
2023-08-29 16:03:19 +00:00
Alex Plate
ec978b4392 [Workspace Model] Write more tests for changes in dirCopy packaging element of artifacts
In preparation to migration of ArtifactListener to IDEA-318790

GitOrigin-RevId: fee4a31dfe6a4aa8938a114afe9095aa7fabd06c
2023-08-29 16:03:17 +00:00
Nikolay Chashnikov
fe5ba7eff9 [artifacts] show ID of custom property provider in "Unknown artifact properties" error (IDEA-330402)
GitOrigin-RevId: e7400827ee52f5f27cb2502278cab29afae59eb5
2023-08-22 09:54:31 +00:00
Vladimir Krivosheev
5418192cb2 IDEA-328187 lazy icon
GitOrigin-RevId: 800bce1ba40043978c5059bc01bfe76daf4fa1d3
2023-08-15 09:33:35 +00:00
Dmitry Batkovich
ef5c4b3adb compiler ref index: do not show progress indicator on compiler reference index initialization IDEA-323288
GitOrigin-RevId: 7876ded9462c8c7ea21cedb0b77f532f566ebb0c
2023-08-09 07:46:45 +00:00
Eugene Zhuravlev
18275c4b77 use language level corresponding to build's runtime JDK to avoid irrelevant compiler's compatibility warnings (IDEA-327267)
GitOrigin-RevId: a0cb9b18f31d272e4bf151a6b2517abfe3f4ee60
2023-08-03 15:03:15 +00:00
Vladislav Rassokhin
8dc99d8df1 [jps caches] Replace "JetBrains Internal Authentication" with "Space" plugin (IJI-1252)
GitOrigin-RevId: 2f77b3037b862a996c0febf43410e94eba00f790
2023-07-31 18:02:56 +00:00
Vladislav Rassokhin
cf3dd94f78 [jps caches] Fix "Don't use Project as Disposable" in JpsServerAuthExtension#checkAuthenticated usages
GitOrigin-RevId: ab3193e92a13966e8abe5bc29d9d03e0120708df
2023-07-31 18:02:56 +00:00
Eugene Zhuravlev
f6e67ac992 add checkCancelled calls to the up-to-date mode build (IDEA-326194)
GitOrigin-RevId: 11498c523b702306affa32d3bfb66c398b130123
2023-07-24 20:29:26 +00:00
Alexey Kudravtsev
5d19cf1058 encapsulate AnnotationSessionImpl creation to make it possible to add more info there
GitOrigin-RevId: 02b20264bcc3d4a96ca560440730235ea98c772d
2023-07-20 12:11:34 +00:00
Alex Plate
4e65642e28 [Workspace Model] [IDEA-316331] Add checkCancelled to calculation of packaging element bridges
This should mitigate the state where the read action can't be cancelled by write action.

GitOrigin-RevId: a7064f1f11eb29cdaaf113f96b117ccaf79c4891
2023-07-20 10:15:26 +00:00
Alexey Kudravtsev
e1f84b5ba0 encapsulate internals of AnnotationSession to be able to change the impl
GitOrigin-RevId: 5f5cf9d508a33748b6c60748a5a23575a333bfe2
2023-07-19 20:08:33 +00:00
Mikhail Mazurkevich
4521b53fed [jps caches] Add more logging
GitOrigin-RevId: 6cbfcd1deaace6497ff79cf736da18ccc2b5fa3c
2023-07-13 20:18:31 +00:00
Nikolay Chashnikov
de2cfc9b36 [external system] remove unused code which causes UI freezes (IDEA-324651)
It looks like 'getExternalDependenciesList' wasn't used since 45ad15bc36d29ca1, so the relevant code can be safely removed. This will fix UI freezes caused by calling ArtifactUtil.processPackagingElements on EDT.

GitOrigin-RevId: 04ab3c9e643f33ffa7aa03aa5906653c8a1b8718
2023-07-07 19:56:38 +00:00
Tagir Valeev
0ffaede2b9 [java-inspections] ClassCanBeRecordInspection: simplify options; convert to OptPane
1. Radiobuttons -> checkbox
2. Remove annotation class selector, keep only textual input field (decrease of usability but people would rarely type a class name explicitly there, as we have a quick-fix)
Part of IDEA-313775 Process remaining inspections that have swing options panel

GitOrigin-RevId: f481bf923209cecb668e3b41370b52af029b1ed6
2023-07-07 15:57:36 +00:00
Alex Plate
fd353843d1 [Workspace Model] [IDEA-324533] Clean up usages of workspace model listener that may lead to control-flow issues
If we create a subscription between before and after events, this may cause issues in code logic. Also, such issues will be really hard to debug.
I've reviewed the listeners of the workspace model in order to get rid of such problem.
See IDEA-324532 for details.

GitOrigin-RevId: c5b8c12691fa930d3f5f85af32052e0a22984d73
2023-07-07 10:01:18 +00:00