Commit Graph

453542 Commits

Author SHA1 Message Date
Roman Shevchenko
a5666abead [project] pruning FileChooserDescriptor overrides (IJPL-150176 prerequisite)
`BrowseFolderRunnable` and `*WithBrowseButton` family: getting rid of separate "title" and "description" parameters in favor of the chooser descriptor object, to avoid cloning the latter down the road.

GitOrigin-RevId: 33ec5968a1db953c60848974135055c288accf85
2024-09-06 11:41:43 +00:00
Roman Shevchenko
5656c23f5c [ui] improving startup error message wording (IJPL-358)
GitOrigin-RevId: 2bf0fcf5d1bf87d9ef0abd93fa4c7d7f986685f8
2024-09-06 11:41:42 +00:00
Roman Shevchenko
cb2a3aba26 Cleanup (formatting)
GitOrigin-RevId: e49f197c3ed19bc7a13399d9fb7026935959ecee
2024-09-06 11:41:42 +00:00
Jakub Senohrabek
56d830300b Changed Compose dependencies to avoid missing dependency errors
GitOrigin-RevId: 01366fdadb9b808c40c0498693828828ff7508f8
2024-09-06 11:40:54 +00:00
Vladimir Krivosheev
920058c66e update netty and zstd, move built-in server from util module to impl (well, it is NOT util)
GitOrigin-RevId: 124621881da764a7022a1f165f334063c208bbaa
2024-09-06 11:26:58 +00:00
Mikhail Pyltsin
fa49b1270e IJ-CR-144148 [java] IDEA-358751 Java Annotations copied to generated getter / setter
- tests for annotations with arguments

GitOrigin-RevId: f03c82ee31fdfc2731f19e3f55bc4dfbdeffa566
2024-09-06 11:17:08 +00:00
Frederik Haselmeier
4cd04b720b [kotlin] Changed HasPlatformTypeInspection to be internal
KTIJ-22908

GitOrigin-RevId: 48687f5ae466efebe4f39475754ad6ce7f6817db
2024-09-06 09:56:33 +00:00
Frederik Haselmeier
658fe908bc [kotlin] Changed RedundantExplicitTypeInspection to use KotlinApplicableInspectionBase
KTIJ-28412

GitOrigin-RevId: 880fbee96b28ffa41fdba58101ec9adaa632dd48
2024-09-06 09:56:33 +00:00
Pavel Karateev
1a12754ce2 PCQA-508 PyCharm has no support to smart-step into binary operators
GitOrigin-RevId: ec6e95a86f219ef7a0b3c457521b70a3f195ba33
2024-09-06 09:50:34 +00:00
Eugene Nizienko
e0a68021c3 (LLM-4072)[AI chat] log original language value in LLMC
GitOrigin-RevId: 096165d97a7bfd23b6ba768c100fd199b64d926b
2024-09-06 09:43:31 +00:00
Konstantin Aleev
99964dd3c7 [services] executor action: store runnable indexes instead of nodes to avoid memory leak
GitOrigin-RevId: 76569e815152a732d1016bb87184549958b3752f
2024-09-06 08:28:57 +00:00
Anna Kozlova
a4a3213f26 [kotlin] k2: use java notation in smart cast message
^KTIJ-31213 fixed

GitOrigin-RevId: d7cab64eaeb08cda41d4a5612c1a0e96b9808790
2024-09-06 07:31:35 +00:00
Andrey Cherkasov
fb7c0ebb19 [kotlin] Port AddAnnotationFix for TYPE_VARIANCE_CONFLICT_ERROR
The quick fix adds the `@UnsafeVariance` annotation.

^KTIJ-31223

GitOrigin-RevId: 685fba6a23d1e58c713690b0ddee5bc3e3165ce3
2024-09-06 06:35:00 +00:00
Mihail Muhin
8ddd895e2d [fleet] remove fus internal mode property
GitOrigin-RevId: 99f68833f86fb0cc6fe6d37f6113bbbe4c3d4823
2024-09-06 06:30:48 +00:00
Andrey Cherkasov
770201f3ac [kotlin] Port quick fix for OVERRIDE_DEPRECATION compiler error
The quick fix copies the `@Deprecated` annotation from the overridden declaration to the overriding one.

^KTIJ-29564

GitOrigin-RevId: 1c079a2e6ef8729c428e7f19c378d73f5655543b
2024-09-06 04:47:25 +00:00
Andrey Cherkasov
887cdac463 [kotlin] Extract objects into separate files
^KTIJ-29564

GitOrigin-RevId: 478a20babe2adb2da13bb847fcc8678357b83432
2024-09-06 04:47:25 +00:00
Andrey Cherkasov
fa54770971 [kotlin] Make function protected
^KTIJ-29564

GitOrigin-RevId: b96c8a483d9dea1dd3cbe023488670bea7b689ae
2024-09-06 04:47:25 +00:00
Anton Kozub
5b748d8474 IDEA-354490 Refactored entity searching
GitOrigin-RevId: 5de6ac273ba8ba9b78f71ae9c976aabfcba45c5b
2024-09-06 00:12:17 +00:00
Anton Kozub
8f074796cd IDEA-354490 Fixed auto-expanding
GitOrigin-RevId: 0665700298adb653d8f9f1be3b2a075144e9b720
2024-09-06 00:12:12 +00:00
Petr Surkov
8e1d4f74bd [ai-completion] ML-3952 Bump inline.completion.v2 group version
GitOrigin-RevId: a02bbac7d3cb95d55dc6e217daa746d20d0cccbb
2024-09-06 00:00:41 +00:00
Petr Surkov
fdf05ae34c [ai-completion] ML-3952 Use holder inside InlineCompletionLogsListener to not reset every field on each request manually
GitOrigin-RevId: e9fd0f445129aef350fa52b10af4c981b0b4d128
2024-09-06 00:00:41 +00:00
Petr Surkov
1116a54e75 [ai-completion] ML-3952 Add showingTime log
GitOrigin-RevId: c7045437309bc3fa9c7483080e84a16f9626489d
2024-09-06 00:00:41 +00:00
Alexander Lobas
dc9056f117 IJPL-149502 Implement region and language settings in IDE | Settings (refactoring: convert to object)
GitOrigin-RevId: 4cdacab49f0b1640d81b0be7cc41e7b8f2a34be4
2024-09-05 23:18:23 +00:00
Roman Golyshev
eefc6bb21f [Workspace Model][IJPL-161667] Replace put with putIsAbsent in ImmutableEntityStorageImpl.initializeEntity
It does not make sense to replace a value in `entityCache`
if it was concurrently inserted by someone else.

GitOrigin-RevId: f28ff2357ced479942bef3c05483d5106a757d34
2024-09-05 23:14:34 +00:00
Roman Golyshev
e517d0e1e8 [Workspace Model][IJPL-161667] Use ConcurrentLongObjectMap as cache in ImmutableEntityStorageImpl.initializeEntity
This makes the explicit synchronization unnecessary.

In the past, using `ConcurrentLongObjectMap` here led
to performance degradations (see IJPL-14861).

Now performance tests seem to indicate that there is no performance degradation
related to `ConcurrentLongObjectMap` anymore - presumably after a significant update
made to it in ite2c9a0a59.

^IJPL-161667 Fixed

GitOrigin-RevId: f1be39475667cd48de62c1b85c6cef611128fa7d
2024-09-05 23:14:34 +00:00
Dmitriy.Panov
323540b0ca IJI-2074 if a build script is run via JBR 21 then Jps has to cross-compile the codebase to JBR 17 bytecode
But there are some modules in .idea/compiler.xml exporting a package from a system module that is not allowed for cross-compilation mode.

GitOrigin-RevId: cf381acab50c4669d6383cbbb82eec3c194ac7df
2024-09-05 22:52:37 +00:00
Dmitriy.Panov
3fc45fe49e IJI-2074 build scripts are run via JBR 17 not JBR 21
GitOrigin-RevId: 61c6b8aec3d52f8e4793e40ac731c46b043d504c
2024-09-05 22:52:37 +00:00
Dmitriy.Panov
ef033154c6 build scripts telemetry: attribute 'name' is not specified in a service message
GitOrigin-RevId: 0be6b6723750286149d47e93ee063c68e9305b2b
2024-09-05 22:52:37 +00:00
Egor Lebedev
ae319dfe5f Introduce EditorMouseHoverPopupManager listener
Merge-request: IJ-MR-143966
Merged-by: Egor Lebedev <egor.lebedev@jetbrains.com>

GitOrigin-RevId: 154a18b82f295378febc5656480eb381dc831cad
2024-09-05 22:05:53 +00:00
Alexey Kudravtsev
aa2d1edc99 optimization: cache inspections with inconsistent shortName <-> EP.shortName to avoid wasting time enumerating all of them on each highlighting restart
(and move away `new LocalInspectionWrapper()` calls from class initializer to avoid fatal ClassDefNotFoundException when is throws)

GitOrigin-RevId: 7e2117288d8f475e5aae7bac830684c67858d080
2024-09-05 21:30:41 +00:00
Alexey Kudravtsev
130a555cb5 cleanup, avoid unnecessary wrappers
GitOrigin-RevId: 16c785274603e27aab26846562c4b075decd617f
2024-09-05 21:30:41 +00:00
Alexey Kudravtsev
99a6a5a4d4 optimization: do not recreate the same range markers endlessly to avoid GC pressure which slows the highlighting down
GitOrigin-RevId: a1b898ce5116569196c6c3b11896e7cd761b766b
2024-09-05 21:30:41 +00:00
Alexey Kudravtsev
a0ddc4085d remove/update changed highlights in one pass to fix IJPL-161572 LSP-based code highlighting is slow in files without PSI
GitOrigin-RevId: f3db04c83e181c01366b563652d73473924a494f
2024-09-05 21:30:41 +00:00
Alexey Kudravtsev
61c5e21607 reduce timeout for removing invalid psi highlighters to make ui perceived as more responsive
GitOrigin-RevId: 82c502158827fb0e901a9490daa6eb94b2cb8474
2024-09-05 21:30:40 +00:00
Ilya Kazakevich
e413cf665c Support DialogPanel validation and apply in ProjectSettingsStepBase.
`com.intellij.ide.util.projectWizard` has a thing called `com.intellij.platform.ProjectGeneratorPeer`.

It creates `JComponent` (`com.intellij.platform.ProjectGeneratorPeer.getComponent`) that is displayed on the right part of a "new project wizard.": see `com.intellij.ide.util.projectWizard.ProjectSettingsStepBase.createAdvancedSettings`.

This component is usually a form filled by a user to provide information, which is latter used by `com.intellij.platform.DirectoryProjectGenerator` to generate a new project.

Nowadays, Kotlin DSL UI is used to create such forms.

DSL UI provides a conception of validation: client calls `com.intellij.openapi.ui.DialogPanel.registerValidators` and disables "OK" button in case of validation errors.

`apply` method should also be called so a form can set values to all bound fields.

Hence, `JComponent` needs special handling if `DialogPanel`.

This logic was already implemented for `DialogWrapper`, but not for `ProjectSettingsStepBase`.

This change introduces it there.


Merge-request: IJ-MR-144050
Merged-by: Ilya Kazakevich <ilya.kazakevich@jetbrains.com>

GitOrigin-RevId: b9b55f5a2c3369d7a85240325df778f98bdec4fe
2024-09-05 20:00:10 +00:00
vladislav.shishov
e98dbdc5c6 [remote-driver] fix SearchEveryWhereUiTest#testQuickDefinitionPopup
GitOrigin-RevId: 8eca58d3021b4c9a7211a779aed39eda2bc4143f
2024-09-05 19:21:28 +00:00
Yuriy Artamonov
1d33565614 [kotlin] KTIJ-31218 ConfigureKotlinInProject: Slow Operations on project opening
GitOrigin-RevId: 831320df2e938ea8de4d59907ffa356818eef20c
2024-09-05 19:16:35 +00:00
Andrey Lisin
5952245fa3 PY-73432 Cleanup: refine generic type parameters and fix potential NPE
GitOrigin-RevId: 659aadb15094d4c1c494d6629ccfa1a3f579f169
2024-09-05 18:58:24 +00:00
Ilya Kirillov
fc355ce271 [kotlin] enable Kotlin plugin K2 mode by default in Nightly
The behavior with the `idea.kotlin.plugin.use.k2` VM option will be the following:
- When no `idea.kotlin.plugin.use.k2` is specified in `.vmoptions`, it will be implicitly set to `true`.
- If `idea.kotlin.plugin.use.k2` is set to `true`/`false` in `.vmoptions`, this value will be used.
- If a user disables K2 mode manually in the settings, then `idea.kotlin.plugin.use.k2` will be set to `false` in `.vmoptions` and the K2 mode will be considered as disabled after a restart.

^KTIJ-30761 fixed

(cherry picked from commit bdafaad289b4e6ad3600f0653b336aefde20874f)

GitOrigin-RevId: bc0930efd86c33e5d44e5f743ea6a28d17c9b005
2024-09-05 18:56:24 +00:00
Vladimir Krivosheev
48aca176b7 IJPL-158931 get rid of EdtScheduledExecutorService on start-up
GitOrigin-RevId: eeeb448896edb5930250626a51554706e5b8e80b
2024-09-05 18:44:54 +00:00
Max Medvedev
548adc1e67 IJPL-797 intellij.platform.analysis.impl hide some classes
GitOrigin-RevId: e52b5c111d21a9c92e9e7772ccef27e9d1740a68
2024-09-05 18:22:05 +00:00
Andrey Zaytsev
e1cfeafca0 bump kotlinx-collections-immutable to the version which fixes memory leak in builders
GitOrigin-RevId: 8bacaf0a6b0416dcf42bab73738dcd6b9400cf6f
2024-09-05 18:20:55 +00:00
Egor Ushakov
e0d5283a4e [kotlin debugger] use more optimized jvm findClass
GitOrigin-RevId: d82d1d2e12239a2068b442cf5402acbcf43c6af0
2024-09-05 17:41:23 +00:00
Natalia.Murycheva
906db74406 PY-75524 A large dataframe in memory slows down output for the next cells
* replaced str(data_frame) with str(data_frame.head())
* fixed GeoPandas case
* fixed exception during formatting for get_array because of the incorrect "s" format specifier

GitOrigin-RevId: 228128000565e0d681fc79b2507be3e6bcf7958e
2024-09-05 17:34:32 +00:00
Ruslan Cheremin
009502032b [vfs][cleanup] yak shaving: removed 'final' in arguments
GitOrigin-RevId: 77191626a6f066219e1da3fb36d45228025232ea
2024-09-05 17:07:26 +00:00
Ruslan Cheremin
0163086b5f [vfs][refactoring] introduce fine-grained lock into FSRecordsImpl, utilise it in PersistentFSImpl
GitOrigin-RevId: c81b534ab9ea777cdc87686161e296593acb2ed1
2024-09-05 17:07:25 +00:00
Ruslan Cheremin
1de74aa918 [vfs][refactoring] sorted methods, added comments & TODOs
GitOrigin-RevId: 365ba5064413001340abc62ebc3b3ca998f7a16b
2024-09-05 17:07:25 +00:00
Dmitry Batrak
ef532e4dec GTW-8653 Copy doesn't work if invoked immediately after creating selection
Avoid action calls being canceled during the patch engine rebase process due to unrelated mouse clicks.
PlatformDataKeys.EDITOR_CLICK_OVER_TEXT data context value can be sensibly retrieved only immediately after the mouse click,
which triggers the action execution. But the patch engine currently does re-calculate it during the rebase process
(via EditorClickOverTextTimestampModel) and if the newly calculated value turns out to be different from the original one, timestamp model validation in FrontendCallActionRequest.redo will cancel the action, removing it from the execution queue, even if that action isn't using that data context value in any way.
Since everything seems to work fine without EditorClickOverTextTimestampModel, we're just deleting it for now.

GitOrigin-RevId: ad53eded7a25e607a087d8c3db8bb8411c336b23
2024-09-05 17:02:48 +00:00
Louis Vignier
9120d44eaa [jdk] Update ThreadingAssertions in SdkLookupImpl
GitOrigin-RevId: 8e919b05db58bb3d1e5a1859c2c09cdaf1998ab5
2024-09-05 16:59:33 +00:00
Louis Vignier
98e47749a8 [ui] Use textListCellRenderer in Utils#showCompletionPopup
#IJPL-157241 Fixed
IJ-CR-140551

GitOrigin-RevId: a0bb3a11802c17b313d61862c78744efaac98115
2024-09-05 16:59:33 +00:00