Tagir Valeev
92839cf245
[mod-command] AddExceptionToCatchFix: ModCommandAction; injection test
...
GitOrigin-RevId: 9a3ab90be0420b79f913c96b0d0101e538e6fca6
2023-05-10 18:16:50 +00:00
Tagir Valeev
ff7bded456
[mod-command] EditorUpdater#select(TextRange); fix injection handling
...
GitOrigin-RevId: c1c412601661e7bf8231d12e024bb53109d010ba
2023-05-10 18:16:48 +00:00
Tagir Valeev
91afaf57ef
[mod-command] InvertIfConditionAction: ModCommandAction
...
GitOrigin-RevId: 328140468ee5e5370d3c87835c72a06841dc1d22
2023-05-10 18:16:40 +00:00
Tagir Valeev
e31a010d64
[mod-command] Allow to register ModCommandAction-based intentions
...
Also: ModCommandAction.Presentation; MergeFilterChainAction converted to ModCommandAction; API updates; documentation
GitOrigin-RevId: fe31dc71f1f0ae3ff71ef578ad22c5dd555783de
2023-05-10 18:16:37 +00:00
Bas Leijdekkers
d8ba8bd567
Java: more accurate preview for "Method parameter always has the same value" inspection
...
and add test
GitOrigin-RevId: 957be987fbc9414e1d099ee86c72193bcfc43c19
2023-05-10 14:19:36 +00:00
Mikhail Pyltsin
913fd3db6f
[java-inspections] IDEA-303605 Constant expression can be evaluated - new option to skip non-literal exception
...
GitOrigin-RevId: 5adb14cc5d812c28ca811095e042ec18023a92d9
2023-05-10 13:01:51 +00:00
Mikhail Pyltsin
97dffbd482
[java-code.generation] IDEA-319808 Generated hashCode method has faulty != +0.0f check
...
GitOrigin-RevId: 5dc591c2b342c2201cf1d5430a6e8209178eaf7f
2023-05-10 13:01:50 +00:00
Alexey Kudravtsev
dd661e8c1e
do not search for unused symbols if the corresponding inspection is not found in the profile/disabled, to avoid unexplainable NPEs
...
GitOrigin-RevId: ff4a34b913b2d75b3ce4ace262070db431a818b3
2023-05-09 13:19:35 +00:00
Alexey Kudravtsev
da46e9ad7f
one more test for highlighting must clear itself when switched off
...
GitOrigin-RevId: a76215e25c1ff8c83479e804ebadb5411356f83e
2023-05-08 16:45:18 +00:00
SirYwell
e9572c8324
[java-psi] ControlFlow: Generate WRITE for field initializers
...
PR#2424
GitOrigin-RevId: b6b59424233f3ce71a08467b2f6bd59da59b21d1
2023-05-08 09:35:00 +00:00
Tagir Valeev
d75b5e726f
[mod-command] PsiUpdateContext#moveToPrevious; AddFinallyFix -> ModCommandAction
...
GitOrigin-RevId: 56625a1739da460bcc71712ae4ad682f2ce200c7
2023-05-05 19:45:51 +00:00
Tagir Valeev
8e08ed7169
[inspection-options] Pass project to customized options pane
...
Fixes IDEA-318984 Choose NotNull Annotation hangs with infinite "Searching..." indicator
GitOrigin-RevId: 3c575072412a95d0aad5854f4953349748ca3dc5
2023-05-05 19:45:28 +00:00
Tagir Valeev
aa893057b4
Revert "[code-inspections] Pass OptionController to custom component renderer"
...
This reverts commit fc161fa7814eea4b3695c3473b22da31bb41a7e6.
GitOrigin-RevId: 89521fd2c5dc123e8b91833499c642b8e3533481
2023-05-05 19:45:25 +00:00
Alexey Kudravtsev
97f9f2f83b
IDEA-319621 add new "canceled" field to the DaemonFusReporter
...
GitOrigin-RevId: 247e7409d222257560351a6814f012b6f18bc240
2023-05-05 12:40:06 +00:00
Vladimir Krivosheev
f785d0c406
Revert "Revert "[code-inspections] Pass OptionController to custom component renderer""
...
This reverts commit 5c6184c0ab2808a7d54e9e9576ffa81a42c8e68a.
GitOrigin-RevId: 5b078d3b337591d0bcd7d0cc756d4273085d684b
2023-05-04 20:15:13 +00:00
Vladimir Krivosheev
030668f02d
Revert "[inspection-options] Pass project to customized options pane"
...
This reverts commit ff8fbe0e1e29b503a000ee311bebe7c6568fb752.
GitOrigin-RevId: f20f3638309a4058bdedae8dbbadd37188f9a8f3
2023-05-04 20:15:13 +00:00
Tagir Valeev
40b4546e44
[inspection-options] Pass project to customized options pane
...
Fixes IDEA-318984 Choose NotNull Annotation hangs with infinite "Searching..." indicator
GitOrigin-RevId: ff8fbe0e1e29b503a000ee311bebe7c6568fb752
2023-05-04 17:26:59 +00:00
Tagir Valeev
4b47a409b2
Revert "[code-inspections] Pass OptionController to custom component renderer"
...
This reverts commit fc161fa7814eea4b3695c3473b22da31bb41a7e6.
GitOrigin-RevId: 5c6184c0ab2808a7d54e9e9576ffa81a42c8e68a
2023-05-04 17:26:56 +00:00
Nikolay Chashnikov
595cf1a33d
[workspace file index] cleanup: remove code which was used only when WorkspaceFileIndex is disabled
...
It's always enabled now.
GitOrigin-RevId: e90c95f2f03aecb2894f24e9dd38ddbd72948d9c
2023-05-04 15:47:57 +00:00
Tagir Valeev
69e2e794f3
[java-psi] Support method references with intersection type qualifier
...
Fixes IDEA-319068 Good code is red: Optional.ifPresent(AbstractSet::add) complains about add method
GitOrigin-RevId: 7fe34c7041a09504536ce99cd52e7ed89997ec73
2023-05-03 13:43:47 +00:00
Alexey Kudravtsev
d09d83416a
move LineMarkers to BGT (part of IJPL-85)
...
GitOrigin-RevId: f5bdde98ba0a7c1e1f39125826fc6cc16dc8921a
2023-05-03 12:19:26 +00:00
Alexey Kudravtsev
8f9d7bbb03
IJPL-85 move DocumentMarkupModel/EditorMarkupModel operations to background
...
- allow MarkupModel add/remove operations in the background
- adopt its clients to async fireAdded/fireRemoved listeners
- introduce BackgroundUpdateHighligtersUtil which is a substitute for UpdateHighlightersUtil for background usages
- adopt DefaultHighlightInfoProcessor to background ops, making GeneralHighlightingPass backgroundable
- adopt LocalInspectionPass to background ops
GitOrigin-RevId: 31a3e54ea67a38fdd3e7ea49b491525f894d0da4
2023-05-03 12:19:01 +00:00
Eugene Zhuravlev
b9fa027b9b
support classes with the same FQ name in different modules
...
GitOrigin-RevId: e6c7f706d151f32f8236ba2bfaab8df4dde73651
2023-05-02 14:25:51 +00:00
Tagir Valeev
6efe690841
[code-inspections] Pass OptionController to custom component renderer
...
GitOrigin-RevId: fc161fa7814eea4b3695c3473b22da31bb41a7e6
2023-05-02 09:02:59 +00:00
Tagir Valeev
9e39908f5f
[java-dfa] AssertJInliner: explicitly list allowed special fields for isPresent/isEmpty checks
...
Addition of new special field should not cause inlining them
Fixes IDEA-317232 AssertJ isEmpty() false positive when used on Stream variable
GitOrigin-RevId: 405debc4729fbdb93611d34ad7ac8942bf8d647e
2023-04-28 11:43:49 +00:00
Tagir Valeev
be6a068d76
[java-refactoring] Better vararg handling in change signature
...
1. Properly handle non-vararg call sites
2. Update callsites when vararg type was changed to non-vararg or vice versa (without reordering, etc.)
Fixes IDEA-318626 Change signature incorrectly wraps/unwraps arguments when changing between varargs and arrays
GitOrigin-RevId: 3372a144be4363fef2c40e8968a07d8ed6b916a6
2023-04-28 09:47:08 +00:00
Vladimir Krivosheev
3ee80e5de6
remove runBlockingUnderModalProgress
...
GitOrigin-RevId: 3a356c619041bed3b771c555de99f45634a49a86
2023-04-27 13:06:50 +00:00
Vladimir Krivosheev
76939c0325
get rid of saveComponentManagerSettings
...
GitOrigin-RevId: 5eaa522ce5fe6c362b0cf23a8545bc85fab1a04d
2023-04-27 13:06:47 +00:00
Bas Leijdekkers
71e084779f
Java: capitalize Safe Delete conflict message
...
GitOrigin-RevId: 20a7ff8b32c0b41e4e41474dbb91a81312f7c9ac
2023-04-27 10:21:46 +00:00
Tagir Valeev
60ad5158b6
[java-dfa] ConstantValueInspection: do not report always-true boxed value if it can be null
...
GitOrigin-RevId: 5bf99d55f72040dd8e2d5d43537e5836e7923d56
2023-04-27 09:56:52 +00:00
Tagir Valeev
d210dd51da
[java-inspections] NullableStuffInspectionBase: report duplicate annotations on array elements
...
Reported in comments for IDEA-316319
GitOrigin-RevId: ceacb3e0abb0943bff1aac85bd9d6e21e8721c93
2023-04-27 09:56:50 +00:00
Tagir Valeev
5906493339
[java-inspections] Less confusing warning & fix on misplaced annotation when fqn+array is used
...
GitOrigin-RevId: d490d2696d070827fbe6a3b958a05acd31afcdc7
2023-04-27 09:56:48 +00:00
Tagir Valeev
e85a88956e
[java-dfa] Better support for array component nullability
...
GitOrigin-RevId: 6536838ee1349aae389da59b7b4c878616309b20
2023-04-27 09:56:46 +00:00
Filipp Vakhitov
4095af5542
IDEA-128039 feature for scrolloff value setting
...
Fix failing tests
GitOrigin-RevId: 08c3a141aa26294582999f904a61c1af314bac65
2023-04-26 19:00:22 +00:00
Vladimir Krivosheev
3f3e985ff0
IDEA-318843 storage tracker per project
...
GitOrigin-RevId: 8d045ad6b7fd94a8dedf3ddd84dca6a0b589bee1
2023-04-26 15:03:33 +00:00
Tagir Valeev
647205e696
[mod-command] Support injection in ModCommands#psiUpdate
...
GitOrigin-RevId: 3c191627d242960cb0e8f846529f3a2b5627b5c8
2023-04-25 19:46:54 +00:00
Tagir Valeev
062a909dab
[mod-command] Intention preview now uses ModCommandAction directly; preparations for injection support
...
GitOrigin-RevId: 89343a5f636f66a3d3854ded5725e4f5dc7e03e0
2023-04-25 19:46:48 +00:00
Mikhail Pyltsin
5032fa91dd
[java-inspections] IDEA-318681, IDEA-318678, IDEA-318677, IDEA-318676 Improve previews, get rid of external annotations
...
GitOrigin-RevId: 57d45849299ce12c5ec19d84dcabdaaee00c3831
2023-04-25 18:46:31 +00:00
Alexey Kudravtsev
23e6fcd862
make datastructures in MarkupModel listeners thread-safe in anticipation of async listeners in IJPL-85
...
GitOrigin-RevId: 9ad4a8d995add18b23172321738cb057fb3ed834
2023-04-25 13:48:50 +00:00
Mikhail Pyltsin
068020ddd6
[java-inspection] IDEA-311127 Not find static import. Fix one more case
...
GitOrigin-RevId: a45f353468b849238dab2533c87b1f18740ec395
2023-04-25 11:16:42 +00:00
Mikhail Pyltsin
63396759c4
[java-inspections] EA-838138, Fix empty cases
...
GitOrigin-RevId: b45993878b906f3a5209ad0b968b43f8d872dbbf
2023-04-25 11:16:39 +00:00
Bas Leijdekkers
80ecc53b97
Java: recognize record headers in Live templates declaration scope (IDEA-318499)
...
GitOrigin-RevId: ce69a50db84725b07250058272d3910f80d0f6aa
2023-04-25 08:30:31 +00:00
Andrey Cherkasov
31180f1fad
[java-intentions] Fix bug in SurroundAutoCloseableAction with var variables
...
IDEA-317852
GitOrigin-RevId: c36e4be4553ef94c5dec6977f95fb008860fd08d
2023-04-25 08:23:19 +00:00
Andrey Cherkasov
4bb6243e9d
[java] SurroundAutoCloseableActionTest: add @TestDataPath
...
GitOrigin-RevId: 243de2a291dd7fc6101205b49c5a9eb147d880fb
2023-04-25 08:23:16 +00:00
Tagir Valeev
4c29ff02f6
[java-inspections] TrivialFunctionalExpressionUsageInspection: solve naming conflicts instead of keeping the block
...
Keeping the block does not work correctly for blocks with return statement
GitOrigin-RevId: d14e22e793840d74957928a8d7748275db4929ef
2023-04-24 11:48:09 +00:00
Bas Leijdekkers
d433c91b2a
Java: add quick-fix and clarify error message (IDEA-318627)
...
GitOrigin-RevId: ef8be0f040f1321b85d8751fe8b59825d2298da9
2023-04-22 00:57:57 +00:00
Alexey Kudravtsev
d86d6ff357
add missing method createConcurrentSet(); port existing usages with corresponding SSR
...
GitOrigin-RevId: c03145d2c39a1c200485c62b7c4a33325862ac32
2023-04-21 17:44:43 +00:00
Alexey Kudravtsev
6d9ab19f5b
add missing method createConcurrentSet(); port existing usages with corresponding SSR
...
GitOrigin-RevId: 00645c36006d38198e8222030cf5ddd7ad7c8bf8
2023-04-21 17:31:35 +00:00
Tagir Valeev
82101d926f
[intention-actions] QuickFixWrapper#unwrap
...
GitOrigin-RevId: 34bf55ff30d24adb92619d1c37bc504060bd4aef
2023-04-21 14:03:52 +00:00
Tagir Valeev
42d9b29a47
[mod-command] First experimental draft
...
GitOrigin-RevId: 58558851eb884fb4a288d788f9009a8e4cb133b8
2023-04-21 14:03:51 +00:00