Piotr Tomiak
d491d45155
IDEA-345694 Rework margins and font-size for quick documentation popup - use consts for available style classes
...
GitOrigin-RevId: 2a362437da13754188ef11040c79eaa2f5da62a8
2024-02-13 00:16:06 +00:00
Alexey Kudravtsev
bc01644467
avoid flickering of inspection warnings (due to group id conflict) (part of IDEA-321013 Outdated HighlightInfo's should be removed as soon as the relevant annotator or inspection finishes)
...
GitOrigin-RevId: 971fd7320683a8505bfc706284c8847d92ab0350
2024-02-12 19:15:21 +00:00
Tagir Valeev
bf85acba82
[java] More JavaFeature uses
...
Also: new JavaFeatures (ASSERTIONS, ENUMS, PRIVATE_INTERFACE_METHODS)
GitOrigin-RevId: f073845a77730b486afa56317e2c12ff044f5425
2024-02-12 19:12:43 +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
Georgii Ustinov
0a67352f96
[Java. Logging] add feature to exclude import list for JavaLoggerCompletionContributor
...
IDEA-345098
GitOrigin-RevId: 68bcb04e8db3f519d9746f512a3151a3a39545a5
2024-02-12 16:48:30 +00:00
Georgii Ustinov
5aa4dfc53d
[Java. Logging] Make logger to respect completion import exclusion
...
IDEA-345098
GitOrigin-RevId: a225bdd895a2120c17f9b775e8a16daae194e9c4
2024-02-12 16:48:25 +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
79b0c8f4ce
[Java. Logging] Disable logger completion if logger is already presented
...
IDEA-345098
GitOrigin-RevId: ba7017482d0dedf0f2c6e25266e425f5bb6daf61
2024-02-12 12:17:38 +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
Georgii Ustinov
e483e6e189
[Java. Logging] Improve logger element pattern
...
IDEA-345098
GitOrigin-RevId: 796fd79e495c7914921a415bdcefe189a1045b1f
2024-02-12 12:17:28 +00:00
Georgii Ustinov
f140630604
[Java. Logging] Add completion support if there is more than 2 loggers
...
IDEA-345098
GitOrigin-RevId: 1b2104bd4847a6261eafe2b3951616ccad2a1a73
2024-02-12 12:17:23 +00:00
Georgii Ustinov
71777a5aeb
[Java. Logging] Change the logger to be only available inside PsiCodeBlock + prettify logger lookup representation
...
IDEA-345098
GitOrigin-RevId: 8210a719878f2551c0ba96cf8bf6d3100cfb4181
2024-02-12 12:17:18 +00:00
Georgii Ustinov
6ea0ad7945
[Java. Logging] Base logger completion implementation
...
IDEA-345098
GitOrigin-RevId: 39a3d2253e34cb885bcf43eccbe3e1e6c24017c4
2024-02-12 12:17:13 +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
Yuriy Artamonov
8c259fa269
[java] IDEA-343556 Java: provide override line markers in dumb mode
...
GitOrigin-RevId: 96e58759c54a9fc03ed2f79a519f8971469be55b
2024-02-11 12:31:04 +00:00
Yuriy Artamonov
329c811b04
[ultimate] IDEA-345361 Liquibase: Add suggested plugin notifications for IDEA CE
...
GitOrigin-RevId: 7b9cbe0ae17f9b09d4783daf6e10db08090f6279
2024-02-09 22:59:44 +00:00
Tagir Valeev
bc953af5de
Fix/suppress IgnoreResultOfCall
...
GitOrigin-RevId: 2f0cc37e902e13b9dade80af300e218a6f7665ec
2024-02-09 19:11:14 +00:00
Tagir Valeev
5dbf105b59
[java] IgnoreResultOfCallInspection: ignore UUID.fromString() inside try-catch
...
GitOrigin-RevId: 71bfc48b99e58864f6601d8b33a51390c272de75
2024-02-09 19:10:58 +00:00
Sergei Tachenov
a06608ba7a
IDEA-18765 Disable auto-expand for Libraries in the Packages View
...
Similarly to Expand All, auto-expanding Libraries when it's the only
child of some parent rarely makes any sense. Especially when it happens
during Expand All, when auto-expanding also happens.
GitOrigin-RevId: f51f6a5ceb07d0f10ee23bfc4d651fba014825f8
2024-02-09 17:53:19 +00:00
Sergei Tachenov
3ac9b8b515
IDEA-18765 Disable Expand All for Libraries in the Packages View
...
Similarly to the regular Project View, it never makes sense to expand
every single Libraries node.
GitOrigin-RevId: 1f46da04108df1ee07ae894c044dc30cc2692a98
2024-02-09 17:53:09 +00:00
Sergei Tachenov
796a5c27d1
IDEA-18765 Make libraries in the Packages View non-leaves
...
Similarly to modules, an empty Libraries node is a rare thing,
and the amount of computations done to figure out if it's empty
is insane. Let's skip that and assume that Libraries are always
non-leaves.
GitOrigin-RevId: 87c0e70c452ff541f0f83f3d1779b7aa06114098
2024-02-09 17:53:04 +00:00
Sergei Tachenov
ebc9e6ff74
IDEA-18765 Make modules in the Packages View always non-leaves
...
The slowest part of a module node update is to figure out if it's a leaf.
This essentially retrieves and validates all of its subpackages,
to figure out if there are any valid ones.
This is only done so that an empty module doesn't have an expand
icon next to it in the tree. Looks like a horrible trade-off, especially
since empty modules are a very rare beast, and displaying an expand
icon next to one isn't really a big deal.
GitOrigin-RevId: 79c0fce83fe309e545224bc1f15f94d9551eeec5
2024-02-09 17:52:59 +00:00
Sergei Tachenov
50949eda56
IDEA-18765 Cache subpackages for the Packages Project View
...
When computing children of a node in the Packages view,
the slowest part is getting the list of subpackages of a given
package. Sometimes it happens twice: once to check
if the package is empty, then to actually retrieve the list
of subpackages to create its children.
Fix this part by moving the relevant stuff from PackageUtil
to the new PackageNodeBuilder class which caches packages internally.
Since this is volatile PSI stuff, we can't cache them between updates,
but at least we can cache them during a single node creation,
which already makes it twice faster, though still horribly slow.
GitOrigin-RevId: adadb24259e43e12a167c4c758a9fb4797058533
2024-02-09 17:52:54 +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
Mikhail Pyltsin
ed51ec5f32
[java-generating] IDEA-345563 Generate -> toString for implicitly declared classes uses file name for class name
...
- support implicit classes for inserting
GitOrigin-RevId: e5243ae2c3dc6ae9e0b2ea7f94ece4cf1b8947a6
2024-02-09 13:19:26 +00:00
Aleksey Dobrynin
42b88e37cf
[java, highlighting] jigsaw#isAccessible: support "--add-exports" option. IDEA-345277
...
GitOrigin-RevId: 0ef641d506f3c6d9cf3968f015370483e5789569
2024-02-09 10:00:17 +00:00
Mikhail Pyltsin
f345a264c0
[java-generating] IDEA-345562 Disable Generate -> Generate equals and hashcode for implicitly declared classes
...
GitOrigin-RevId: 4ccb68d91df91e7c77e552815a2cf613054ca20a
2024-02-08 19:47:25 +00:00
Mikhail Pyltsin
30394c26ec
[java-generating] IDEA-345561 Disable Generate -> Generate tests for implicitly declared classes
...
GitOrigin-RevId: fca32e6e88f7c757f60f3f4877b57786a87599b5
2024-02-08 19:47:21 +00:00
Mykhailo Lytvyn
717c5f7027
Fixed SVG Icon preview in the Gutter
...
Closes #2659
GitOrigin-RevId: 5a0876b6aa4d58698d3e0a24b0e796fe37008598
2024-02-08 16:05:57 +00:00
Georgii Ustinov
d60a95a277
[Java. Logging] Amend structure of GenerateLoggerStatisticsCollector
...
IDEA-331693
GitOrigin-RevId: 9e6c51720acca4005c19a69973a9fc12a06d9d72
2024-02-08 14:18:34 +00:00
Georgii Ustinov
e92d03c465
[Java. Logging] Fix false-positive logger detection on the project-level in the Gradle based projects
...
IDEA-331693
GitOrigin-RevId: 9659ab2d4abf5a44a5a6fa048f0289459f0d45a9
2024-02-08 14:18:30 +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
Georgii Ustinov
84558c4e11
[Java. Code Formatting] Extend Javadoc for the JavaFormatterUtil#collectCallExpressionNodes.
...
IDEA-331693
GitOrigin-RevId: 2d87d95e81b2d0958bf5c1ed2b87b6a948dd53ab
2024-02-08 10:16:30 +00:00
Tagir Valeev
8f28141888
[java] JavaFeature.JAVADOC_SNIPPETS
...
GitOrigin-RevId: ef0b325549f0d804d3d7549862663482e34e16fa
2024-02-08 10:08:24 +00:00
Tagir Valeev
ea2b70a2d1
[java] IDEA-345355 Refactor HighlightingFeature (in progress)
...
JavaFeature.EFFECTIVELY_FINAL
GitOrigin-RevId: d52ab73d7d24745b149b5a4704f1dee55e4179f0
2024-02-08 10:08:09 +00:00
Tagir Valeev
72890668ad
[java] IDEA-345355 Refactor HighlightingFeature (in progress)
...
Rename STREAMS to STREAM_OPTIONAL; use features instead of isLanguageLevel8OrHigher
GitOrigin-RevId: 36f56560f6c7ca626a268d8b07da86497f2501a0
2024-02-08 10:08:04 +00:00
Tagir Valeev
6a6eb357d8
[java] IDEA-345355 Refactor HighlightingFeature (in progress)
...
Remove methods PsiUtil.isLanguageLevelXOrHigher for X > 9
There are only a few use sites not covered by existing features (usually checking whether some API exists). It's better to avoid shortcut to motivate people using features.
GitOrigin-RevId: 0149bf5badec79e77b7fe2066ad4ac7277d21ecb
2024-02-08 10:07:59 +00:00
Tagir Valeev
340c4d40ba
[java] IDEA-345355 Refactor HighlightingFeature (in progress)
...
JavaFeature.isAvailable moved to PsiUtil, as we cannot get PsiElement language level inside frontback-api module
GitOrigin-RevId: 8092b1f55f0d90af5bc570f2fb49cdf9ef94485a
2024-02-08 10:07:48 +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
d0d82eba52
[java] IDEA-345355 Refactor HighlightingFeature (in progress)
...
Declare new features: SERIAL_ANNOTATION, NESTMATES, ALWAYS_STRICTFP, COLLECTION_FACTORIES, INNER_NOT_CAPTURE_THIS, STRING_SWITCH
Use more features instead of explicit Java levels
GitOrigin-RevId: e90a96501c218ed44faebb7c882770b50477b6e1
2024-02-08 10:07:38 +00:00
Tagir Valeev
87c2a93f10
[java] IDEA-345355 Refactor HighlightingFeature (in progress)
...
Remove JavaFeature.isFeatureSupported() in favor of isAvailable()
Rename getLevel() into getMinimumLevel()
Avoid use of getMinimumLevel() where possible
Javadocs
GitOrigin-RevId: 4354821d8cfcf88cc1c3830b0e3cb3f221a5c122
2024-02-08 10:07:33 +00:00
Tagir Valeev
7625b3c7a2
[java] IDEA-345355 Refactor HighlightingFeature (in progress)
...
Merge JavaLanguageFeature into JavaFeature
GitOrigin-RevId: 212b31d072450df03fc9eeeeb2cf0861b2b32bc1
2024-02-08 10:07:28 +00:00
Tagir Valeev
d8aa739e97
[java] IDEA-345355 Refactor HighlightingFeature (in progress)
...
Use JavaLanguageFeature instead of HighlightingFeature
GitOrigin-RevId: ad24840c3e810521c82da3873ec42aa3fadb4c0d
2024-02-08 10:07:18 +00:00
Tagir Valeev
a7674dca70
[java] IDEA-345355 Refactor HighlightingFeature (in progress)
...
Create JavaLanguageFeature; move HighlightingFeature functionality there; move preview highlighting related utilities to new PreviewFeatureUtil class
GitOrigin-RevId: 116bcc9feb6fb40a0bd6a25ba10c2f35b41ffea6
2024-02-08 10:07:12 +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
Bas Leijdekkers
def643195d
java: add more explanation in inspection description
...
GitOrigin-RevId: 22360ea2fc3c167089003b6a9794b4fd09be3768
2024-02-07 15:14:31 +00:00
Louis Vignier
7ce2542d95
[java] Enable rename refactoring inlay
...
#IDEA-344181 Fixed
GitOrigin-RevId: cb7aaf644f6160507ce2ae6eceff7d72999bf561
2024-02-07 14:36:07 +00:00
Georgii Ustinov
9498da9b84
[Java. Logging] Remove useless JavaLoggerModel
...
IDEA-331693
GitOrigin-RevId: a4a9e544717d2103ab0254cf17de84876271de50
2024-02-07 13:30:04 +00:00