Commit Graph

22409 Commits

Author SHA1 Message Date
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
Aleksey Dobrynin
9f9f6e0527 [java, complete, import-module] Complete module names for Module Import Declarations IDEA-355531
GitOrigin-RevId: 6cf4de84d101370d001fee581474fcd687a5ecc3
2024-07-23 22:25:57 +00:00
Aleksey Dobrynin
e927f5ac3e [java, highlighting, import-module] Support Feature level check for Module Import Declarations IDEA-355536
GitOrigin-RevId: 36dcbb509e788a3243f93a52c83cd24ae0dd6985
2024-07-23 16:19:59 +00:00
Dmitry Krasilschikov
668830abec IJPL-158158 Get rid of project usage in UsageContextPanel: backward compatibility and avoiding project leaking
GitOrigin-RevId: 7b552990f678655f35daaa295e40762837127c89
2024-07-23 13:16:22 +00:00
Anna Kozlova
daca89d7a0 [kotlin] k2: port generate equals & hash code
- add pluggable velocity templates

^KTIJ-23439 fixed
^KTIJ-14628 fixed

GitOrigin-RevId: 2f80b96d87572222e57e4c2d99651c9f61a582ba
2024-07-22 22:19:56 +00:00
Konstantin Nisht
85372468c3 [platform] Do not use VirtualFilePointer in CompilerProjectExtension
Access to `VirtualFilePointer`s requires read action, which is undesirable when we are using it from the service side.

GitOrigin-RevId: bfe253cd71762b7b2f3b1231e2ffe1e0c1f443fa
2024-07-22 12:32:52 +00:00
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
Louis Vignier
4b6a424f1c [jdk] Move JDK services to java.impl
GitOrigin-RevId: fd7096d0fad3a143f368e5c3197bdec034a11643
2024-07-19 14:33:47 +00:00
Aleksey Dobrynin
0a0e345835 [java, import-module] Refactor import statement hierarchy IDEA-353091
IJ-CR-139321

GitOrigin-RevId: f5a2188b18afad7cb2912d3ff282ef9929f20ca6
2024-07-19 12:20:22 +00:00
Mikhail Pyltsin
01b39de56a [java-highlighting] IJ-CR-140387 IDEA-356470 Support jep 455. Generate true and false cases for boolean selector
- support constants

GitOrigin-RevId: ff51020da5086de2e59439647588e8b5c4ba4c85
2024-07-19 11:56:23 +00:00
Mikhail Pyltsin
616898e4c9 [java-completion] IJ-CR-140361 IDEA-356471 Completion with 'true', 'false' in switch.
- support constant values

GitOrigin-RevId: f24ee223b15a2f43ed7cee31f2601ff04071db42
2024-07-19 11:56:23 +00:00
Mikhail Pyltsin
0273a7bcdb [java] IJ-CR-140268 IDEA-356446 Support module imports
- return `getAllImportStatements`
- fix naming

GitOrigin-RevId: fcb975ca20bb3ea2c05c3e1491f1e10b4b6fcb06
2024-07-18 20:11:33 +00:00
Mikhail Pyltsin
0b30038602 [java-highlighting] IDEA-356470 Support jep 455. Generate true and false cases for boolean selector
GitOrigin-RevId: fbd879f172639f3db1b0d9c12f98fcb3868fa1a9
2024-07-18 20:11:33 +00:00
Mikhail Pyltsin
304cdfc050 [java-completion] IDEA-356471 Completion with 'true', 'false' in switch.
GitOrigin-RevId: da5a474eb9318d9ec864bb5ca15a6936e9a6d459
2024-07-18 15:08:17 +00:00
Alexey Kudravtsev
2f2cbbe1b1 encapsulate LocalInspectionPass
GitOrigin-RevId: f8a8e38cdf11b79a1538e2a1d794676f153937b3
2024-07-18 15:07:20 +00:00
Tagir Valeev
097332e117 [java-completion] IDEA-356400 Join lines adds \n outside text block literal
GitOrigin-RevId: 8afe6a733da77bb78e42feec646437af62400d23
2024-07-18 14:59:48 +00:00
Mikhail Pyltsin
d0c8d95e30 [java] IDEA-356446 Support module imports
- Support keyword completion

GitOrigin-RevId: 10dcdc049838efa601e6bf0bbaf180ab4a8556de
2024-07-17 18:18:57 +00:00
Mikhail Pyltsin
8ce06c83bb [java-inspection] IJ-CR-135317 IDEA-352587 Support JEP 455: Improve conversion from if to switch
- fix naming
- add more tests
- check cases when variables can be assigned
- track primitive variables when new cases are created

GitOrigin-RevId: 84a77676a627cc0fffce8e7219daa2b1fd13949d
2024-07-17 18:18:57 +00:00
Tagir Valeev
3d043f610a [java-completion] JavaMethodReferenceElement: avoid slow-operation during rendering
GitOrigin-RevId: 447a44930da6433b31910f0f8ec76794751fb051
2024-07-17 14:41:06 +00:00
Aleksey Dobrynin
c96bc2d64f [java, import-module] resolve "import module" jep 476 IDEA-355535
GitOrigin-RevId: 4a4ee8cfafdba657d062317d3e014061af69a3e4
2024-07-17 12:27:11 +00:00
Georgii Ustinov
3f0203a8ea [Java. Code Formatting] Remove unnecessary fields in the java example file for blank lines settings
IDEA-110857

GitOrigin-RevId: 7aff7616d7485a1e1813e52bae65abc4d9220359
2024-07-17 08:32:53 +00:00
Yann Cébron
6e1285e760 plugin descriptors: remove obsolete suppression comments for 'PluginXmlValidity' inspection
GitOrigin-RevId: 25a17cf82be4c35d4e12472e392aea15b55ea105
2024-07-16 18:55:00 +00:00
Tagir Valeev
2c766e6df0 [java-inspections] TrivialFunctionalExpressionUsage: do not report for any parent statement
Also: report any lambda inside parent return statement
Fixes IDEA-356003 Method call should not be simplified

GitOrigin-RevId: cb39dd33d27ba402a503707daffcc831ab59b49e
2024-07-16 16:41:55 +00:00
Egor Kukoverov
ceb99fa5c5 RUBY-33021 Specify that "space in suppression comment" setting is not available for JVM languages
(cherry picked from commit 0108830cb741860d647863626b28f2baaabac53d)

IJ-CR-139181

GitOrigin-RevId: adbe190cd155a3c343a10fd2f0fe904d86b3417e
2024-07-16 16:14:13 +00:00