Commit Graph

20606 Commits

Author SHA1 Message Date
Gregory.Shrago
04d585910f avoid relying on beforeActionPerformedUpdate in tests
GitOrigin-RevId: 89df0c2a9e7ae175ad18fd7f20a3217842781d21
2024-02-13 01:04:31 +00:00
Piotr Tomiak
753100fb20 IDEA-345694 Rework margins and font-size for quick documentation popup
GitOrigin-RevId: 5bad86f21662ab785f4d8c62c538280a407a0352
2024-02-13 00:16:16 +00:00
Tagir Valeev
d46938b0c6 Fix warnings
GitOrigin-RevId: ffa5c91a23c5fb87a74ce82ac83c554d51e12834
2024-02-12 19:12:46 +00:00
Tagir Valeev
2aa52eea2d [java] IDEA-345517 Feature-based support of unsupported preview language levels
GitOrigin-RevId: 3037d36588c239d6236ba64a7df2bf2a3b51cba4
2024-02-12 19:12:39 +00:00
Tagir Valeev
d0cf7b359a [java] IDEA-345498 Remove explicit Java 20-preview support and parenthesized patterns
GitOrigin-RevId: 8d646035979e3ec0a7de3c6f58a4e6ec9967bdbd
2024-02-12 19:12:36 +00:00
Tagir Valeev
c56dbec5f8 [java] Replace CreateMissingDeconstructionRecordClassBranchesFix20Test and ReplaceCaseDefaultWithDefault20FixTest with stubs
Cannot remove the tests yet, as their removal triggers re-bucketing on CI, which results in unrelated test failures
IDEA-345498 Remove explicit Java 20-preview support and parenthesized patterns (in progress)

GitOrigin-RevId: e84e4cb7f26ecc45f81bb0b04904540a9e3cac0d
2024-02-12 19:12:33 +00:00
Tagir Valeev
8be49e4bb0 [java] Remove EnhancedSwitchMigrationInspection20Test.java
IDEA-345498 Remove explicit Java 20-preview support and parenthesized patterns (in progress)

GitOrigin-RevId: 08edb1fd67ce2fe1b088e1ae015a5416eec08fc3
2024-02-12 19:12:29 +00:00
Alexey Kudravtsev
394e5c640a IDEA-321013 Outdated HighlightInfo's should be removed as soon as the relevant annotator or inspection finishes
Rework annotators engine to make annotators run in parallel, each on all relevant PSI elements in their own order (makes fast annotators complete faster to allow them to remove outdated highlighters faster).
For that, for each annotator (in parallel):
- create its own AnnotationHolder
- rearrange its PSI elements in "time to first diagnostic in previous run" order, to reduce latency.
- run annotator on these PSI elements sequentially
- as soon as annotator produces info/fails to produce the same info from the previous run, update the corresponding range highlighters
Pleas note, there's no more contract "Do not call annotators for parent PSI if some (maybe completely unrelated) annotator/highlight visitor produced error for some PSI element".
Fix highlighting tests, the majority of which relied on annotator order, or implicit contract above.
Fix a bunch of annotators which tried to double-visit some PSI elements to fight the contract above.

GitOrigin-RevId: 74f727fc6d3be3f500cdbb0f26e7d0daf1ffe7ff
2024-02-12 18:52:52 +00:00
Tagir Valeev
b3b3a0b12d [java] Remove parenthesized pattern tests
IDEA-345498 Remove explicit Java 20-preview support and parenthesized patterns (in progress)

GitOrigin-RevId: c00de2d074d595f345c462381532276b8af870dd
2024-02-12 17:32:07 +00:00
Mikhail Pyltsin
dc7805f3a9 [java-formatting] IDEA-345527 collects all java code style settings
GitOrigin-RevId: 4bd3a7196b5067f6827837124ea5dda09fbb5fc1
2024-02-12 14:14:43 +00:00
Georgii Ustinov
d75cd5755a [Java. Logging] Extract logger generation util methods to the separate class
IDEA-345098

GitOrigin-RevId: daa9eaf063bec4216ffc2980fd12520533dabff2
2024-02-12 12:17:33 +00:00
Mikhail Pyltsin
b7e09b8c76 [java-inspections] EA-1063946 more filters for yield statements
GitOrigin-RevId: c7b426ff0b815ac710a1a7ac269960286b015fe5
2024-02-12 10:56:18 +00:00
Bas Leijdekkers
0cae65939b Java: improve incompatible types reporting
- only report type with "anonymous" prefix when the left side is anonymous
- use short names in the tool tip when fq names would be identical as well
- use error color for the entire type name, including the anonymous prefix

GitOrigin-RevId: f1555687adb0ab9e7c5850719165a7a508ecf181
2024-02-11 16:31:14 +00:00
Liudmila Kornilova
d0c0fa8086 IDEA-344039 Switch back to IncrementalProjectIndexableFilesFilter
GitOrigin-RevId: 8a665d81d2d6a8d4a6eaae0b5824ffbfe61d9428
2024-02-10 10:20:45 +00:00
Gregory.Shrago
f96cf3ae5e EditorTestFixture.type must not be called in WA
GitOrigin-RevId: fc705e134083ab91a23fc34109977d94c289cec2
2024-02-09 21:23:03 +00:00
Gregory.Shrago
5d9d864cbf EditorTestFixture.type must not be called in WA
GitOrigin-RevId: b20d23c41c4d8c89d1014b90bb2b7f3fc55772b1
2024-02-09 21:22:59 +00:00
Alexey Kudravtsev
794fd3ab56 cleanup: rename to avoid garbage in the logs
GitOrigin-RevId: 3b3e83e959ebb40eb064132afe8e45adf06e8f06
2024-02-09 17:56:52 +00:00
Mikhail Pyltsin
cf8999446b [java-generating] IDEA-345603 Generate -> override methods doesn't work with implicit classes
- allow to invoke everywhere in implicit classes
 - don't create {}
 - don't allow constructors

GitOrigin-RevId: 8f0b17b498035ffd1c20b26543de0a2d21eabf87
2024-02-09 14:45:39 +00:00
Tagir Valeev
5cc3c8c2a8 [java-inspections] ForwardCompatibilityInspection: do not warn on 'when'
GitOrigin-RevId: dce3e2a527cd049e56b5561714441f94874b9e14
2024-02-09 14:27:17 +00:00
Alexander.Glukhov
2a752d605e revert: "[ui][IDEA-334229] quick doc popup redesign"
496c8d97

GitOrigin-RevId: d32086158d641347b96d61e7cec3de70f0a4e94b
2024-02-09 11:35:36 +00:00
Aleksey Dobrynin
c45e172247 [java, fix] JavaModuleSystem.isAccessible should respect alternative resolve mode. IDEA-343532
GitOrigin-RevId: fd121157e893f10212ee347e8f16c49c69bf1b52
2024-02-09 10:00:13 +00:00
Vladimir Krivosheev
11a8751859 use kotlin.io.path.invariantSeparatorsPathString
GitOrigin-RevId: 4ee2eccc21ae3de6c13c1062ef4e80da48c0435b
2024-02-09 06:56:39 +00:00
Mikhail Pyltsin
9a26066983 [java-inspections] IDEA-342942 support several if statements which cannot complete normally
- support comments

GitOrigin-RevId: a51770d028f94a5f4bd89e8d336ea1ad32ac963b
2024-02-08 13:12:58 +00:00
Nikita Kudrin
3dce2dce2f [unit perf tests] AT-644 Renaming
GitOrigin-RevId: 464b77181de9f1e0cc6de2623201635c405ee4c3
2024-02-08 11:21:41 +00:00
Liudmila Kornilova
35a8f3caf5 Simplify test for dirty files queue
GitOrigin-RevId: c09601fce5b0876c09a014039fb66aab32ef8b94
2024-02-08 11:17:52 +00:00
Tagir Valeev
cd071eaae4 [java] IDEA-345355 Refactor HighlightingFeature (in progress)
Use more JavaFeatures; unify soft keyword processing in JavaLexer and in ForwardCompatibilityInspection

GitOrigin-RevId: f99ac1a35ec4b6b33716b2ace32ee0483f952c54
2024-02-08 10:07:43 +00:00
Tagir Valeev
6adc9a28d7 [java-dfa] AssertJ: recognize describedAs and as methods in Descriptable superclass (IDEA-209246)
GitOrigin-RevId: f1374bfa5a5a3fb81763cb07206d36172712a1e6
2024-02-08 10:07:02 +00:00
Piotr Tomiak
2afc025329 IDEA-344629 Fix rendering of some Java and Kotlin gutter tooltips.
GitOrigin-RevId: 77d1b807235f1aaf6085b2ac6a954d729f2b597a
2024-02-08 09:17:45 +00:00
Tagir Valeev
7b0b94cc15 [java-tests] data-flow and inference tests converted from Groovy to Java
GitOrigin-RevId: 93eec20c46facce8fec2894eac21432d7c27ad5e
2024-02-07 19:29:29 +00:00
Tagir Valeev
43c43ddebb Rename .groovy to .java
GitOrigin-RevId: 5a38f5c2cddb7663ff9313e908813cfabe820eb7
2024-02-07 19:29:23 +00:00
Tagir Valeev
d469c59435 [java-inspections] IDEA-345255 Duplicate condition: improve detection of &&-chains
GitOrigin-RevId: e6b504e7665921e66c17690f6a144fb36dcd8124
2024-02-07 19:28:52 +00:00
Liudmila Kornilova
498795527f Transfer dirty files from ChangedFilesCollector to FilesToUpdateCollector to avoid losing them when indexing finished asynchronously
GitOrigin-RevId: f642704a4ba22c94af2e0be91d332bdbdbde3d1d
2024-02-07 17:32:21 +00:00
Liudmila Kornilova
24748f9f40 Delete file from indexable files filter after it was excluded (but it still happens lazily)
GitOrigin-RevId: 7afb6b2c776771abb095779044ad676e0def733a
2024-02-07 17:32:10 +00:00
Nikita Kudrin
b143fe1540 [unit perf tests] AT-644 Removed expected time from the tests
GitOrigin-RevId: a53f40c1721a46c7833018346dc622dec1f1b80a
2024-02-07 16:11:29 +00:00
Bas Leijdekkers
9619e7ca58 Java: fix false positive regression in "If with identical branches" inspection
GitOrigin-RevId: 4d8dd82890019a4d1a48f98b982e5f2f9821b5ab
2024-02-07 15:14:34 +00:00
Louis Vignier
900c7b6712 [java] Add tests for RenameCodeVisionProvider and migrate existing rename refactoring availability tests
#IDEA-313870

GitOrigin-RevId: eb92f1f5273c4f8c4e87ed144873258ed13bda3d
2024-02-07 14:36:28 +00:00
Georgii Ustinov
baf6a46750 [Java. Logging] Add tests for anonymous and implicitly declared classes + review refactor
IDEA-331693

GitOrigin-RevId: 2ca3503bfbf7d37602ad698f071292a8773c6e29
2024-02-07 13:30:04 +00:00
Georgii Ustinov
7019bbd5df [Java. Logging] Fix JvmLoggingConfigurable id inconsistency and move loggers to the more appropriate folder
IDEA-331693

GitOrigin-RevId: e0a14e8a37e04db91633ea25411093285eb62a4b
2024-02-07 13:30:04 +00:00
Georgii Ustinov
a9ac56fa4b [Java. Logging] Add basic tests
IDEA-331693

GitOrigin-RevId: 7e3418984b59f18411ce3be472637f5d0e8daa39
2024-02-07 13:30:04 +00:00
Georgii Ustinov
8b69044fc2 [Java. Logging] Add simple test for logging generation
IDEA-331693

GitOrigin-RevId: 8e936cff7eacea1332ee0862e8f40cb5dad5ed35
2024-02-07 13:30:03 +00:00
Mikhail Pyltsin
3ab0a2c5c3 [java-inspections] IDEA-342942 support several if statements which cannot complete normally
GitOrigin-RevId: b64b98325c7816e662838b7f535554ca8b2ecdcb
2024-02-07 09:28:36 +00:00
Tagir Valeev
cd74781a9d [java-inspections] IDEA-345238 Duplicate conditions: respect mutation signature
GitOrigin-RevId: b9271196151e985b5147b9264ea73d8e3118b59a
2024-02-07 00:30:20 +00:00
Tagir Valeev
4dd9f76cc7 [java-completion] JavaChainLookupElement: remove method name from all lookup strings
This helps to avoid 'complete matching' prefix weight when we type complete method name, as the matching is actually incomplete (qualifier is missing).
Fixes IDEA-344709 Code completion in java: prioritize "simple" suggestions even if more complex ones have the matching type

GitOrigin-RevId: 939d37432d084f677d88919e82e6d7badeb813e8
2024-02-07 00:30:17 +00:00
Alexey Kudravtsev
6f3fae4c08 add javadoc with warning about createEmptyCOWList generating garbage; port all usages to more gc friendly createConcurrentList
GitOrigin-RevId: be55d6b714071eac2aad240b13372f583584ca06
2024-02-06 22:38:23 +00:00
Tagir Valeev
3f4201aae8 [java-intentions] Disable 'initialize variable fix' for record component
Fixes EA-893719 - UOE: SyntheticElement.findSameElementInCopy

GitOrigin-RevId: 6e5d54c1b32f2c7cb0621bba1b4a6ef02de4b8f8
2024-02-06 21:35:03 +00:00
Mikhail Pyltsin
b4dd504e01 [java-highlighting] IDEA-341846 Code with instanceof for a local class inside a generic function is marked as red
- skip methods to capture parameters

GitOrigin-RevId: df0c152d33bb9f880dad2428b7635d06209b3e0c
2024-02-05 19:44:16 +00:00
Mikhail Pyltsin
4948c8af8c [java-highlighting] IDEA-344235 support calls with checked exceptions for instanceOf patterns
GitOrigin-RevId: 15d80e2f3028bd59c1ec9a73a7a3af4c1c5f1027
2024-02-05 19:22:52 +00:00
Bas Leijdekkers
283c537664 Java: fix equivalence checking for (labeled) break and continue statements
GitOrigin-RevId: 928edb7ca6a9dcec2b3fdbc3eb0da3c0bb4d4d85
2024-02-05 18:10:33 +00:00
Mikhail Pyltsin
23805a0f41 [java-inspections] IJ-CR-125254 IDEA-339062 support switch expression in light inference
- fix tests
- return null if there is a throw statement

GitOrigin-RevId: 79f9efb659b1d56b82f4a8300461cbd2c802f870
2024-02-05 17:45:37 +00:00
Tagir Valeev
7834892dd8 [java-tests] JavadocCompletionTest: Groovy -> Java
GitOrigin-RevId: d4e0e3c8e729b8db8ebeaae0961d80c973803732
2024-02-05 14:25:01 +00:00