Commit Graph

20445 Commits

Author SHA1 Message Date
Anna Kozlova
4657617439 [line markers] reuse goto implementations for gutter navigation
GitOrigin-RevId: c6cc57b8cf1c550003aa986640ed2ccd5a49d271
2022-12-09 14:47:21 +00:00
Roman Ivanov
20b78d9de1 [formatter] commit and do postponed operations in JavaCStyleCommentSpaceConverterFormatProcessor
GitOrigin-RevId: 54365d09595afd1ab9f7e2b4a9f498bb69507250
2022-12-09 13:40:17 +00:00
Aleksey Pivovarov
1b69822110 vcs: cleanup - formatting
GitOrigin-RevId: dfe136a1f03c984f4ee0d58f89fa7e584c2fff50
2022-12-09 10:47:35 +00:00
Aleksey Pivovarov
4241d63cc8 IDEA-308074 vcs: fix incorrect modified file highlighting range in "Analyze Stacktrace"
The off-by-one error in fileLineRange was fixed in 9c052d677f.

GitOrigin-RevId: 44b126e26daa0ec3183e4496d6ff7b83a65285ce
2022-12-09 10:47:33 +00:00
Anna Kozlova
c40deb478a extract gutter tooltip builder
GitOrigin-RevId: 29c648cda289bd8d8af41b7b73ada952fd373606
2022-12-08 18:10:56 +00:00
Alexey Kudravtsev
dba91f1146 cleanup: extract ArrayUtil.contains
GitOrigin-RevId: 657f7feef66073a76f2a76635ceb9af79e347d56
2022-12-08 16:54:26 +00:00
Alexey Kudravtsev
7005b4f969 compute expensive stuff in ctr to fix EA-658593 T: DirectoryIndexImpl.getInfoForFile
GitOrigin-RevId: 1419a901016640186c9a5c5953c120610792568d
2022-12-08 15:19:32 +00:00
Alexey Kudravtsev
d65b9f9ec2 cleanup: degenericize
GitOrigin-RevId: 76e478e315b5d8f704558dd3eba9daa7f2032695
2022-12-08 15:19:25 +00:00
Andy Magee
1514bd3035 Add EP for override member annotations
This fix addresses https://youtrack.jetbrains.com/issue/KTIJ-21347.

The "Override Member" action currently removes all annotations except
for those marked with @RequireOptIn. This change adds an extension point
that allows plugins to specify whether any other annotations should be
retained as well.

Since there is already a java `OverrideImplementsAnnotationsHandler`,
this change refactors out the common applicable portion of that handler
to a super interface and extension point in the platform that can be
reused by the Kotlin plugin.

Note that the K2 version of Override Members would not show this
behavior, since it actually retains all annotations. This is likely an
unintentional change, and I filed
https://youtrack.jetbrains.com/issue/KTIJ-23517 to track that.

closes https://github.com/JetBrains/intellij-community/pull/2215

GitOrigin-RevId: eef90d760b36f8a69683303bc7418945eb88e952
2022-12-07 12:47:30 +00:00
Tagir Valeev
21180abb98 [java-completion] IDEA-307738 dummy "IntellijIdeaRulezzz" text in autocompletion
GitOrigin-RevId: bc4875d8a950aa8f32eefe3b18fc4940d28a5ef5
2022-12-07 12:41:24 +00:00
Roman Shevchenko
23cb4093a2 Cleanup (warnings; formatting)
GitOrigin-RevId: 342a28d91bba2e0b19241b3c6ef235d02ca199f8
2022-12-06 21:31:09 +00:00
Bart van Helvert
34f4bcc238 [intentions preview] IDEA-307631 Fix AddExtLibrary preview when fqn isn't available
GitOrigin-RevId: 7348b1f5ddc6c85f2e7375f1dfdac6c6b694ef55
2022-12-06 21:05:40 +00:00
Vladimir Dolzhenko
5cabceb29e [kotlin] fix i18n
GitOrigin-RevId: 34589c5453c27c06676d4daad745492dd2cc15ee
2022-12-06 15:06:43 +00:00
Dmitry Avdeev
104e488115 EA-553274 - T: FileManagerImpl.findDirectory
GitOrigin-RevId: 62561b6de53723b2a93598895294bb48c3d0f802
2022-12-05 18:17:47 +00:00
Alexey Merkulov
0ed9ba4975 IDEA-305303 Add option to generate onboarding tips in the new Java project
IJ-CR-99636

GitOrigin-RevId: 0bb1d45c4f1dbc3ef65212e859c53da01c561a57
2022-12-05 16:56:36 +00:00
Tagir Valeev
604f30df53 Fix constant values warnings
GitOrigin-RevId: 294c425cf982195817b4c8c762930676187abd9d
2022-12-05 15:06:23 +00:00
Alexey Kudravtsev
793fab22f4 ArrangementEntry: add wildcards to help refactoring to immutable collections
GitOrigin-RevId: 4286d7065b0f36d8794076f46f1ea4af83d7124e
2022-12-05 14:50:52 +00:00
Vladislav.Yaroshchuk
5231df739a IDEA-269182 Move jarRepository.xml content into JavaPlugin.xml
GitOrigin-RevId: 2e288da996900a96cf8d07d643090977e7ad0c4d
2022-12-05 14:31:33 +00:00
Vladislav.Yaroshchuk
26bd8608d2 IDEA-269182 Move jar repository actions names to java plugin bundle
GitOrigin-RevId: 9d3923a1fa10145fa58b77dbbab94da9c959eda6
2022-12-05 14:31:31 +00:00
Bas Leijdekkers
46522509f0 [Java] ModifierFix: fix preview when the modifier is not from the current file
GitOrigin-RevId: 25f5da768acb943fe10c984baa0b15904a78a9ad
2022-12-05 13:46:38 +00:00
Tagir Valeev
b0b19ea5b5 [java-completion] IDEA-305420 Complete statement does not work for switch expressions
GitOrigin-RevId: 0cd50d0ef1168b9bf637c8dcb0972f27d7ce2156
2022-12-02 17:29:19 +00:00
Valentin Fondaratov
533b58f474 Revert "Revert "improve simple fleet alt-enters a bit by executing them on a psi copy""
This reverts commit f40bf2f02e9b0e3227ba1c207add5dbcadbbb3fe.

GitOrigin-RevId: ddaf5212a2a7e93374c97abb35429faba91f92c3
2022-12-02 12:52:22 +00:00
Valentin Fondaratov
22919374b5 Revert "improve simple fleet alt-enters a bit by executing them on a psi copy"
This reverts commit 3b2058cb77dc45e015c97082dd998f3156a7efd2.

GitOrigin-RevId: cc45551f3fe22d22389e446135aa3ad8eebfafbc
2022-12-02 09:49:36 +00:00
Vladislav.Yaroshchuk
420fa8d79d IDEA-269182 Create new internal actions for JAR repository library
Hidden and disabled by default, enable via `intellij.yaml`

GitOrigin-RevId: 7b0f567544e01cddd418f5e226d89f5132625796
2022-12-02 02:12:04 +00:00
Vladislav.Yaroshchuk
268c5985aa IDEA-269182 Add Repository library settings in intellij.yaml
GitOrigin-RevId: 6cb5ff8e486ac64b7d8a96e408d7c06cb79580cd
2022-12-02 02:11:59 +00:00
Valentin Fondaratov
b57d32100c improve simple fleet alt-enters a bit by executing them on a psi copy
GitOrigin-RevId: fbbcf581f1a5c21e61b431a6f479cf9d1b5e3102
2022-12-01 23:02:53 +00:00
Yuriy Artamonov
193013fd5d [npw] IDEA-307231 Replace VirtualFiles by nio.Path in API of AssetsProcessor
GitOrigin-RevId: 13095dda24b7c3ed615a59853fcde5c85ce8d2cf
2022-12-01 18:51:17 +00:00
Tagir Valeev
15b23c536a Fix constant value and some other warnings
GitOrigin-RevId: 8c9ffeab46602a73270451ae97bd25a47a2076e4
2022-12-01 17:34:54 +00:00
Bart van Helvert
86c5ab8697 [java] Remove code duplication from CreateTargetAction
GitOrigin-RevId: 6883604bd448bdefa8d27fb00a0bc4dd101ab3a4
2022-12-01 17:23:07 +00:00
Alexandr Suhinin
e3d89760cb [extract method] IDEA-306846: don't miss member usages after this expression
GitOrigin-RevId: 12043137a28a9de984f2065c7cdca3b049e10a87
2022-12-01 13:46:36 +00:00
Andrey Cherkasov
fb6fd0a07d [java-inspections] MagicConstant: return the 'visited' argument back to avoid potentially creation a loop by Slicer
IJ-CR-98919

GitOrigin-RevId: 64c036bc9ee6bb7ed5edb71349da7542f6667444
2022-12-01 12:45:33 +00:00
Andrey Sokolov
59db5558ae Similar usages: Do not process non-trivial code blocks for java 'if' and loop statements
+ cleanup in JavaSimilarityFeaturesExtractor.visitReferenceExpression

IJ-CR-98301

GitOrigin-RevId: 46f865e452bd8b4688321165a5e99c85271d36ea
2022-11-30 18:03:34 +00:00
Dmitry Batkovich
f5a431fd05 forcibly refresh external annotations json after creation IDEA-306979
GitOrigin-RevId: ea4029a6cc25699afc77d43dc83b255faf53649d
2022-11-29 18:41:13 +00:00
Tagir Valeev
ca92dff63c [java-inspections] Use context in PsiUtil.getEnclosingStaticElement
Alternative fix for IDEA-157610 Don't shorten reference in static context when in dummy holder

GitOrigin-RevId: 7f0ec05cea2e7e762a54a76ac33a6ee1e544075f
2022-11-29 14:05:41 +00:00
Bas Leijdekkers
b545b3b8c2 [kotlin] only report Unused declaration on Java elements
see 5162c42b4d19ace347400ba927a415788a3e3d80

GitOrigin-RevId: eb2b90f3a7e580edda7a9412b6abca4e5f7ab3f1
2022-11-28 20:59:06 +00:00
Alexey Kudravtsev
cb354509bb tests: replace newArrayList() with immutable list
GitOrigin-RevId: 83ad164a681156a17994950fb05969a2659a3949
2022-11-28 19:58:24 +00:00
Alexey Kudravtsev
b2996cda44 deprecate ContainerUtil.newArrayList(Object) to prefer more immutable List.of()
GitOrigin-RevId: 7aadc5db58512750fbf47563df2d77f9be4c6e83
2022-11-28 19:58:14 +00:00
Tagir Valeev
7ed814862d [java-inspections] UnusedDeclarationInspection: run under read action
GitOrigin-RevId: 5f0e9acb6e9e819f31d50ffff4d101ace77ba1f9
2022-11-25 16:04:32 +00:00
Tagir Valeev
f335f99272 Revert changes in *UnusedDeclarationPresentation
Read-action is required on higher level

GitOrigin-RevId: 3e7db2bfe4b613075e35c4e2184bfa52d5bfaebb
2022-11-25 09:53:22 +00:00
Tagir Valeev
335cd58f6e [java-inspections] UnusedDeclarationInspection: run under read action
GitOrigin-RevId: b8ffa421fde288f5a5fa16376f8e6ed6d9fb4440
2022-11-24 17:38:53 +00:00
Peter Gromov
626dc6aa40 [java spellchecker] don't spellcheck overridden method names
GitOrigin-RevId: 5e30ecfa06fe2e1a172e1906c715e2494484cd0f
2022-11-24 10:32:21 +00:00
Andrey Cherkasov
c11147ce04 [java-inspections] MagicConstant: fixes after review, tests
GitOrigin-RevId: a5a93b6e8e025b4831b75e00fc48683c30504db8
2022-11-23 15:10:56 +00:00
Alexey Kudravtsev
1ba87611b3 support auto-importing in java code fragments
GitOrigin-RevId: e0ac3325b353a2f801fb379ea22369657876b176
2022-11-23 13:39:01 +00:00
Bart van Helvert
6184239257 [java-inspections] Fix file modifier for targeted intention actions
GitOrigin-RevId: f14f17cd2733d70caa35a375320eb8b746a313d2
2022-11-23 12:43:10 +00:00
Bart van Helvert
ce6da71642 [java-inspections] Add read action to overriding method search for modifier fix
GitOrigin-RevId: ee8f74b2204749e89efffa28ebeb46587ef269a1
2022-11-23 12:43:07 +00:00
Bart van Helvert
470b26354c [java-inspections] Fix change method parameters preview
GitOrigin-RevId: 1e1800c2e4c14e0cdcd9dc529692426de374cf7c
2022-11-23 12:43:06 +00:00
Bart van Helvert
7dbeba44c9 [java-inspections] Make change method parameters more readable
GitOrigin-RevId: 1b8f9a6e6ca1a71ef663bf8332a06a283ddd1227
2022-11-23 12:43:04 +00:00
Bart van Helvert
fb2dfd9223 [java-inspections] Fix ChangeType preview
GitOrigin-RevId: 25a733080e839b8ad5958079dd4e25e027e34962
2022-11-23 12:43:03 +00:00
Bart van Helvert
cff7c5fccb [java-inspections] Mark CreateTargetAction as safe for preview
GitOrigin-RevId: c758dcb3c4486658da47e48b4a02e9c04ecad497
2022-11-23 12:43:01 +00:00
Bart van Helvert
da4716eecd [java-inspections] Remove custom preview for modifier fix
GitOrigin-RevId: 063f975c6168ba4fafbf67b37a6391c478b86e1d
2022-11-23 12:42:57 +00:00