Commit Graph

20306 Commits

Author SHA1 Message Date
Dmitry Avdeev
7276977723 AsyncProjectViewPane renamed to AbstractProjectViewPaneWithAsyncSupport
GitOrigin-RevId: 09bff692868b3fdf09d1d9558864764c9fbae171
2022-10-20 18:05:22 +00:00
Mikhail Mazurkevich
67dcc8eea9 [workspace model] IDEA-300481 Rename com.intellij.workspaceModel.storage.bridgeEntities.api to com.intellij.workspaceModel.storage.bridgeEntities
GitOrigin-RevId: 6a6cefa7605694dfe4b0fe15bc8fc21847d0f9c9
2022-10-18 13:31:11 +00:00
Bart van Helvert
d02e04bec7 [java] IDEA-157610 Don't shorten reference in static context when in dummy holder
GitOrigin-RevId: d845f6547ead8ae206f25d63ed0c97f69faee424
2022-10-17 17:34:39 +00:00
Andrey.Cherkasov
7615667adc [java-intentions] UnwrapSwitchLabelFix: rewrite record pattern support
IJ-CR-27938
IDEA-297387

GitOrigin-RevId: d275fd7a37d6b4e955cdc654bd676cb9048601be
2022-10-17 14:57:44 +00:00
Olga Klisho
9241f28778 Merge branch 'master-klisho-junit'
GitOrigin-RevId: 074c2747141b1c4492cb2335f7ca8ab14b75a51c
2022-10-17 10:41:19 +00:00
Tagir Valeev
ad68c091c8 [java-intentions] IDEA-303788 InferNullityAnnotationsAction create its UI eagerly
GitOrigin-RevId: 00d7896a40ae178049c459dc0a0822bf96f18cb0
2022-10-14 12:22:09 +00:00
Peter Gromov
557a6203f7 IDEA-303759 Don't spellcheck derived Java names
GitOrigin-RevId: 507aa45aae1e825e0db8daebc6dcafd0b8dbda0c
2022-10-14 09:05:59 +00:00
Pavel Porvatov
8d6395cbc5 IDEA-303635 Rework CellBase.horizontalAlign/verticalAlign methods
GitOrigin-RevId: 82b4253f6ba6571afc1582c53d70fa941ae99622
2022-10-14 08:02:32 +00:00
Pavel Porvatov
38bc320ac9 IDEA-303635 Rework CellBase.horizontalAlign/verticalAlign methods
GitOrigin-RevId: ba7eb382cc77ef2994cfd71e2f19894b4862ac1b
2022-10-14 08:02:31 +00:00
Nikolay Chashnikov
e7195f6214 cleanup: remove '@author peter' tags from javadoc comments
Now we have Code Vision hints which determine the author via Git history and show it in the editor automatically, and this information is more accurate than the tags which were automatically added when files were created.

GitOrigin-RevId: 99ea11604b3d5dfdf838d7f3685477814e642ceb
2022-10-13 14:39:10 +00:00
Andrey.Cherkasov
8b99ea7e9c [java-intentions] VariableAccessFromInnerClassFix: adapt to 'when' expressions
IJ-CR-95276
IDEA-301356

GitOrigin-RevId: 7281c53c12f40840de36cc8d7e0c18e20ae8c463
2022-10-13 13:08:46 +00:00
Bas Leijdekkers
2786f8bf0d typeParameterOf(VAR) Live Template macro (IDEA-16499)
GitOrigin-RevId: abaa39f4d53740b076d6c00ea8bb9f4f7e23ab77
2022-10-12 18:41:42 +00:00
Tagir Valeev
677cfc07bd [java-inspections] ModifierFix: disable if there's no PsiFile
Fixes EA-694164 - NPE: ModifierFix.isAvailable

GitOrigin-RevId: 949cb5d4e74a7ccb28b36268bae141790453680f
2022-10-12 17:24:26 +00:00
Tagir Valeev
de8adb5253 [java-inspections] ModifierFix: preview when startsInWriteAction = false and when changes are in another file
Fixes some reports of EA-622822

GitOrigin-RevId: 2e5fd359640ebc500403c0f5108e678380c2584e
2022-10-12 17:24:24 +00:00
Tagir Valeev
ccf6ab043e [javadoc] Generate package documentation when no package-info is present
Somewhat improves IDEA-302001

GitOrigin-RevId: 46864735a2d442d3cacebab96ec4d49b783c82a0
2022-10-12 17:24:22 +00:00
Tagir Valeev
f59b68df2e [java-doc] JavaDocInfoGenerator: cosmetic
GitOrigin-RevId: cb6ad25013be6a3f851aa508481f6285b7155975
2022-10-12 17:24:20 +00:00
Tagir Valeev
4326e56456 [java-analysis] IDEA-303505 'Constant values' false negative for '@org.jetbrains.NotNull' used with '@javax.annotation.meta.TypeQualifierDefault'
GitOrigin-RevId: 7cfa36eb8dddbc000f65623878744085460f31ac
2022-10-12 17:24:19 +00:00
Tagir Valeev
cbe007679b [java] IDEA-293932 Extend selection selects unnecessary trailing whitespaces
GitOrigin-RevId: 40ce5ff3c6839ec4f1b2393964050e409fa1f658
2022-10-12 17:24:15 +00:00
Olga Klisho
9ee0e400c4 [java] (IDEA-296321) added support for selecting iterations of parameterized tests + review fixes2 + iml revert
GitOrigin-RevId: 98970760af1b7b034e56d1b801eb2d1efc12a3e3
2022-10-11 14:26:47 +00:00
Olga Klisho
8a1a2289c6 [java] (IDEA-296321) added support for selecting iterations of parameterized tests
GitOrigin-RevId: c29c7640c3cd5b8368548ede49222106487b7f25
2022-10-11 14:25:34 +00:00
Andrey.Cherkasov
375b7b102f [java-intentions] Implement quick-fix to create record from deconstruction pattern, if the identifier is unresolved
IDEA-303300

GitOrigin-RevId: f4cd752f81987885a72b5da8d898f875a5198dcb
2022-10-10 17:13:10 +00:00
Dmitry Avdeev
f8ec73843a introducing AsyncProjectViewPane to replace deprecated AbstractProjectViewPSIPane
GitOrigin-RevId: 7c41c51a1c2d75a96a45cb9567b4d92fc4a92921
2022-10-10 15:14:47 +00:00
Andrey.Cherkasov
2cd4777e8a [java-intentions] Create type parameter is not available for record components
IDEA-291332

GitOrigin-RevId: 636d4212fe6eaea5d1269c85b83be710ee4b5869
2022-10-10 12:17:22 +00:00
Andrey.Cherkasov
0e1dd4d61b [intention-preview] CreateRecordFromNewFix: start template and set up generic parameters
GitOrigin-RevId: e7fea4d4b8c11d584d53bdf9450d4a29cfb19f6b
2022-10-10 12:17:19 +00:00
Tagir Valeev
9ddaefc198 [java-refactoring] Introduce variable: disable if pattern declared outside is used, and we cannot surround
Fixes IDEA-303133 Extract variable from expression should be disabled when it uses a pattern variable declared earlier

GitOrigin-RevId: 360e6eadd89a047e0699fa077e9a1417bfed4340
2022-10-10 11:03:59 +00:00
Tagir Valeev
4038e6f185 [java-templates] Disable postfix fori/forr for non-List iterables (IDEA-303403)
GitOrigin-RevId: ecd6bdbe95d1244a89d841469ae02f320c72780c
2022-10-10 11:03:56 +00:00
Bas Leijdekkers
6b69b51856 [java] don't suggest inaccessible members from libraries for "Rename reference" fix
GitOrigin-RevId: 75d102222ca2b0674dc85b64a442cd5acac00036
2022-10-08 15:36:49 +00:00
Bas Leijdekkers
f2d5bab3d7 Use common quick fix bundle
GitOrigin-RevId: 33d6956edc802a2133c7f91152bf3b04eff9ac11
2022-10-08 15:36:34 +00:00
Bas Leijdekkers
3a2f86df34 [java] better similarity sorting for "Rename reference" fix
GitOrigin-RevId: 57ad391d08da5f8d750f5fb1bf91b96f2cb5c9a7
2022-10-08 15:36:28 +00:00
Bas Leijdekkers
6077252349 [java] remove duplicates from "Rename reference" fix
GitOrigin-RevId: da423bb06ed0043d9d444491e73f48148e9087e1
2022-10-08 15:36:25 +00:00
Alexey Kudravtsev
8a6104f6be replace manual asserts with standard assertIsDispatch()
GitOrigin-RevId: 8fb5ef1e28e14a2dc35448f2f2ff3ff59446ad5c
2022-10-08 14:35:12 +00:00
Roman Ivanov
199ac4a78b [java] actions in AnnotationInlayProvider: add action update thread
GitOrigin-RevId: 3a97d84f0665d1d495c83e54596e96694a05ac75
2022-10-07 12:48:26 +00:00
Roman Ivanov
c3164ace1a [java] do not suggest to create type parameter in instanceof
IDEA-253901

GitOrigin-RevId: 0675634e1020633bb56d3bd110e2aca3ab794a9c
2022-10-07 11:09:53 +00:00
Roman Ivanov
86f798194c [java] do not suggest type parameter patterns
IDEA-303299

GitOrigin-RevId: 45364631c438b20532fd13ed54ddc9f7125b7d56
2022-10-07 11:09:50 +00:00
Tagir Valeev
6c27ce4b06 [java-completion] Complete types (and only types) inside deconstruction pattern (IDEA-302982)
Also: parse single identifier inside deconstruction list as a PsiTypeElement, to make it resolvable and improve completion

GitOrigin-RevId: 261cf5b930b06e1cab00c42bb6226a2454d6c15c
2022-10-07 10:14:45 +00:00
Tagir Valeev
d9193529e2 [java-inspections] MakeVarEffectivelyFinalFix: stream API fixer
GitOrigin-RevId: e6f1c6e2d80af6332bae642391ca4b6113aa12ed
2022-10-06 15:55:11 +00:00
Tagir Valeev
b95b63e818 [java-inspections] MakeVarEffectivelyFinalFix: move to separate package; allow more initializers
GitOrigin-RevId: 32c6fca2a43cbb9752056e1403ffc5ac3bba08b9
2022-10-06 15:55:07 +00:00
Bas Leijdekkers
e306a31d48 Avoid hardcoded string warning
GitOrigin-RevId: 1a9e7c55ee235defff646ef173c50d58c295964a
2022-10-05 09:34:22 +00:00
Andrey Sokolov
0f0c3aab8e Similar usages: added a registry for enable/disable java usages clustering
GitOrigin-RevId: 5e257680aa556f71288924d85fac1192941e1190
2022-10-04 23:35:25 +00:00
Alexey Kudravtsev
9023b5b416 move ModuleUtilCore.projectContainsFile() call to background to fix EA-659439 T: DirectoryIndexImpl.getInfoForFile
GitOrigin-RevId: 6576011f064b34fe8c3d27c282a89896dbae5209
2022-10-03 16:37:46 +00:00
Bart van Helvert
34b5c74de3 [java] Add preview for create enum constant from usage
GitOrigin-RevId: d519b078ada1fe614266ec38343e2acbcdfe3495
2022-10-03 11:16:24 +00:00
Bart van Helvert
79b0b0d16c [java] Add preview for create constructor from usage
GitOrigin-RevId: 4b67e4a45e2df12c584ca24968a1539e17fd5e46
2022-10-03 11:16:21 +00:00
Bart van Helvert
b3405d3371 [java] Add preview for create method from usage
GitOrigin-RevId: 53420cd10dc81074585df3cc1ae718dd842f4b83
2022-10-03 11:16:18 +00:00
Bart van Helvert
6cfffdd867 [java] Add preview for create constant field from usage
GitOrigin-RevId: 229a46c269ae31759aa455690a10c83c71de6874
2022-10-03 11:16:15 +00:00
Bart van Helvert
80fdb19ab7 [java] Add preview for create field from usage
GitOrigin-RevId: 197b1b310efea9ae58e80b685d6fc8c44a389b20
2022-10-03 11:16:12 +00:00
Bart van Helvert
9a4cba4609 [java] Add preview for create getter from usage
GitOrigin-RevId: 68339855b824fe060d2da272791ab4b615121ab5
2022-10-03 11:16:08 +00:00
Bart van Helvert
c243a889b4 [java] Add preview for create setter from usage
GitOrigin-RevId: 5e7563d672b2af415513ab6a079b85908f1ef9f4
2022-10-03 11:16:05 +00:00
Bart van Helvert
5fc1a5d3e6 [java] Add preview for create property from usage
GitOrigin-RevId: 3ac73589d21a14fdc53bf78f83bf4d446cd51277
2022-10-03 11:16:02 +00:00
Andrey Sokolov
1eca882374 Similar usages: mark elements related to usage in the context,
IDEA-302326  Similar usages: distinguish usages from the same context element (statement)
KTIJ-23005 Similar usages: constructor call and variable type are in the same group
ShowUsageFeaturesInternalAction now provides features in alphabetic order

GitOrigin-RevId: d973a9c5bb07daadbceb9cc7d45a73b8b2bef52a
2022-10-03 10:50:25 +00:00
Tagir Valeev
8984cb6ba7 [java] Defensive check in JavaTypedHandler#handleEquality
Should fix EA-669086 - IOOBE: SegmentArrayWithData.getSegmentData

GitOrigin-RevId: 098877e0513e45f6ac86190f7eda1d359b9a48f5
2022-09-30 12:10:29 +00:00