Commit Graph

46655 Commits

Author SHA1 Message Date
Ilyas Selimov
d692e299bc IDEA-265157 - moved jpms jlink part from compiler to jps.build module, some UI remarks
GitOrigin-RevId: e1b88b157dcbfd1d6e546064a010b5a20206b161
2021-03-30 08:42:09 +00:00
Vladimir Krivosheev
0ec818456e rename according to module file name convention
GitOrigin-RevId: 66a48c64dd478f96758885afa5e915d366bcb88f
2021-03-30 07:08:32 +00:00
Alexey Kalina
dc2e58acf3 [ml-local-models] show suggestion to train after 10 completion sessions with methods and classes
(cherry picked from commit 66e1fd02704ee23a777bfa7dcbf52708b5a732ba)

IJ-MR-7427

GitOrigin-RevId: d2a68bd870b45663c816f9f2d69f45bc75c221fb
2021-03-29 15:31:37 +00:00
Tagir Valeev
7f950fc4b2 Annotations for executors
GitOrigin-RevId: 285ba60e4b3c0dba5fff5e4071fdd5a960297916
2021-03-29 12:53:15 +00:00
Bart van Helvert
2fb81ec403 [java] IJ-CR-7266 Update inspection descriptions
GitOrigin-RevId: d1bf74e885672b02aab61bed273cbacf071e9c15
2021-03-29 12:29:40 +00:00
Artem Pronichev
78c3510377 [go] Updated a list of file template variables and rewrote their description (after IJ-CR-7625)
GitOrigin-RevId: 5e830ff80f5091e3a8653faafca6430dbd700ec9
2021-03-29 11:14:19 +00:00
Vladimir Krivosheev
02269dbd58 cleanup (reduce usages of Pass)
GitOrigin-RevId: 75ac36181dff61082292a1bb599264f46cb78444
2021-03-27 07:16:32 +00:00
Alexey Kudravtsev
9a0c01c478 cleanup
GitOrigin-RevId: a2c01024b556ce71daba8d59e13736891505c4e6
2021-03-26 23:15:11 +00:00
Vladimir Krivosheev
06f16f267a deprecate ServiceManager.getService()
GitOrigin-RevId: bf6188a9ff422222ab5ae2bbca749ceb7691394b
2021-03-26 21:30:33 +00:00
Vladimir Krivosheev
809b7ca201 deprecate ServiceManager.getService(project)
GitOrigin-RevId: 3805c3aac4e084c828558bf1b1570339f7f3b4a3
2021-03-26 21:30:32 +00:00
Vladimir Krivosheev
80f5b09680 don't use deprecated AbstractExtensionPointBean
GitOrigin-RevId: b2ca29bfc60ff2ae98aa13d3b04d61c62e56b42e
2021-03-26 20:22:20 +00:00
Vladimir Krivosheev
906264a105 optimize getting service
1. avoid double map lookup - ask light service under lock immediately if called as part of getting service
2. avoid triple map lookup - store light service in the same map as regular service
3. reduce linear processing time for deprecated component-specific operations - do not store services in the linked list of all adapters

GitOrigin-RevId: c86a792850cbb715f67f2c297af7cb37e835640c
2021-03-26 20:22:19 +00:00
Vladimir Krivosheev
28e62af65b cleanup (reduce usages of deprecated Getter interface)
GitOrigin-RevId: 4d916ad1e868a8eed7793a7cf22965a2096e38e8
2021-03-26 20:22:17 +00:00
Alexey Merkulov
27bd099fbc [IFT] Remove shared indexes remark because shared indexes message is muted when training is started
GitOrigin-RevId: 573172efeb1fb91524aab698140209d1c00196bc
2021-03-26 14:22:50 +00:00
Alexey Merkulov
e9d2005425 IFT-180 Improve task text in the Find Occurrences lesson
GitOrigin-RevId: 9a502a11a117fb6e35166d13fbcb1c56302877a7
2021-03-26 10:25:17 +00:00
Ilyas Selimov
fdfa32d491 IDEA-161641 - small refactoring
GitOrigin-RevId: fd7ef351dbd9abd0f27cb519de6e11bb2f3964b6
2021-03-26 04:13:54 +00:00
Ilyas Selimov
3ad3f5c6fe IDEA-161641 - initial Jlink artifacts support
IDEA-161641 - moved jlink packages to java.impl and java.compiler.impl modules

IDEA-161641 - small refactoring

IDEA-161641 - small refactoring

IDEA-161641 - fixed jlink tab ui, partially setup build task provider

IDEA-161641 - initial jlink implementation

GitOrigin-RevId: 2ce649f886ea43d362414d7b949f07feac5d231d
2021-03-26 04:13:53 +00:00
Tagir Valeev
b566b6e97d [java-psi] checkPersistentElementRemoval: use logger instead of exception (IJ-CR-7608)
GitOrigin-RevId: 3eb5b6f71c7286ab1c8f7f85fbd308bc5bfe2187
2021-03-26 02:53:45 +00:00
Andrey.Cherkasov
455a130ac2 IDEA-216120: fixes after review
GitOrigin-RevId: 44435772a108dc0a9edad4e56a00a27cc2f91efc
2021-03-26 00:47:47 +00:00
Mikhail Mazurkevich
68df252efd [workspace model] CPP-24452 Fix module serialization at external system folder
There were a couple of problems which were fixed within the ticket:
1. `CustomImlData` was not saved for modules stored at external system folder
2. `DummyParentEntitySource` was applied not only for module entity but for an other e.g `ModuleGroupPathEntity`,
`ModuleCustomImlDataEntity`... This entities without PersistentId which leads to incorrect behaviour at
replaceBySource and leaking DummyParentEntitySource` to the main store
3. There was a problem  that the system don't load `ExternalSystemOptions` if customRootsSerializer is exist
4. For Clion we should created `ExternalSystemModuleOptionsEntity` if we know the externalSystemId but project import
not started yet(for some reasons it may not start e.g due to the problems at Makefile)  and we should properly handle
serialization of such cases

GitOrigin-RevId: f045ceda298d61cf779091e2350827c7e0fb1ab2
2021-03-25 22:21:02 +00:00
Roman Ivanov
58e995e786 [java] update inspection descriptions
GitOrigin-RevId: ae90cdb3465c067b1fdebacc2d0d6cbc4667a128
2021-03-25 18:05:14 +00:00
Alexey Kalina
18c8f9a2ad [features-registry] example of registring feature without action
(cherry picked from commit c0a147657015944628b5a1469d0b6908e9805fff)

IJ-CR-7214

GitOrigin-RevId: 20919b93aa25e8094a34f428f7841b1ead4d12e9
2021-03-25 17:48:50 +00:00
Alexey Kalina
3451a1689a collect action and intention events as feature usages
(cherry picked from commit b6351bc5ab095c8c5c02f551e3a397420deb81cc)

IJ-CR-7214

GitOrigin-RevId: cb2971d9e3bdf24e41f99e7bfda802d4ddd2ee90
2021-03-25 17:48:48 +00:00
Alexey Kudravtsev
c148681139 javadoc deprecating some interfaces duplicating java.lang.function
GitOrigin-RevId: c44bc00e364f83ce4599622d16ecbce461d7c166
2021-03-25 14:42:16 +00:00
Alexey Merkulov
37454824b8 IFT-182 Fix debug lesson for case when hotswap option is set to always
IDEA-CR-71066

GitOrigin-RevId: 5b20afa93342b38d6360840e47e34f11fdaa971a
2021-03-25 13:59:10 +00:00
Alexander Koshevoy
6b10799ff4 Run JavaTestFrameworkRunnableState.spansMultipleModules(...) method under ReadAction
GitOrigin-RevId: f3fbe684421105c8155e4828737a18b87c680465
2021-03-25 12:08:18 +00:00
Artem Pronichev
103fd15bbb [go] Updated a list of file template variables and rewrote their description
GitOrigin-RevId: 18841b71cf4960fc24c63ec66d0343edaddd82b6
2021-03-25 11:54:58 +00:00
Bas Leijdekkers
341bfc0670 Replace border with label in AddDeleteListPanel
GitOrigin-RevId: 2e24fa76d28cd7f109b19a8872e5604b1e0e8ee3
2021-03-25 08:19:08 +00:00
Nikita Eshkeev
572a74b496 [EA-259285] CharTable not found in: PsiCodeBlock
This patch replaces the explicit assert with PsiUtilCore#ensureValid as per the code review comment

GitOrigin-RevId: 0eda8fe695e953894780a58a8efb52dca26b2ab9
2021-03-25 08:13:21 +00:00
Tagir Valeev
65a169caab [java-psi] PsiBinaryExpressionImpl: disable removing OPERATION_SIGN and LOPERAND.
It's assumed that these elements are always present and removing them may cause exceptions later
Diagnostics for EA-257370 - ISE: PsiBinaryExpressionImpl.$$$reportNull$$$0

GitOrigin-RevId: e287939697a0b629fece43616271aa5ae127cb92
2021-03-25 05:55:10 +00:00
Tagir Valeev
c1d4598457 [lang-api] Use SmartPsiElementPointer in PsiElementMemberChooserObject to make it more robust
Also, avoid calling isDeprecated on invalid object (EA-254735)

GitOrigin-RevId: 6d0b19f0068598ccde2915c56badc8445989433d
2021-03-25 05:55:08 +00:00
Tagir Valeev
8466dca993 [java-dfa] containsConstant should ignore locality if values are compared by equals
Fixes IDEA-265089 ConstantCondition always false incorrectly reported on String.equals with String literal on left side

GitOrigin-RevId: 4e128a8308a9813bba953e107400c51879a6e7f2
2021-03-25 05:55:08 +00:00
Tagir Valeev
3145faff60 [java] Property tests: check that expression passed to extract variable could be found via findExpressionInRange
GitOrigin-RevId: c0c036e21b615411335386742f76f134ef927988
2021-03-25 05:55:07 +00:00
Tagir Valeev
577f1b722b [java-highlighting] IDEA-265125 Do not highlight 'var' in case if there's a constructor of unresolved type on the right
GitOrigin-RevId: 9ac23e0dcf11c2031c7f08ebd5c6d707d4f7bed1
2021-03-25 05:55:05 +00:00
Olga.Klisho
37ade02277 [java] cleanup of inspection description updates
GitOrigin-RevId: ceb577721c36895ef8e4add977dd01d5b0049e7e
2021-03-25 03:47:55 +00:00
Tagir Valeev
a3e6b55f19 [java-dfa] Ignore some contracts if method return value is not used
GitOrigin-RevId: 2834d00f1385759947351f8b93d8fc6a18a45106
2021-03-24 23:54:51 +00:00
Tagir Valeev
cbdf7bb2f9 [java-inspections] IDEA-264850 MagicConstant inspection does not work on varargs
GitOrigin-RevId: 4ac1cdc65c10fc40dec8ba5a3add52d12897526a
2021-03-24 23:54:50 +00:00
Tagir Valeev
b5f948dd5f [java-highlighting] IDEA-265053 Highlight not-wellformed statements without semicolon as a "not-a-statement"
Also suggest 'introduce local variable' as a quick-fix

GitOrigin-RevId: 2a15a1d35ed1755ab043a40a06136ed946c4a516
2021-03-24 23:54:49 +00:00
Roman Ivanov
48d9460743 [java] update inspection descriptions : IJ-CR-7452
GitOrigin-RevId: 0fa363d639794b741ce158a8693ace45c5792f43
2021-03-24 20:35:18 +00:00
Eugene Petrenko
c83f86faf7 jdk-updates: IDEA-261052
GitOrigin-RevId: 0e61362a53a83fbcc877b4de251511347f9484f5
2021-03-24 18:01:21 +00:00
Andrew Kozlov
21e12f7258 [platform] Task is aware of the parent JComponent; minor encapsulation improvements
GitOrigin-RevId: 454c4d94fa8cf7eb2fc293a4d72409971a6446f7
2021-03-24 14:59:44 +00:00
Eugene Zhuravlev
f8da64a972 intern paths independently from VFS (accessing VFS FileNameCache at arbitrary time may lead to UI freezes)
GitOrigin-RevId: 4339c6a42cdc44882531c6de87441e5b094f3fee
2021-03-24 12:16:15 +00:00
Louis Vignier
6386cf8b94 IJ-CR-7352 [java] Fix always inverted boolean method properties
GitOrigin-RevId: 87acc73d22ba12afc8c13d9b4c8c9116f9ab60b0
2021-03-24 11:54:01 +00:00
Louis Vignier
f03db2aa2e IJ-CR-7352 [java] Add a quick-fix description to UnresolvedPropertyKey
GitOrigin-RevId: ae1e8204ec944e3e2997f27f253be7d697f01b03
2021-03-24 11:53:59 +00:00
Louis Vignier
99450af3ee IJ-CR-7352 [java] Update SuspiciousMethodCalls inspection example
GitOrigin-RevId: 64a1bac7db108e3f835df71e310b54b360c95d5a
2021-03-24 11:53:57 +00:00
Aleksey Pivovarov
a1e01efc2e java: remove reference to removed 'compilerSettingsFactory' extension point
Follow-up: b2f2c85514d360e8d716e6f136f7c11760086f0e

GitOrigin-RevId: 1f3801351b44be5bd661ccb2a8306f1f734037f7
2021-03-24 10:51:44 +00:00
Ilyas Selimov
f8167bee4d EA-261935 - additional check for the case when we have duplicated fields or some field is not initialized in ctor
GitOrigin-RevId: bdb9c907210141695a29b08c39dd06a4d26c15af
2021-03-24 09:53:42 +00:00
Artemiy Sartakov
b55a0af31b [java] updated descriptions after review (IJ-CR-7261)
GitOrigin-RevId: 58eeaf1ea83701d8479c98857244b6ba82750c72
2021-03-24 04:41:11 +00:00
Andrey.Cherkasov
ed3236c513 [java-inspections] ReplaceInefficientStreamCountInspection: support new types of comparisons
GitOrigin-RevId: 6f59499467a97c5f04c2ce6834ddd84640235cdf
2021-03-23 20:53:37 +00:00
Roman Ivanov
c97105f244 [java] add chop/join actions for record components: IDEA-264997
GitOrigin-RevId: 6c832eaeeac6f65678ae8a8ec760cc4d57ab6151
2021-03-23 20:20:32 +00:00