Commit Graph

22331 Commits

Author SHA1 Message Date
Ilia Malakhov
32a5548e23 IJPL-185294 [refactoring] Move loadExtensionWithText to intellij.platform.testFramework
GitOrigin-RevId: fd41e2f70858313b1b56a7aae6e2e4fed995c9f7
2025-05-09 18:03:52 +00:00
Tagir Valeev
1cadb8a667 [java-refactoring] Inline delegating variable: an ability to keep the current variable name
Fixes IDEA-371649 Inline variable using the later name

GitOrigin-RevId: a31d332762af3721245af31841562ff48a0cb3a9
2025-05-09 18:02:40 +00:00
Mikhail Pyltsin
0acd402d7f [java-inspections] IDEA-360279 Unable to convert a class into implicit declaration when package is present
GitOrigin-RevId: 60ea75dd154ad17728ad9732c1819916cbaf5751
2025-05-09 17:47:47 +00:00
Tatiana Elfimova
99d623cfd0 ABT-37 Adjust experiment conditions
- Added registry key `search.everywhere.fuzzy.file.search.test` to support testing of fuzzy search.
- Enabled `search.everywhere.fuzzy.file.search.enabled` flag by default and changed experiment conditions to allow users in the experiment group to disable fuzzy search manually

GitOrigin-RevId: 8b2d5ace7b239ca54fb4c459917ca4ac9bd5fe7e
2025-05-09 17:35:14 +00:00
Vladimir Krivosheev
7cf9ef2b29 update bazel files
GitOrigin-RevId: e78f86bd17affd7892fd1af8e157f033906b1865
2025-05-09 15:36:06 +00:00
Vladimir Krivosheev
644a6b2e81 IJ-MR-162467 don't export intellij.platform.editor.ui
GitOrigin-RevId: 8894abe16fb347de7649bfb2d7888b6e6fe0232c
2025-05-09 14:20:40 +00:00
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
77939c1936 [java-inspections] IDEA-360079 delete modifiers during migration to implicit classes
GitOrigin-RevId: ec17e9b3fb769af284c4d06fc814193ecc657e4c
2025-05-09 11:55:52 +00:00
Mikhail Pyltsin
037958feaf [java-inspections] IDEA-360079 unused for main method modifiers
GitOrigin-RevId: 698a021a1c86d8365a113d2d1b47c085beec9489
2025-05-09 11:55:52 +00:00
Louis Vignier
e9778dc4f4 [javadoc] Fix module links
IJ-CR-162377

GitOrigin-RevId: 79c67feda12b50374b9fee7a386115e7c5692480
2025-05-09 09:13:38 +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
Vladimir Krivosheev
6a2fad16fd update bazel files
GitOrigin-RevId: 2ed0dcc0adee0e0fd534cb73d2592794f70161ff
2025-05-09 06:32:12 +00:00
Vladimir Krivosheev
7351c37957 do not export intellij.platform.usageView.impl
GitOrigin-RevId: 63f00963773ddb773eace8619ec48dadc4de7c24
2025-05-08 19:19:27 +00:00
Vladimir Krivosheev
6f8ff07ccc simplify bazel labels (another step towards using simple names that reflect directory structure)
GitOrigin-RevId: 12bfb2d0fa315d87c7a4ade363d0f834cf324b71
2025-05-08 16:58:30 +00:00
Mikhail Pyltsin
95c9932fa0 [java-settings] IDEA-369838 project code style xml changed after introducing module imports
GitOrigin-RevId: 5b1ae9120367dc5b266fca9125fbb0dbe5f24a56
2025-05-08 15:51:39 +00:00
Alexey Kudravtsev
9c989a578d refactor waitForIdentifierHighlighting (part of IJPL-183582 port IdentifierHighlightingPass to the frontend)
GitOrigin-RevId: bb68a20c6f50ca65221ae77b574f52744c71335b
2025-05-08 14:53:38 +00:00
Louis Vignier
4a14a3afd0 [javadoc] Fix JavadocDeclarationInspection for module links
#IDEA-370362 Fixed

GitOrigin-RevId: b96aa8111d33c93a80102300ea23b7a052874cb9
2025-05-08 11:35:48 +00:00
Louis Vignier
e14ae0356b [javadoc] Rename DIV_TOKEN to SLASH
IJ-CR-159259

GitOrigin-RevId: 9c25fead8e96712d6d5f341494072b18999eec8a
2025-05-08 11:35:47 +00:00
Louis Vignier
3fb1e43d0d [javadoc] Fix target for links containing modules
#IDEA-370363 Fixed

GitOrigin-RevId: 4d315abe60cb933413d2d42d1a742d67f6721c12
2025-05-08 11:35:47 +00:00
Louis Vignier
c58062bd51 [javadoc] Fix module links parsing
In case of links like `module/package.Class`, all references are now grouped under a value element node.

IJ-CR-159259

GitOrigin-RevId: e491522aa0d1a6a84877d3f41f3961150d2b4a07
2025-05-08 11:35:47 +00:00
Mikhail Pyltsin
8b41da05fa IJ-CR-162106 [java] IDEA-360079 live templates for instance main methods in implicitly declared classes
- add subfolders for live-template

GitOrigin-RevId: e33c3b5d069bbdc834fca143f14f98771126c264
2025-05-08 09:34:50 +00:00
Kirill Bochkarev
d7a87d3f03 [workspace model] IJPL-895 Stabilization of entity generation in tests
- Regenerate Workspace Model code for the whole IntelliJ
- IJPL-177108 change properties order in ModuleSettingsFacetBridgeEntity (API breakage for BSP)
- IJPL-14740 Run the test for the whole module, not for each package in the module
- do not include entity source inheritors from other modules
- generator tests: Refactor IntelliJ generation test, fix missing libraries for various modules, ignore workspace.storage.testEntities, add code generator tests for packages, open classes
- treat open classes as abstract in K2, fix package for kotlin.ByteArray in K2 MetadataBuilder
- sort enum entries in metadata and fix cache test
- fix and move WorkspaceModelJsonDumpTest
- fix IntelliJ Workspace Code Update action (use K1)
- do not exclude node_modules dir in javascript plugin in tests


Merge-request: IJ-MR-155397
Merged-by: Kirill Bochkarev <kirill.bochkarev@jetbrains.com>

GitOrigin-RevId: 861f59ad002a63d493824318dff73d5483c31e60
2025-05-08 04:51:59 +00:00
Aleksey Dobrynin
8197eadfdf [java jpms] fix test for Linux filesystem IDEA-371051
GitOrigin-RevId: 5f3c56df5b0149212adf353195372176cfabf756
2025-05-07 15:47:27 +00:00
Aleksey Dobrynin
dbeeca52b4 [java jpms] Consider file system case sensitivity when processing JDK modules IDEA-371051
GitOrigin-RevId: e8f7ac3f9d2a3b10a1bd92173cae966d30ee2bc9
2025-05-07 15:47:27 +00:00
Tagir Valeev
70c2d610cb [java-refactoring] When inlining getter, prefer record accessor
Fixes IDEA-371138 Inline method: record field references are not always replaced with the default getter

GitOrigin-RevId: be9e49bedabc173394ba47920f6deca1ee89a89d
2025-05-07 11:53:21 +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
Dmitry Avdeev
45daadc959 IDEA-355836 Create new Java class / new Kotlin class actions should not be available on the top project level
GitOrigin-RevId: 6a042e1dfc0b3920af39b70561f3d508757975e0
2025-05-05 18:06:46 +00:00
Ilya Korennoy
abaeeabcb0 [indexing] IJPL-186704: Respect IdFilter in FileBasedIndex.processAllKeys if it is not project filter
GitOrigin-RevId: ca8903ea9237b531bba91948da0807e867914172
2025-05-05 16:44:56 +00:00
Tagir Valeev
a94b0d76bc [java-inspections] Do not treat import as unused if it's a potentinally class-import
Fixes IDEA-372121 Optimize imports does nothing on unresolved reference

GitOrigin-RevId: e70ceab4f23092e2b7f7a84edbc0c4159c504084
2025-05-05 14:55:33 +00:00
Tagir Valeev
4c4693d9ee [property-tests] JavaCommentingStrategy: ignore "Add import for..."
GitOrigin-RevId: e6019ca5114041546fb14523eaf8f205549e71d6
2025-05-05 12:14:54 +00:00
Tagir Valeev
f16fec8e4f [property-tests] JavaCommentingStrategy: ignore "Suppress all inspections for class"
GitOrigin-RevId: 387cd93aea257393ad6fabebbfd991f05b784472
2025-05-05 12:14:54 +00:00
Tagir Valeev
a33b824775 [java-inspections] Additional test for IDEA-371907
GitOrigin-RevId: ff147fcad61e443894ec716d0bd4135a6a3ad734
2025-05-05 12:14:54 +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
Bartek Pacia
ef3b8c610e [java-inspections] ClassCanBeRecord: fix broken undo and exception being thrown when ctor param names don't match instance field names
#IDEA-371645 fixed

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

GitOrigin-RevId: e151e27ffc84aa8263f1b67d6c80662614bec6ac
2025-05-03 15:45:24 +00:00
Bas Leijdekkers
2d6ddfa4f4 Java: minor testdata fix
GitOrigin-RevId: 5731e09f2ca9ee8aeb77984d213595fdb8c5eaac
2025-05-03 11:31:16 +00:00
Bas Leijdekkers
5782ec13a0 Java: fix Extend Selection on empty text block (IDEA-372040)
GitOrigin-RevId: a47f4128f616b8b4921b81708daaa1839f0fa3f2
2025-05-03 11:31:15 +00:00
Gregory.Shrago
3bc790d146 migrate to new ActionUtil methods
GitOrigin-RevId: 9e9ce6060d39190b4053fc6fb7cec13aae50ecc8
2025-05-02 23:19:39 +00:00
Tagir Valeev
06ae5648d1 [java-inspections] IDEA-371907 Warn about redundant '@NotNull' annotation when the scope is already covered by '@NotNullByDefault'
GitOrigin-RevId: a703f9e76d11471607532063b4c6c55433579080
2025-05-02 13:00:08 +00:00
Alexey Kudravtsev
8427ef6490 tests: simplify IdentifierHighlighterPassFactory.doWithHighlightingEnabled to remove confusion
GitOrigin-RevId: 5f135498ddc65297c82733ee6387bac29aa43c26
2025-05-02 11:56:48 +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
Ivan Semenov
3e567f44f2 [platform] remove simpler usages of DumbServiceImpl
GitOrigin-RevId: ddbb065c29e63a45c1a5b0e940a9f65976de3211
2025-05-01 14:28:10 +00:00
Bas Leijdekkers
c4ac894375 Java: conserve whitespace inside pre-tags as is (IDEA-371810)
GitOrigin-RevId: 24998ca546ab9957260153af766f35fc04e7ad1a
2025-04-30 18:14:06 +00:00
Bas Leijdekkers
a58f616609 Java: handle type parameters correct when converting javadoc to markdown (IDEA-371810)
GitOrigin-RevId: 8d4692fc69d59cedd36b00229815ae69121acae0
2025-04-30 18:14:06 +00:00
Tagir Valeev
8db8de2627 [java-psi] Basic support of single-file root class resolution
Fixes IDEA-371097 Class resolution does not work in single-file source roots mode

GitOrigin-RevId: cd0c150bbaf78771f2aceceb586cebd2250f6958
2025-04-30 11:17:10 +00:00
Tagir Valeev
ec060f9165 [java-analysis] MagicConstantUtils.getAllowedValues: traverse through effectively-final locals
May be useful for IDEA-371850 Use MagicConstant annotation in debugger to print values better

GitOrigin-RevId: c0744fec5c8909274e4435396e4ececab8abc38f
2025-04-30 10:33:59 +00:00
Tagir Valeev
c913917c39 [java-analysis] com.intellij.codeInspection.magicConstant.MagicConstantUtils.getPresentableText
May be useful for IDEA-371850 Use MagicConstant annotation in debugger to print values better

GitOrigin-RevId: 40005bb281a640768ec720ad3e6ce21569a65600
2025-04-30 09:42:59 +00:00
Andrey Zaytsev
0e871d53ab [platform] remove the remaining downcasts to FileManagerImpl
GitOrigin-RevId: 79e2c7521317ceb3028740c934ca5927234a9fa7
2025-04-30 00:08:35 +00:00
Andrey Zaytsev
b863723666 [platform] pull PsiManagerImpl used methods up to PsiManagerEx, remove downcasts to PsiManagerImpl
GitOrigin-RevId: 1c2e322a5a6f0fa61a2fb3194e1953c4c8e2640c
2025-04-30 00:08:35 +00:00
Mikhail Pyltsin
63799d6b0e [command-completion] IJ-CR-161391 IDEA-371578 Command completion: add Go to super method/class
- fix structure

[command-completion] IJ-CR-161391 IDEA-371578 Command completion: add `Go to super method/class`

- extract common parts

GitOrigin-RevId: 23884731ad2c953fd854fceb8009b9f999692332
2025-04-29 17:10:10 +00:00
Tagir Valeev
a81c4d8260 [java-inspections] ExtractParameterAsLocalVariableFix: ModCommand
GitOrigin-RevId: cc638dadd6982d15542a4f4573ab8b3ed66684eb
2025-04-29 13:01:39 +00:00