1601 Commits

Author SHA1 Message Date
Nikita.Ashihmin
a82c5d2f20 PY-71854 Platform(refactor): Replace all usage of old non file type specific File limits to the new FileSizeLimit
GitOrigin-RevId: c65b945a34e24ab79b06f2039361fd6dcc1048e7
2024-10-05 23:58:19 +00:00
Nikolay Chashnikov
2a4136e03c [platform] API cleanup: remove unused deprecated API NamedJDOMExternalizable (IJPL-156972)
GitOrigin-RevId: 60a233ca2304d8830228d3961a40e1f291e0afec
2024-10-04 17:48:36 +00:00
Andrei.Kuznetsov
a66e762038 Addon to IJPL-157852,IJPL-16008: Introduce registry option ide.workspace.model.write.external.files.immediately
Component name to component attribute conversion was dropped by accident during merge conflict resolution, and was caught by existing tests

GitOrigin-RevId: 124b1b008d893db0e464c091aaa6d953231d78cd
2024-10-01 22:21:55 +00:00
Andrei.Kuznetsov
10af260912 IJPL-157852,IJPL-16008: Introduce registry option ide.workspace.model.write.external.files.immediately
When enabled, WSM writes module xml files immediately when the file content is available (needs less heap because all the intermediate objects will be collected sooner). When disabled (legacy behavior) WSM will collect all the contents of all the files for each changed module, and then flush all the data in a separate pass (needs more heap to keep all the intermediate objects).

GitOrigin-RevId: 4c3756a21f7d1b24fecb798a71d56cd837ba58e1
2024-09-30 21:49:39 +00:00
Alexey Kudravtsev
b3f683b5be cleanup
GitOrigin-RevId: 35c397e5300b141796c694343f804ff1e3b6455a
2024-09-30 17:53:45 +00:00
Vladimir Krivosheev
412375e109 IJPL-162718 don't use blockingContext - doesn't make sense now
GitOrigin-RevId: 47bfe635ae0089b4c2ef80e2a8bc23d71d9dbded
2024-09-30 07:43:36 +00:00
Andrei.Kuznetsov
366f9dcc27 IJPL-157852,IJPL-16008: introduce ide.workspace.model.write.external.files.directly registry option
When enabled, WSM bypasses module's configuration stores on project save and writes module xml files directly to 'cache' directory (iml files are still saved through module's configuration stores)

GitOrigin-RevId: de34f4534b62ebb5bba957651c36e49d9d9bbf3c
2024-09-27 14:53:42 +00:00
Andrei.Kuznetsov
24bf640322 IJPL-157852,IJPL-16008: Refactoring: extract methods (JpsFileContentWriter)
GitOrigin-RevId: 4f8a1418a8c186be3f68af48bb97662250c5a53c
2024-09-27 14:53:42 +00:00
Roman Shevchenko
c7a19fb4c8 Cleanup (dead code; typos; formatting)
GitOrigin-RevId: 16632bb39b3d21570892603354016596cfde08f4
2024-09-27 02:02:42 +00:00
Roman Shevchenko
c954cb746f [platform] migrating platform choosers to extension-based filters (IJPL-150176)
GitOrigin-RevId: 72b4a6f4c258d4235349c16a87b2d03d78168c4f
2024-09-27 02:02:42 +00:00
Andrei.Kuznetsov
a76ea5dacb Cleanup: make code more readable
GitOrigin-RevId: 7fc0ab086acb961cef120b738b45cd321ace7c8b
2024-09-25 19:12:31 +00:00
Vyacheslav Moklev
e9bf402b7e [RDCT] GTW-9421: Implement tests for initial settings synchronization
GitOrigin-RevId: 214931e276f8c5e528154c076e3794513cd203a1
2024-08-26 17:14:38 +00:00
Yuriy Artamonov
68b21a7c87 [fus] IJPL-160498 FeatureUsageLogger: static init depends on application services
GitOrigin-RevId: 700e4f83c92cebe5eb7a774984e002b9509d3573
2024-08-19 13:48:50 +00:00
Lev Serebryakov
5f87ecf747 IJPL-149317 More additional explicit locks found by users.
GitOrigin-RevId: a5d8c6c4ad5225bea5f59a70f1d010f3e68b3113
2024-08-15 16:07:17 +00:00
Lev Serebryakov
3d531df5bb IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in config store.

GitOrigin-RevId: 5834d98abf946c8ec1c7c44bd0dafc23424b61ea
2024-08-13 17:24:46 +00:00
Roman Shevchenko
60f1bdbd8b Cleanup (minor optimization; typos; formatting)
GitOrigin-RevId: 8e141475419e5987111a7e039cb318230c994697
2024-07-30 18:22:47 +00:00
Roman Shevchenko
3160e0cf4e [platform] avoiding EDT when saving schemes (IJPL-149701)
The component interested in scheme VFS events is `SchemeFileTracker`, but it only processes external events - so the scheme manager just has to keep VFS in sync for these events to happen.

GitOrigin-RevId: 24e0078ae2ff1e295b550d450fcdf78df5945f08
2024-07-30 18:22:46 +00:00
Mikhail Mazurkevich
7d017d5727 [workspace model] IDEA-356368 Save caches if it has any unsaved changes on a project close to avoid obsolescence due to debounce saving
GitOrigin-RevId: 513828206cc97803950a9dd9f2ff114f4a3bb6ab
2024-07-22 18:58:08 +00:00
Vladimir Krivosheev
dc67a752c3 IJPL-11682 cleanup
GitOrigin-RevId: 5d89f0e705cc8ec26524420734a34f2387ea55e1
2024-07-11 09:50:39 +00:00
Sergey Pak
16b184ae3b don't disable write protection for project files (this fixes IJPL-8423 2024.1 keeps deleting project settings in .idea folder)
GitOrigin-RevId: 7ac58c4aa258a70530797ab7fca3d43f5b0696aa
2024-06-28 14:58:04 +00:00
Sergey Pak
4c8fee0c2f Revert "another attempt to fix IJPL-8423 2024.1 keeps deleting project settings in .idea folder"
This reverts commit 1d25a81680a0872b38ec21eee30b955851ac6048.

GitOrigin-RevId: 2a03d5af7243491c673691e7981eba22f22d9d1e
2024-06-25 18:56:54 +00:00
Sergey Pak
df2f1ff35d another attempt to fix
IJPL-8423 2024.1 keeps deleting project settings in .idea folder if these settings are using the default value
IJPL-157039 IDE keeps deleting project settings in .idea folder if these settings are using the default value

GitOrigin-RevId: 1d25a81680a0872b38ec21eee30b955851ac6048
2024-06-24 18:28:02 +00:00
Roman Shevchenko
ed3121ba5b [platform] fixing VFS child creation issue in configuration stores
... + cleanup (typos; formatting)

GitOrigin-RevId: 623e56c1010b48900a34527c9f16d41b76ac130f
2024-06-22 13:19:55 +00:00
Sergey Pak
28cdb7f9ae IJPL-157048 Settings Sync: the trusted-paths.xml synchronization sometimes makes your open projects untrusted
GitOrigin-RevId: 2d994654c83c8019aa07bfaf731b031a5fa068e5
2024-06-21 16:30:11 +00:00
Vladimir Krivosheev
c0f0166720 cleanup
GitOrigin-RevId: 0cd90fc3a96aa51e671ef44b510049d5b3cad7e7
2024-06-21 06:27:32 +00:00
Vyacheslav Moklev
c511ad8ae1 [RDCT] RDCT-1224: Fix compilation of StateAnnotation
IJ-MR-130819

GitOrigin-RevId: e68b84206001ba308bf8a85f72d53089fdea0bd1
2024-06-20 16:50:17 +00:00
Vyacheslav Moklev
7a6b46ece1 [RDCT] RDCT-1224: Fix per-client components tried to reload under local clientId
IJ-MR-130819

GitOrigin-RevId: 813166a31c17e62828d0080e2c9110c9d19d47a1
2024-06-20 16:50:03 +00:00
Vyacheslav Moklev
6f539aa4c6 [RDCT] RDCT-1224: Replace guessing on per-client components with explicit stateSpec check
IJ-MR-130819

GitOrigin-RevId: a062309876b7602d22eba08d02eb481c95f37d65
2024-06-20 16:49:45 +00:00
Vyacheslav Moklev
002c70f580 [RDCT] RDCT-1224: Fix per-client persistent state components
Initially, persistent state components were not registered under remote clientId. It is not correct, though, because a non-per-client component may be loaded for the first time under a remote clientId, and it must be registered properly. This commit adds an explicit marker for per-client components to correctly implement this behavior.

IJ-MR-130819

GitOrigin-RevId: d170176f400902616e1448b0ecdf73a4c4918e8d
2024-06-20 16:48:44 +00:00
Vyacheslav Moklev
74834011ab [RDCT] RDCT-1224: Rollback unneeded changes in some setting components
IJ-MR-130819

GitOrigin-RevId: 89961673a5683d63f3d920e9edfc466d6b158c1e
2024-06-20 16:48:30 +00:00
Vyacheslav Moklev
918f867d82 [RDCT] RDCT-1224: Remove @RemoteSetting annotation and replace it with a static map in RdSettingsStorageService
There are only a handful of PersistentStateComponent that we want to synchronize. After a discussion with @develar, we decided not to have an extension point and special annotations in the platform, but to list all of such components in our code.
Components' names will not be changed to keep backward compatibility for XML settings, so it is a safe approach. In the future, we will sunset PSC anyway and migrate them to the new SettingsController API.

IJ-MR-130819

GitOrigin-RevId: 7c9b974d406f8f4179d671f6483fd7143b6618d9
2024-06-20 16:48:26 +00:00
Vyacheslav Moklev
ea02778624 [RDCT] RDCT-1224: Refactor remote settings annotations and re-annotate state components
Client-only pages: Presentation Assistant, Notifications, Markdown
Host-only pages: Debugger, Breadcrumbs, Code Editing, Reader Mode

IJ-MR-130819

GitOrigin-RevId: 7e0f8a69547029c066340d58986ee34476d3ccf1
2024-06-20 16:48:04 +00:00
Vyacheslav Moklev
755c2d7abe [RDCT] RDCT-1224: Invoke listeners when some settings are changed
IJ-MR-130819

GitOrigin-RevId: 1ae3b0339fac05178bdedfed57591a2539762c4f
2024-06-20 16:48:01 +00:00
Vyacheslav Moklev
f718908d19 [RDCT] RDCT-1224: Support sending initial snapshot for per-client state components
IJ-MR-130819

GitOrigin-RevId: e7e3ee34faecee628c0d4cdee59781ccac87db87
2024-06-20 16:47:43 +00:00
Vyacheslav Moklev
4e5b50ebac [RDCT] RDCT-1224: Add support for per-client persistent state components
Such components must never be saved on disk with a non-local clientId. They should only store data in memory.

IJ-MR-130819

GitOrigin-RevId: d99fa4e43aedae2cb520768a8e9f25822b3fe38f
2024-06-20 16:47:36 +00:00
Vyacheslav Moklev
bdc9ccfcee [RDCT] RDCT-1224: Add @HostOnlySetting annotation to prevent synchronization from client to host
IJ-MR-130819

GitOrigin-RevId: 1c9596eac59039e04aaa392be18728e5e62f7872
2024-06-20 16:47:25 +00:00
Vyacheslav Moklev
4a230bc999 [RDCT] RDCT-1224: Add settings tags for initial settings from Host and Client
Current implementation is leaking abstractions, because SettingTag code is not easily extendable at the moment. Should be fixed in the future.

IJ-MR-130819

GitOrigin-RevId: 6dd4df874c956614659d9e4175a9b0619c289b49
2024-06-20 16:47:18 +00:00
Vladimir Krivosheev
e5475bc39c move service.kt to core-api
GitOrigin-RevId: 496653a5afebb1d32ffccd8c7c3e9f6d1d3f60fd
2024-06-15 18:11:52 +00:00
Vladimir Krivosheev
82d542e5f4 refactor AbstractBundle
GitOrigin-RevId: edb1c8d1567479512bc2953b96dce7a3ab0ad0ed
2024-06-15 09:15:11 +00:00
Sergey Pak
8ce1f7d0eb IJPL-36345 Various settings missing from Import/Export in 2024.1
IJPL-156405 Can't export Terminal setting in IDEA 2024.1.x

GitOrigin-RevId: a564d027fc22b5d698eee88c90991971acd26bf2
2024-06-13 14:47:47 +00:00
Rustam Vishniakov
c009a82e75 IJPL-797 intellij.platform.configurationStore.impl review internal API
GitOrigin-RevId: a92954ebcf383b573473b22550f6c0c52cf71212
2024-06-06 18:35:13 +00:00
Roman Shevchenko
91e9cf66f9 Cleanup (formatting)
GitOrigin-RevId: 24bb4f8de890f466a1acd4ede6a4ae60c4a9d5c8
2024-06-04 08:33:11 +00:00
Roman Shevchenko
af23a37786 [platform] returning "Default Project" to the "Export Settings" component list (IJPL-36345)
GitOrigin-RevId: 9bcf36778b1cb2498ad9d0d3e4211d0012391ede
2024-06-04 08:33:11 +00:00
Vladimir Krivosheev
0904aef625 IJPL-148837 cleanup
GitOrigin-RevId: 5f67c4c65927d4924b93191377e9b092cb39e8ee
2024-05-17 10:06:45 +00:00
Alexander Lobas
3f90c0e90f IJPL-49419 Move old UI to plugin
GitOrigin-RevId: 0ebbb04fd33b7663c08303a1e3f56057fa8884d9
2024-05-12 09:25:36 +00:00
Vladimir Krivosheev
2c1f183275 cleanup
GitOrigin-RevId: ea6e0f8d5629266cbeca0a40326b5908b99b6642
2024-03-31 21:08:11 +03:00
Sergey Pak
53349a42ec IDEA-348081 2024.1 keeps deleting project settings in .idea folder if these settings are using the default value
GitOrigin-RevId: 36c6860f35c00b8a7e3dcdfb5bcc2e0232748f51
2024-03-25 00:25:49 +00:00
Roman Shevchenko
a824200140 [ui] adding project name to the settings saving progress
GitOrigin-RevId: 28817a073af6fbcc206e08960ff5b7798cec227e
2024-03-21 10:10:02 +00:00
Kate Botsman
2eb4fe7c77 GTW-7963, RDCT-1030 Remove ActionRemoteBehaviorSpecification.Frontend from actions which should be duplicated in RD
These actions can be executed both on backend and frontend (they're a part of `UnattendedBackendDelegatingActionIdsProvider.DUPLICATED_ACTION_IDS`)
`Frontend` marker is used to make them frontend-only in CWM scenario.

However, in the new actions mode, this doesn't properly work - backend's actions cannot be found in the main menu. Because now the marker interface is also being checked on frontend and the actions are considered to be frontend, therefore, backend's version shouldn't be shown.

To mark actions as frontend-only for cwm `CWM_BLACKLISTED_ACTIONS` can be used - it'll prevent backend's version from creation and won't affect RD

GitOrigin-RevId: 3e403727e1102d1f217df0e33479ea91be1f34f8
2024-03-18 16:37:19 +00:00
Vladimir Krivosheev
d1ed9b9dbf RunConfigurationSchemeManagerTest.load and update - do not run post startup activities, add listener as soon as requested, do not use if project opened
GitOrigin-RevId: 9ad60b44b0ce6131de8f0634e8bdf78ea8662ef8
2024-03-15 05:03:48 +00:00