Commit Graph

84 Commits

Author SHA1 Message Date
Mikhail Pyltsin
b1cfbfa235 IJ-CR-162106 [java] IDEA-360079 live templates for instance main methods in implicitly declared classes
- add psvm for normal class, implicit class and normal class with instance 'main' method

GitOrigin-RevId: 46858978ef26162826e951e032d8eca4e85cac49
2025-05-09 14:12:08 +00:00
Mikhail Pyltsin
4552bec0d0 [java-completion] IDEA-360079 completion for args in main methods
GitOrigin-RevId: 853671b614c02c3851e4371d956631e375d0a116
2025-05-09 09:06:33 +00:00
Mikhail Pyltsin
b2368cb44b [java] IDEA-360079 add simple source file
GitOrigin-RevId: 16e846dabdf1235053f53ac95e5c0183e74ec3e0
2025-05-09 09:06:33 +00:00
Mikhail Pyltsin
ec18253a22 [java] IDEA-360079 live templates for instance main methods in implicitly declared classes
GitOrigin-RevId: 60f08b8d4575de163bcba438933cf146fdbcd020
2025-05-06 08:46:49 +00:00
Ruslan Cheremin
ad74c6be73 [indexes] IJPL-181002, IDEA-327594: re-designed input filtering for IdIndex
+ if `IdIndexer` (`IdIndex` sub-indexer) implements `FileTypeIndexingHint` -- it is used by `IdInputFilter` to customize input files filtering
+ this feature is used to re-implement `index.ids.from.java.sources.in.jar` (instead of extension points)
+ test for `JavaIdIndexer` filtering
+ adjust `IdIndex`: processes .class-files only conditionally

+ rename registry keys (unify naming):
+ `ide.index.id.skip.java.sources.in.libs`: enables/disables indexing of java sources in libraries (index .class-files instead)
+ `ide.index.trigram.enable.exclude.extensions`: enable/disable excluding of .java-sources in libraries from trigram index

GitOrigin-RevId: 8b8e40d621e01466854364c282d00a4731d5f4de
2025-05-03 21:06:35 +00:00
Ruslan Cheremin
a8938c42d0 [indexes] IJPL-181002, IDEA-327594: comments and TODOs
GitOrigin-RevId: 5704dcb47ac1ec33cbaebb710de1b277f790d521
2025-05-03 21:06:35 +00:00
Ruslan Cheremin
6455d3f8d9 [indexes] IJPL-181002, IDEA-327594: option to exclude '.java'-sources in libraries from IdIndex
+ make `IdIndex` input filter extendable with `ExtensionPoint`
+ Use extension point to exclude libraries `.java` from `IdIndex`, if `.class`-files parsing is enabled (`index.ids.from.java.sources.in.jar`)

GitOrigin-RevId: 736dce7ed09f58c632a005df82ff821b1e18c8d2
2025-05-03 21:06:35 +00:00
Ruslan Cheremin
814fd0db32 [indexes] IJPL-181002, IJPL-188: refactoring & preparation
+ extracting common `IndexFilterExcludingExtension` and `ExtensionCustomizableExcludes` helper to be used by both Id & Trigram indexes (and maybe others)
+ renaming and moving classes for mental clarity

GitOrigin-RevId: e01b712072e0453253495c263573672414619bdc
2025-05-03 21:06:35 +00:00
Nikolay Chashnikov
52ee8d5d0f [java] move classes in 'java.impl' inheriting from classes from 'java.analysis.impl' to a different package (IJPL-149126)
This is needed to avoid IllegalAccessError if 'java.impl' and 'java.analysis.impl' are loaded by different classloaders. For example, EntryPointsManagerImpl inherits from EntryPointsManagerBase, and an anonymous class inside EntryPointsManagerImpl refers to a protected field EntryPointsManagerBase.myWriteAnnotations. Since the anonymous doesn't inherit from EntryPointsManagerBase, such access works via package-private visibility because both classes are located in the same package and loaded by the same classloader. Moving EntryPointsManagerImpl to a different package forces javac to generate an accessor method in EntryPointsManagerImpl and use it from the anonymous class to access the protected field.

GitOrigin-RevId: 8c7b92c473f490f48f4226f0ed49339ef83cd4c3
2025-05-02 08:05:38 +00:00
Mikhail Pyltsin
8503aaa88a [command-completion] IDEA-371578 Command completion: add Go to super method/class
GitOrigin-RevId: e708527373462b1de92dfef2a4b1ae9eba67778b
2025-04-27 22:01:31 +00:00
Dmitry Batkovich
de7d4de1c0 IJPL-181799 execute java move up/down statement actions on FE in RD
GitOrigin-RevId: 5df74728054974e44f2664018c3535c16c24927d
2025-04-24 13:24:03 +00:00
Dmitry Batkovich
210b056678 java: IdeJavaFoldingBuilderBase on frontend (part of java folding builder which doesn't depend on resolve) IJPL-185110
GitOrigin-RevId: 1932afe8a0a18e0a475d047461bf5e158761e35a
2025-04-23 20:11:43 +00:00
Dmitry Batkovich
3f520e829a java: move soft-wrap calculation to shared module (allow to use it by editor on frontend) IJPL-185110
GitOrigin-RevId: a9912c146eb8394ebe0134cdf91374577e387bf1
2025-04-23 20:11:43 +00:00
Bart van Helvert
dd358bc239 [java] Set the highest released language level through the registry
This will allow changing the language level combobox through the cloud registry. #IDEA-369013 Fixed

GitOrigin-RevId: 1874b9aa5f617795a239f3941572318fc64f1b25
2025-04-22 13:32:02 +00:00
Dmitry Batkovich
8cedb6fa60 java: move JavaWhiteSpaceFormattingStrategy to frontback, execute JavaMoveLeftRightHandler on frontend only
GitOrigin-RevId: a9fe813dc835e9a4286ed5effe3e4f0d97274ae7
2025-04-20 20:48:24 +00:00
Dmitry Batkovich
6319a70ded java: move code style and formatter to frontback. It activates features like smart indent on frontend side
GitOrigin-RevId: 5e124ce9dc73155495ebf82ce283c3f9d5516e53
2025-04-19 21:43:40 +00:00
Dmitry Batkovich
21a4616d5a java: drop FrontendJavaTypedHandler, move its code to JavaTypedHandlerBase
GitOrigin-RevId: d53e5564dc1813adfe99e9544c9cde5ddbbaac13
2025-04-17 13:10:08 +00:00
Dmitry Batkovich
8eb8701ec7 java: move JavaDefinitionService to frontback module
GitOrigin-RevId: b1fdfa882cf75e5dc5aa02f9cce8c889f7c2f994
2025-04-17 13:10:08 +00:00
Dmitry Batkovich
190697d191 java: use the same JavaSmartEnterProcessor on frontend and backend
GitOrigin-RevId: 70fff966ed99e9f0494a988e989284b29c2bda37
2025-04-17 13:10:08 +00:00
Maksim Zuev
dcd2a74aae [rd debugger] IDEA-370752 Move ThreadDumpAction to java.frontback module to be available at FE
GitOrigin-RevId: 66f767742d0bdcfb3baa5c2612d23a985346dd78
2025-04-16 20:14:15 +00:00
Dmitry Batkovich
80f39095c8 java: move java psi to frontend (and drop a lot of almost duplicated code)
GitOrigin-RevId: 91abdd2d6f95d7940ec19ca573d9bbc76609f9eb
2025-04-15 20:14:56 +00:00
Dmitry Batkovich
c505f10ac0 convert JavaPsiPlugin.xml to v2
GitOrigin-RevId: 1fbc1ea107c208b0a7fc7c8b8e8fe5ca1e605e4a
2025-04-13 15:15:41 +00:00
Dmitry Batkovich
97840b8c75 java: deduplication in front/back extensions registrar
GitOrigin-RevId: 9c4edf9c9b4c9e7367b6051c678cea8fa83747de
2025-04-13 15:15:41 +00:00
Mikhail Pyltsin
52dad5c893 [command-completion] IDEA-370150 new set of commands
GitOrigin-RevId: 3ffbacc6792cf871e58b5fd85c55e310ab260405
2025-04-07 18:20:19 +00:00
Egor Ushakov
7901b255c7 IDEA-370410 Support thread dumps for openj9
GitOrigin-RevId: d9c674ccf2e1d7f6e03679a0b1d3b372d2b88fae
2025-04-07 16:48:28 +00:00
Gregory.Shrago
77ad50605f IJPL-158073 Migrate all GetDataRules
GitOrigin-RevId: be93d483696b1c4733499d3937f44e78c81345cd
2025-04-07 00:56:12 +00:00
Yuriy Artamonov
1c524da10b [project] Mute more spelling problems for Java and Python plugins
GitOrigin-RevId: c75d3634ebb3d649fea82e78fddc9d3c186d7493
2025-04-06 17:55:11 +00:00
Egor Ushakov
39aef7ff9d IDEA-370410 thread dump provider
GitOrigin-RevId: b1e0b82a3d83967af89a6fed5f178e7f1f286fd8
2025-04-04 19:04:51 +00:00
Mikhail Pyltsin
8e4ed43a3f [command-completion] IDEA-369839 part of Support intention preview for all commands in command completion
GitOrigin-RevId: ece703b31a5e8ef765802e69b09f4629811deeb4
2025-04-02 20:17:34 +00:00
Mikhail Pyltsin
98a743bc4d [command-completion] IDEA-369839 part of Support intention preview for all commands in command completion
GitOrigin-RevId: 020a2d6abb6e2cf9f6f6760ed1084dfc2753a24c
2025-04-02 20:17:33 +00:00
Roman Shevchenko
ff56221f6d [java] starting the build process in a new session to push it to a separate scheduler autogroup
GitOrigin-RevId: 933861c1e0ea185242e7c9864bfee2367d70604e
2025-03-28 15:20:24 +00:00
Bartek Pacia
a6ff3d6fbc [java-inspections] ClassCanBeRecord: support running in batch mode + update description
Follow up to IJ-MR-156343

#IDEA-252930 fixed

Merge-request: IJ-MR-158206
Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com>

GitOrigin-RevId: 07013864ce6a86007fb82addb1b9a04f03844911
2025-03-28 14:50:23 +00:00
Mikhail Pyltsin
0ee5c271d9 [command-completion] IDEA-359174 IDEA-369191 create method from usages for Kotlin
GitOrigin-RevId: d98b2d55c7677a51f0970e2a150af31580c7f118
2025-03-26 17:23:20 +00:00
Tagir Valeev
952df41937 [java] ExternalAnnotationsManager: update annotation root in ModCommand
Part of IDEA-369600 Convert MakeAnnotationExternal to ModCommand

GitOrigin-RevId: e3a803ca441d5257cd950a0540b8bb153b9e31cd
2025-03-25 20:00:11 +00:00
Yuriy Artamonov
1cacbb615b [min-build] IJPL-35276 Fix intellij.java.ide.customization actions
GitOrigin-RevId: c79a06f795887ec12c5d807e76543b50b6314aef
2025-03-20 09:56:47 +00:00
Andrii Zinchenko
d3f4c2ba3d [min-build] IJPL-35276 add new project action
GitOrigin-RevId: cc433ec30466ae988440e5fbd625c79e575e4835
2025-03-20 09:56:47 +00:00
Andrii Zinchenko
7256665b8e [min-build] IJPL-35276 intellij.java.ide.customization: extract java to java plugin
GitOrigin-RevId: 7b2ca2797bce860c91cc93ee7e4d3ca831de630f
2025-03-20 09:56:47 +00:00
Nikolay Chashnikov
c492f15332 [java] convert modules reused in the frontend to embedded content modules (IDEA-366600)
This way we don't need to specify them in the plugin layout manually. Also, we need to convert all modules in the Java plugin to content modules to get rid of an additional "Java Extension for Remote Client" plugin.

GitOrigin-RevId: 90956b93078784ffcea5f75038e86a4ae4846488
2025-03-14 19:20:52 +00:00
Mikhail Pyltsin
2624f48c8e IJ-CR-157532 [command-completion] IDEA-359174 IDEA-368961 'create from usages' action
- enable by default

GitOrigin-RevId: 7482d63ff989ca7b57e09897c7dc3619a52c3653
2025-03-14 10:38:13 +00:00
Egor Ushakov
489fca6fae IDEA-368449 Modify NPE message in console for Java 30th anniversary - fixes for review
GitOrigin-RevId: 7d4bedd084b8e0f4ea21f2d604f42303fdc08513
2025-03-13 18:35:00 +00:00
Mikhail Pyltsin
99a32b348e [command-completion] IDEA-359174 IDEA-368961 'create from usages' action
GitOrigin-RevId: a7f4ddc1069697e8e4933553cc49302cd9c0b763
2025-03-11 20:46:00 +00:00
Egor Ushakov
425d4088c4 IDEA-368449 Modify NPE message in console for Java 30th anniversary
GitOrigin-RevId: 6b62e3a667907da7a1dfec9e5432aef22d3b9ee8
2025-03-11 13:56:55 +00:00
Tagir Valeev
8620b4d854 [java-highlighting] Move JavaPlatformModuleSystem to codeserver.core and deprecate/merge with JavaModuleGraphHelper
We don't need both service and EP to support modules; one thing would be enough. JavaModuleSystem is still used from Kotlin compiler, so should be kept for a while.

GitOrigin-RevId: d55622468eea50cd60c99ada794b6c855dcc0079
2025-03-03 18:30:06 +00:00
Tagir Valeev
85c83b0ecc [java-highlighting] IDEA-368383 Create a new extension point to register error highlighting fixes
GitOrigin-RevId: 4a7f83a1c75c9b772bb68de6cc46346f68177a42
2025-03-03 12:11:00 +00:00
Bart van Helvert
91355ffd71 [java] Migrate contract provider extension point to hard coded values
#IDEA-366120

GitOrigin-RevId: f0a38cf77f2a636e4d2b58f93f6d225d57d5738f
2025-02-23 18:53:13 +00:00
Louis Vignier
45b8b99591 [java] Fix the auto-test floating toolbar behavior
Auto-test is disabled:
- when another test configuration is started
- when the test configuration tab is closed

#IDEA-365697 Fixed
#IDEA-365668 Fixed

GitOrigin-RevId: 417cb8a692feda19ccb635c8732b52613a71b6b3
2025-02-21 19:24:52 +00:00
Tagir Valeev
5bb9466a6c [lombok] JavaErrorFilter introduced; used in LombokHighlightErrorFilter instead of error message matching
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: b8c77c60384f35386cbd38b1a642ca850a98bec9
2025-02-21 10:35:05 +00:00
Mikhail Pyltsin
4f7fda90b8 [command-completion] IJ-CR-154776 IDEA-359174 first draft of command completion
- move intention points

GitOrigin-RevId: 5e430b26148ef814618ea687b51e5ddefcef963d
2025-02-20 12:27:12 +00:00
Xuan-Son Trinh
a63411ea7b IDEA-367562 Make the DisableCompilationDependenciesResolutionTask public
GitOrigin-RevId: 8e1d31a4d357f06aeea95f1af1ea965358c73383
2025-02-19 15:12:36 +00:00
Mikhail Pyltsin
71b95a736f Revert "[java-runner] IJ-CR-154797 IDEA-363985 Temporary workaround for JNI restriction"
This reverts commit dda8badb

GitOrigin-RevId: a52b17f30c338d7bb11caecf17e32690f6621582
2025-02-18 12:51:57 +00:00