Commit Graph

1920 Commits

Author SHA1 Message Date
Louis Vignier
ac322938d0 [jdk] Add ToolVersionsConfigurationProvider to monitor asdf .tool-versions
#IDEA-355295 Fixed

GitOrigin-RevId: 8373fa2b75e12171208c7af71af9234b31f97e13
2024-07-19 14:33:47 +00:00
Louis Vignier
7ccd3af88d [jdk] Introduce ExternalJavaConfigurationService and migrate SdkmanrcWatcher
#IDEA-355295

GitOrigin-RevId: bbcefd977b5d88e3a8b0d137b1b5cfda6eb3050a
2024-07-19 14:33:47 +00:00
Georgii Ustinov
ec7cc10b05 [Java. Code Formatting] Rename ui names related to blank lines near fields to 'Before' instead of 'Around'
IDEA-110857

GitOrigin-RevId: 660836d90fa3ea06c5fb006b9ce14f59c55155ff
2024-07-16 12:40:48 +00:00
Bas Leijdekkers
d3f94f2739 Java: test qualifiers shown in ui (IJ-CR-138368)
for "Convert to instance method" refactoring

GitOrigin-RevId: a4bb1ef732d71359e52ed778f9ad36c776533e47
2024-07-10 15:32:54 +00:00
Tagir Valeev
38df966e10 [java-inspections] RenameToIgnoredFix: cancel gracefully in case of concurrent modification
Fixes EA-1328866 - NA: PsiReferenceExpressionImpl.bindToElement

GitOrigin-RevId: 1bb87c6d4054c1c775f2bfe02becb6fc40d0db6c
2024-07-10 11:21:11 +00:00
Louis Vignier
f8b5cf39df [ui] Update UI for the change signature dialog
#IJPL-157817

GitOrigin-RevId: 7d37adfc97449591d15445910e93595c22239c99
2024-07-05 17:16:50 +00:00
Nikolay Chashnikov
902b1bb444 [kotlin] fix truncated message in "Generate equals/hashCode" (KTIJ-30437)
GitOrigin-RevId: d59485cedb54dde12ec21f971aebe9e9e08d1f40
2024-07-05 16:59:47 +00:00
Georgii Ustinov
93b6c3ccc2 [Java. Code Formatting] Split option to add blank lines for fields with/without annotations
IDEA-110857

GitOrigin-RevId: 6ee23199e686c649439833df1223a12494be9d00
2024-07-04 19:56:48 +00:00
Tagir Valeev
e1751e5f4d [java-refactoring] ConvertToInstanceMethodHandler: separate targetQualifiers computation logic from UI
GitOrigin-RevId: 4f0e3c3af486085920b3f3883935910cb9dd280e
2024-07-03 21:09:22 +00:00
Bas Leijdekkers
a17097bea4 Java: no "this/new ClassName()" option for enums and implicit classes (IDEA-330992)
for "Convert to Instance Method" refactoring

GitOrigin-RevId: a353f19d817616c5445da3f7c60aa0a2f46ec155
2024-06-28 17:14:56 +00:00
Bas Leijdekkers
774c6c6d42 Java: fix "Variable assigned to itself" inspection quick-fix operator assignment bug (IDEA-306674)
GitOrigin-RevId: 92f5ab3b782cd0a2e6af8f83ff80de64f000c3bf
2024-06-21 09:13:06 +00:00
Tagir Valeev
be91af43bb [surrounder] Surrounder.surroundElements: remove declared unchecked exception (unnecessary and rarely thrown anyway)
GitOrigin-RevId: c8122acc2c3ee0d2bf78c70efb5525c54020fe70
2024-06-20 12:13:06 +00:00
Mikhail Mazurkevich
a3ddcc63a5 [workspace model] IJPL-797 intellij.platform.projectModel review internal API (workspaceModel package)
GitOrigin-RevId: f50f4cea39cfefecf13832d6ef468668ad0f7d60
2024-06-18 15:57:31 +00:00
Mikhail Pyltsin
e42c3ee1e4 IJ-MR-136429 [java-generation] IDEA-344399 generate annotation based on type_use option
- fix message
- fix comparator

GitOrigin-RevId: 842fbf9e29150159ae92a47eddb84eb9a8d7288a
2024-06-17 21:14:57 +00:00
Mikhail Pyltsin
9bf2727703 [java-generation] IJ-MR-136429 IDEA-344399 generate annotation based on type_use option
- fix non-standard-root-packages
- introduce project descriptors

GitOrigin-RevId: 41db7240e29fbfed81957df2d68e2de29c573ef2
2024-06-17 21:14:57 +00:00
Mikhail Pyltsin
2023228d8c [java-generation] IDEA-344399 generate annotation based on type_use option
- extracted new option
- reuse this option in MissortedModifiersInspection
- override uses this option too

GitOrigin-RevId: 39f3f72991240753c86c7f80df865728aa9743ad
2024-06-17 21:14:57 +00:00
Alexander Lobas
89d58ee436 IJPL-150231 Move icon mappings from json to icon generator
GitOrigin-RevId: 4d4576fc7eeb92ec43c36abec2d62d271b45d9a4
2024-06-15 23:19:46 +00:00
Yuriy Artamonov
b9416a8db9 [java] IJPL-34876 Declare icons and texts for ParseSdkmanrcAction declaratively
GitOrigin-RevId: 16e5d519d8be7f64fd5f286580d70c96c91d72de
2024-06-15 21:01:31 +00:00
Vladimir Krivosheev
69fe677cde IJPL-796 refactor JavaFileIconPatcher
GitOrigin-RevId: c15082085eda3160d89a94424d4303c06d71ed8e
2024-06-15 19:18:53 +00:00
Mikhail Pyltsin
e8093a742f [java-logging] IDEA-354689 freezing with too long name
GitOrigin-RevId: d4629b1008ac0dcfeb256b3f7dd9ef733a129ff8
2024-06-14 12:59:18 +00:00
Georgii Ustinov
3ae38b4cff [Java. Code Formatting] Fix typo for whitespace option "Inside block braces when body is presented"
IDEA-270369

GitOrigin-RevId: cce77ef8ec80c45622f6707c9671ac5a774763f8
2024-06-10 10:10:41 +00:00
Roman Shevchenko
dee7fe2af0 [project] direct dependencies to kotlin-stdlib and intellij.platform.util.ex
(instead of reexporting via `intellij.platform.remote.core`)

GitOrigin-RevId: 9d412fd96ef69ed84ab4d414e760dc8c447a6310
2024-06-09 17:37:07 +00:00
Georgii Ustinov
bb9759a556 [Java. Code Formatting] Add support to configure spaces for simple nonempty blocks when the "Spaces within blocks" is disabled
IDEA-270369

GitOrigin-RevId: 19283bcf734658323659abe7f14e5c38fdc9fec3
2024-06-07 17:47:43 +00:00
Bas Leijdekkers
4777c9dd1b new "String template can be concatenated string" inspection (IDEA-349463)
GitOrigin-RevId: 84871569e435e1f1cd5c06814781739baf977cae
2024-06-07 14:19:07 +00:00
Tagir Valeev
3b688121d2 [java] IDEA-353981 'Rename to ignored' fix: ModCommand, allow 'fix all' action
GitOrigin-RevId: 83676caca1d4a0f6308d649efd92d6f58845b57e
2024-05-23 19:00:36 +00:00
Bas Leijdekkers
ccb7a28e9f [java] small inspection descriptor simplification
GitOrigin-RevId: d66de66e71fed85b5d1f774c504d74a3963476bd
2024-05-23 12:46:43 +00:00
Eugene Zhuravlev
4e442deca3 introduce "unified IC implementation" advanced compiler setting to enable dep-graph based IC
GitOrigin-RevId: 799fd4aefb2ba35db1ac3addfb1724f81d5d6c58
2024-05-22 20:44:32 +00:00
Aleksey Dobrynin
ccf644aaed [java, completion] use default tail text for a jigsaw completion IDEA-352245
GitOrigin-RevId: 1d7753860c413c92d697dc106f4d011022c861ce
2024-05-14 15:34:39 +00:00
Roman Shevchenko
ac742921c5 Cleanup (typos; formatting)
GitOrigin-RevId: 9733aeebbae11f645b17261f25692b92557ccd3a
2024-05-12 20:30:07 +00:00
Tagir Valeev
0ea0eadc51 [mod-commands] IJPL-149593 ModCommand-based Surrounder API
GitOrigin-RevId: 56b1bc727db4e686afc6363326c1b079030da414
2024-05-12 17:34:00 +00:00
Yuriy Artamonov
84b8e63900 [frameworks] IJPL-148944 Speed-up IconProvider implementations
GitOrigin-RevId: 26939b80f4996fc23605dbf7cf9d944e8681e95c
2024-05-05 17:43:32 +00:00
Louis Vignier
a33d7253a0 [jdk] Add a checkbox in the settings to disable JDK updates
#IDEA-330415 Fixed

GitOrigin-RevId: f669e4e59832816fe5fb7d9107ca24dd03ed60b0
2024-04-26 19:56:08 +00:00
Nikolay Chashnikov
b966d0247f [xml dom] cleanup: mark 'ConvertContext' parameters in Converter interface and its implementations as @NotNull
Actually, 'null' value is never passed, but explicit annotation simplifies writing code in its implementations, especially in Kotlin code.

GitOrigin-RevId: 8059717d7259eb50a3ef68f2334b5f08c7e81b06
2024-04-24 11:44:31 +00:00
Tagir Valeev
11097530d4 [java-intentions] Remove outdated MoveMemberIntoClassFix.java
Superseded by MoveMemberIntoClassFix.java

GitOrigin-RevId: cc3a29aa7089f91ff5c13a61e722c0ad3843985e
2024-04-22 19:34:03 +00:00
Roman Shevchenko
76aabae33e Cleanup (typos; formatting)
GitOrigin-RevId: f88e1dbc46a5cb25603323196a4d422ec475489d
2024-04-19 22:18:14 +00:00
Nikolay Chashnikov
98c7ce3b93 [workspace model] provide API to find files under Java resource roots by relative path
This is needed for IJPL-115195.

GitOrigin-RevId: e2cd66e9b2b94748d6014aa931925ec88d5a7ee3
2024-04-18 09:49:19 +00:00
Tagir Valeev
43b02d2a23 [java-refactoring] Support parameters on conflict detection
GitOrigin-RevId: 308c1da92a04f6212c0e6bb764bdf6d940192b2d
2024-04-11 14:46:35 +00:00
Tagir Valeev
ac165fab2d [java-refactoring] Separate description for pattern variable; tests for conflicts
GitOrigin-RevId: 8609f4658c1ceb0575372102b55128e098000dc6
2024-04-09 10:29:09 +00:00
Tagir Valeev
7cf578f646 [java] Cosmetic changes in feature-based language level support (IDEA-345517)
GitOrigin-RevId: 8fe21e83b6cee29955d5be5d45744d3db18ea99d
2024-04-03 19:43:15 +00:00
Bas Leijdekkers
9414c123b8 [java] create annotation value() method from usage (IDEA-350345)
GitOrigin-RevId: 3596e1f35ce3f603789c69f90b28aacaf448866a
2024-04-01 10:52:18 +00:00
Alexey Belkov
c0c2bd301b Proofreading: replace "missed" with "missing" in messages
https://english.stackexchange.com/questions/142544/is-missing-vs-is-missed

"Missing" should be used in the "absent" sense.

GitOrigin-RevId: e3e6ff4907dfb5bda98144919021c8b2c4dd5940
2024-03-28 11:44:04 +00:00
Louis Vignier
9b9f155f70 [java] Warn on JDK/OS arch mismatch when building the project
- Sends a sticky balloon notification on the first build with a JDK every session in case of arch mismatch (shown again after changing JDK)
- New checkbox in Build | Compiler | Java Compiler to disable warnings

#IDEA-343661 Fixed

GitOrigin-RevId: ac9b36b05403ac38acc7a55944850608f86d4e59
2024-03-26 18:18:48 +00:00
Kirill Likhodedov
ba0d2499cd internal-tools: move the InvalidCompilationListener to the internal tools
There is no demand for the feature in the Java plugin at the moment. At the same time, we'd like to extend it by some internal capabilities like reporting to Slack, which is more convenient to do when the whole feature is located in a single module.

GitOrigin-RevId: 0249858bb6824a3cab4e416b9ebc2eb83ba295ae
2024-03-18 13:17:48 +00:00
Tagir Valeev
193b2cb477 [java-inspections] Experimental ModCommand-based DeletePrivateMethodFix for unused inspection
GitOrigin-RevId: efd9306505048695f1aa1de1851383e170b0c1ca
2024-03-12 16:55:18 +00:00
Aleksey Dobrynin
59caea7b12 Revert " [java, highlighting] add standard "jigsaw" modules from the user's JDK for non-modular projects IDEA-259485"
This reverts commit 8e172c5f75f1d0840fbd48206c4e4708f47084fc.

GitOrigin-RevId: 01871c48dca312f03d9b97a22ecf3602b7714613
2024-03-11 17:59:22 +00:00
Aleksey Dobrynin
1693569519 [java, highlighting] add standard "jigsaw" modules from the user's JDK for non-modular projects IDEA-259485
GitOrigin-RevId: c006ccb6680010eed93cf956befcfdcebaa7551b
2024-03-08 18:49:36 +00:00
Bas Leijdekkers
29d7aea7d4 [java] better message when trying to extract constant of variable accessed for writing
GitOrigin-RevId: deb515ab12422a30908578f9cdb367c902354942
2024-03-06 19:03:19 +00:00
Bas Leijdekkers
bf6fdd2607 [java] avoid some duplicate properties
GitOrigin-RevId: 7fa2f2f584d1b59c475d372ed5f0ca8f9969ee3c
2024-03-06 19:03:16 +00:00
Bas Leijdekkers
6583f8ee65 [java] disallow extracting super expression (IDEA-340915)
GitOrigin-RevId: cb698e271e04767dead0a72d7a70cb3a537af614
2024-03-06 19:03:13 +00:00
Georgii Ustinov
5168d264d7 [Java. Logging] Replace display name for logger variable and align it with the preferred logger combobox
IDEA-347382

GitOrigin-RevId: dec1fff935dd623808176ecf0bce37a47b2c4f37
2024-03-04 09:04:37 +02:00