Commit Graph

22433 Commits

Author SHA1 Message Date
Mikhail Pyltsin
cb37003541 [java-inspections] IDEA-357323 Propose case null during adding all cases
GitOrigin-RevId: 6d7ffccc28d64ed0f52db0235c41796d1d81284e
2024-08-09 11:00:42 +00:00
Mikhail Pyltsin
0f5aa949cb [java-inspections] IDEA-357190 Support JEP477 - Remove unnecessary qualification is not suggested when it can be
- check if class is already imported

GitOrigin-RevId: 11a43bf80302194a4f8b34125de2bb741f1f3bac
2024-08-09 11:00:42 +00:00
Bas Leijdekkers
91cff4a4f1 Java: inspection for migration to Markdown documentation comments (IDEA-357191)
GitOrigin-RevId: 94d6c21d713073df58e2f6fb2bbd348a7039b9ce
2024-08-08 20:19:46 +00:00
Yuriy Artamonov
6392989590 [fus] IDEA-356366 Update Library usage statistics for Kotlin
GitOrigin-RevId: b31314060707329bfd747dbed2b7fc17988d24a7
2024-08-07 20:57:21 +00:00
Anton Kozub
51095df061 Changed RE plugin description
GitOrigin-RevId: ee583cc36a20d6622ce78b462438588b57ceef1e
2024-08-06 21:40:48 +00:00
Mikhail Pyltsin
858aaf9898 [java] IDEA-355048 Support binary files (.class) in split mode.
- support kotlin compiled classes

GitOrigin-RevId: 8a1ec87426603d017068bb2f311edb105fa5e977
2024-08-06 20:55:58 +00:00
Mikhail Pyltsin
c60037c8b3 [java] IDEA-355048 Support binary files (.class) in split mode
GitOrigin-RevId: ea7a098ef33476d53dd8bf061810835510885466
2024-08-06 20:55:58 +00:00
Aleksey Dobrynin
24f3b86d83 [java, highlighting, import-module] Check access module names for Module Import Declarations IDEA-356710
IJ-CR-141484

GitOrigin-RevId: aa63518be14907a230b0ca92189df6e552da36c5
2024-08-06 18:46:57 +00:00
Aleksey Dobrynin
2616038ffc [java, import-module] resolve "import module" jep 476 IDEA-355535
IJ-CR-140196

GitOrigin-RevId: 3c445405dbab1dcbb84050ce2353a03a8ce100aa
2024-08-06 14:50:39 +00:00
Bas Leijdekkers
4426c2fc85 Java: create field from parameter with method type parameter type correctly (IDEA-357162)
GitOrigin-RevId: 3a9947fa58b394f0e0b5377fbe75702f3d4b8f6a
2024-08-06 10:48:28 +00:00
Bas Leijdekkers
5c96c794ed Java: fix one more case where "invert if" loses comment (IDEA-252033)
GitOrigin-RevId: 8bba0c15ca98a31a29ffc8a0d46effca9d96d27f
2024-08-06 10:48:28 +00:00
Bas Leijdekkers
e39764dd13 Java: allow "invert if" in more places and cases
GitOrigin-RevId: f3d942d13ed72b7f94e189bb9d155b64c4603a97
2024-08-06 10:48:28 +00:00
Bas Leijdekkers
f2b4d42e14 Java: more pattern variables in "invert if"
GitOrigin-RevId: c86f2d885c2a1f2578bc6b8cc7b8fccbdfcc7e32
2024-08-06 10:48:28 +00:00
Louis Vignier
358e66d154 [ui] Remove useless resizableColumn
IJ-CR-140581

GitOrigin-RevId: 6b397042b47b398f03cab92d6df63c1b21fef78a
2024-08-05 14:18:46 +00:00
Louis Vignier
40193b7c35 [jdk] Introduce JdkVersionDetector.VENDORS
IJ-CR-137124

GitOrigin-RevId: b258a88e27aef01844161a2450f430cad0baa191
2024-08-05 14:18:46 +00:00
Louis Vignier
1d9878695e Revert "[condeInsight] Use ProgressManager to compute isEntryPoint"
This reverts commit 118a95056b7e845b798daa2d494a74a0b7b18c4f.

IJ-CR-141375

GitOrigin-RevId: 3db6c4f33258b203e1e582f13271e362b10500fa
2024-08-05 14:18:46 +00:00
Max Medvedev
50543dd398 IJPL-159610 Enable exit point and break/continue highlighting for Java in dumb mode
GitOrigin-RevId: 2f35b5a943197be4ca5b688924bac473ea85e335
2024-08-04 19:16:04 +00:00
Max Medvedev
625700c0d9 IDEA-357105 MagicConstantInspection must not ignore the current progress while doing heavy lifting
Otherwise, the whole IDE will be blocked for a long time

GitOrigin-RevId: 6fa8c7758708601c5cf86461035f5df60a1665a5
2024-08-03 19:56:00 +00:00
Mikhail Pyltsin
6b7ef5d3e1 [java-intentions] IDEA-357080 Convert switch to if with boolean selector: omit second condition
GitOrigin-RevId: 77851a64e022155488fcc45b2fc15791c61fedce
2024-08-02 22:53:47 +00:00
Maksim Zuev
5bdda130b2 [debugger] IDEA-356958 Use rebuild icon, add EP to adjust
GitOrigin-RevId: 3d4c9009dfe1d6764476bb093305756c19fc77ed
2024-08-02 19:07:22 +00:00
Mikhail Pyltsin
e9fdbf0b00 IJ-CR-141547 [java-inspections] IDEA-356841 Convert to switch expression generates invalid code on line comments
- support comments in the middle

GitOrigin-RevId: a56684193791a8dfc086843756796d0cbd5cf571
2024-08-02 18:19:13 +00:00
Aleksey Dobrynin
ab45ebd22f [java, complete, import-module] enhance code completion ordering: support transitive dependencies and implicit imports
GitOrigin-RevId: 737e01da30f0619ecae83693062e8b22adb5f6f3
2024-08-02 16:06:21 +00:00
Roman Shevchenko
bf641a34ed Cleanup (formatting)
GitOrigin-RevId: bdf9ab9e40406475849fc2d4bd203d38a92f3b21
2024-08-02 14:49:46 +00:00
Roman Shevchenko
2a0924f833 [vfs] converting JRT ClosedFileSystemException to PCE (EA-897553)
GitOrigin-RevId: ddafa4b72ceb678f05c299da974167f3c1e81cc8
2024-08-02 14:49:46 +00:00
Gregory.Shrago
e33abfddfb migrate getData to uiDataSnapshot: java
GitOrigin-RevId: 759993dfe9da87ef7f32232c84bfb1bd122610d7
2024-08-02 01:17:08 +00:00
Konstantin Nisht
fefe6fbe44 Revert "[platform] Do not use VirtualFilePointer in CompilerProjectExtension"
This reverts commit bfe253cd71762b7b2f3b1231e2ffe1e0c1f443fa.

GitOrigin-RevId: e3536c974367e018fee2238292b031a0171571ac
2024-08-01 12:35:09 +00:00
Mikhail Pyltsin
1c6e73ad39 [java-inspections] IDEA-356841 Convert to switch expression generates invalid code on line comments
GitOrigin-RevId: 840ad7d5fe656b7cc443b67df30f60b0bb35b41d
2024-08-01 12:29:33 +00:00
Aleksei.Cherepanov
5705ecc4e4 [JPS] IJPL-105 Enable unified Java/Kotlin IC by default
Also relates: KT-59527, OSIP-160

GitOrigin-RevId: 3252353d6e9b681aadb47ccff69715a8184ebf4b
2024-07-31 21:34:26 +00:00
Aleksey Dobrynin
44e14f0283 [java, highlighting, import-module] Check access module names for Module Import Declarations DEA-356710
GitOrigin-RevId: 819c182488bd0b4aeffb8518373da35aabf311ca
2024-07-31 17:00:00 +00:00
Aleksey Dobrynin
85c104a858 [java, complete, import-module] Check access module names for Module Import Declarations DEA-356710
GitOrigin-RevId: ef96cf46f062068539cc417a3e130172fd4b6132
2024-07-31 17:00:00 +00:00
Tagir Valeev
90543d0e24 [java-inspections] InlineVariableFix: avoid PSI writes after highlighting
Highlighting causes PSI commit and reformatting. It looks like modifying PSI after that may cause problems. Probably we can fix it later in ModCommand API, but for now we can just reorder things.
Fixes IDEA-355992 "Inline variable" quick-fix doesn't work if the variable initializer is on the next line

GitOrigin-RevId: f0a2418ac5618f91291b1f74ad2168d26c612447
2024-07-31 11:41:55 +00:00
Bas Leijdekkers
1bdb332af2 Java: better error recovery on annotation parsing (IDEA-209573)
GitOrigin-RevId: a600121ecbd9fa6338237f0d3802486c7f8a5656
2024-07-30 22:37:25 +00:00
Bas Leijdekkers
539ecb5e94 Java: prevent SOE on deeply nested code blocks
GitOrigin-RevId: 12d62d7c4041df6da72c11ee05f038a802bf25db
2024-07-30 22:37:25 +00:00
Louis Vignier
2b3e137700 [condeInsight] Use ProgressManager to compute isEntryPoint
#IDEA-344858 Fixed

GitOrigin-RevId: 890671d4d2d60772e807eedfe98c713b8a00afae
2024-07-30 19:26:13 +00:00
Vladimir Dolzhenko
90d1ce34b7 [kotlin] Fix rendering parameter info annotations
#KTIJ-29752 Fixed

GitOrigin-RevId: 8d260a57c6baccf18cf7f5dfa1a61f77d01c17ce
2024-07-29 19:29:16 +00:00
Mikhail Pyltsin
b921cf4559 IJ-CR-141087 [java-inspection] IDEA-356474 Support JEP 477: support implicitly imported modules in optimize imports
- refactoring `com.intellij.psi.impl.source.codeStyle.ImportHelper.calculateOnDemandImportConflicts`

GitOrigin-RevId: a3dc84c7451180f65b9858dc7b338eae4b686904
2024-07-29 19:28:02 +00:00
Georgii Ustinov
59fc2e4a19 [Java. Code Formatting] Use only one range for dependant spacing in JavaSpacePropertyProcessor#createSpaceWithLinefeedIfListWrapped
IDEA-165216

GitOrigin-RevId: 78fe6204b0a26f75f9993a17886ff097bcdad5fe
2024-07-29 19:15:53 +00:00
Georgii Ustinov
cf75eec6ff [Java. Code Formatting] Use united range for the creating dependent spaces after '(' for method declarations
IDEA-165216

GitOrigin-RevId: 2e6e426364f2533eee9693d557fa97f99e1d8282
2024-07-29 19:15:53 +00:00
Georgii Ustinov
0aee70350c [Java. Code Formatting] Replace regular indent to smart indent for the method declaration parameters to behave similar to the method call arguments
IDEA-165216

GitOrigin-RevId: 2c3d251d827c947ae3fdea9dddfce660775a01b1
2024-07-29 19:15:52 +00:00
Georgii Ustinov
36b4641db7 [Java. Code Formatting] force parenthesis in method declaration to be dependent on the multiple text ranges
IDEA-165216

GitOrigin-RevId: 6a04e37e1ec6a93798d0dc2b1b3d104cd3963852
2024-07-29 19:15:52 +00:00
Maksim Zuev
bb43d09386 [debugger] IJPL-158332 Hot swap button in a floating toolbar when source changes are detected
GitOrigin-RevId: f9ac6cbaa0ebdb0d7893e3c644b650d4317aef86
2024-07-29 11:21:53 +00:00
Aleksey Dobrynin
bf4e754b12 [java, complete, import-module] Add support for the completion order of the "import module declarations"
GitOrigin-RevId: 395229f6e5ef536219e26fed01c9e6ee953e12e6
2024-07-26 15:50:54 +00:00
Mikhail Pyltsin
67bca974ba IJ-CR-140944 [java-completion] IDEA-356673 Support JEP 477. Incorrect import insertion
- more tests
- getAllImplicitImports is moved to java-api

GitOrigin-RevId: cdce02674d2ac8271881f6f8f0a84d1f9ed93351
2024-07-26 12:44:48 +00:00
Mikhail Pyltsin
d186699847 [java-inspection] IDEA-355916 update implicit<->explicit classes inspections
- tests
- optimize imports
- ReplaceOnDemandImportIntention supports module imports

GitOrigin-RevId: 228135179fc26f44064dd196ae70326fd91fb3ee
2024-07-26 12:44:48 +00:00
Mikhail Pyltsin
7b0eaea1e9 [java-inspection] IDEA-356474 Support JEP 477: support implicitly imported modules in optimize imports
GitOrigin-RevId: d4fb59ccffbf0a51f97b1ba965f2d0d59834940e
2024-07-26 12:44:48 +00:00
Anna Kozlova
ef6be658b3 [kotlin] find usages: override java's overload settings checkbox
^KTIJ-30769 fixed

GitOrigin-RevId: 18b8313243d98c465ee7157266fd9315ff4bcbc3
2024-07-26 08:34:11 +00:00
Aleksey Dobrynin
013eb83aa8 [java, complete, import-module] Complete the name of the current module for Module Import Declarations IDEA-355531
GitOrigin-RevId: c3eb0b36ebb8b221d6484ee4fd26927c19571464
2024-07-25 17:30:26 +00:00
Mikhail Pyltsin
8f3e75e7db [java-inspections] IDEA-356672 Support JEP 477. Incorrect intentions and actions with implicit imports
- improve ImplicitImportChecker to support modules
- check conflict for modules
- new method `PsiImportModuleStatement.findImportedPackage` is added

GitOrigin-RevId: 0d0f61916bdda17b8c9d9146a13aa8d6d0876bb1
2024-07-25 09:33:07 +00:00
Vlad Koshkin
eee0379f5b [kotlin] k2: hiding kotlin script modules with registry flag
^KTIJ-30706 Fixed

GitOrigin-RevId: ad1a2ad3e7bc4bde7ce9fdc115d8b919cbba528d
2024-07-24 23:46:10 +00:00
Louis Vignier
25ad74d2fe [jdk] Use @return tag in kdoc
IJ-CR-140587

GitOrigin-RevId: 3b8f73569e7afbdbffdf80005da1c5be870d1232
2024-07-24 17:15:06 +00:00