Commit Graph

3284 Commits

Author SHA1 Message Date
Alex Plate
c23aea3909 [Workspace Model] Migrate VersionedStorageChange to sequence instead of the list
GitOrigin-RevId: 0f6cdb7a1e9cdd3025b00f94cb1978c750199636
2023-05-16 18:07:09 +00:00
Eugene Zhuravlev
a298d68725 review follow-up: ensure all known events are processed before build is started (IDEA-226765)
GitOrigin-RevId: f37a03ab8ea425c31e0b25e4627ac718a9560498
2023-05-16 14:41:48 +00:00
Eugene Zhuravlev
165f3de8ba ensure event handling in the same sequence they have arrived (IDEA-226765)
GitOrigin-RevId: 3d55987e0dc51a578152b48e4faca7b4b67644cc
2023-05-16 08:13:28 +00:00
Nikolay Chashnikov
a937ba693d [java] API cleanup: remove unused deprecated API (IDEA-312594)
GitOrigin-RevId: 885c1cb57291a0c99e9f911cb2d266ae8e7e0835
2023-05-15 13:58:12 +00:00
Eugene Zhuravlev
a045d0a99f simplify
GitOrigin-RevId: 47672277372a70605f14dea8aba9a01cb99f4fbc
2023-05-13 15:39:43 +00:00
Eugene Zhuravlev
2425d0f7cc traverse directories from created/moved/copied/renamed VFS events under non-blocking RA in background thread (IDEA-226765)
GitOrigin-RevId: 566a05ed97106523e54ae22c39acdcc5e29b4b3f
2023-05-13 12:32:44 +00:00
Alexey Kudravtsev
a4e01e7681 fix "read access required" exception
GitOrigin-RevId: 3c97dd9d4e35e1d0bfa190164d5bee0e5df7d370
2023-05-12 09:25:57 +00:00
Mikhail Mazurkevich
246ec159cf Revert "[Workspace Model] Use set for changelog in WorkspaceModelChangeListener"
This reverts commit 2a3800e2

GitOrigin-RevId: a13574ba0b51c3eac11703febd59f7adea222d03
2023-05-10 18:31:41 +00:00
Eugene Zhuravlev
1693f99f1f TranslatingCompilerFilesMonitor: avoid traversing VFS on UI thread under write action when a directory is created/moved/copied/renamed (IDEA-226765)
GitOrigin-RevId: fe8bfb02db8af903f472cf178c0d1569bdb0278c
2023-05-09 18:58:44 +00:00
Alex Plate
7b20721031 [Workspace Model] Use set for changelog in WorkspaceModelChangeListener
This is needed for a clearer understanding of the API: there is no ordering of changes in VersionedStorageChange

GitOrigin-RevId: 2a3800e216d81e87e836f8bd19708b5ba74f496a
2023-05-06 09:32:47 +00:00
Tagir Valeev
8e08ed7169 [inspection-options] Pass project to customized options pane
Fixes IDEA-318984 Choose NotNull Annotation hangs with infinite "Searching..." indicator

GitOrigin-RevId: 3c575072412a95d0aad5854f4953349748ca3dc5
2023-05-05 19:45:28 +00:00
Eugene Zhuravlev
17cc4455c8 require the SDK for running JPS build to be located in the same WSL distribution where the compiled project is stored (IDEA-319240)
- JPS process: added WSL path conversions for the SDK home path
- added diagnostics if build JDK's WSL distribution does not match the project's WSL distribution
- altered JPS build alternative SDK selection policy (triggered if neither of JDKs associated with the project is supported): now canditates will be searched in the ProjectJdkTable, and if nothing suitable is found there, the IDE's runtime SDK will be picked.

GitOrigin-RevId: 666fa9c7ea6657b730bf7641aadc5f22086d89f0
2023-05-05 17:57:59 +00:00
Ilya.Kazakevich
382a86c6e1 Cleanup and document WSL network connectivity for cases like PY-59150.
* Unify host and WSL fetching logic
* Handle error explicitly by exception
* Extract messages
* Log stdout/stderr to logs, not to show em in dialogs
* Test added

Cleanup and document WSL network connectivity for cases like PY-59150.

* No need to deal with IP address obtaining problems each time: encapsulate it in ``WslDistribution``.
* Use one registry key to switch to ``127.0.0.1`` for Windows To Linux connection
* Document current approach and usage
* Make methods not nullable (some usages do not check null at all)

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

GitOrigin-RevId: 8bb9415ea9859e76365dff79a57d2b4661897334
2023-05-05 12:25:02 +00:00
Vladimir Krivosheev
030668f02d Revert "[inspection-options] Pass project to customized options pane"
This reverts commit ff8fbe0e1e29b503a000ee311bebe7c6568fb752.

GitOrigin-RevId: f20f3638309a4058bdedae8dbbadd37188f9a8f3
2023-05-04 20:15:13 +00:00
Vladimir Krivosheev
8aeb65ec1f IDEA-319446 Save settings failed - Restart required message
GitOrigin-RevId: e5cda7ffded77d363d3284f77c6042dce29d0ccc
2023-05-04 19:21:03 +00:00
Tagir Valeev
40b4546e44 [inspection-options] Pass project to customized options pane
Fixes IDEA-318984 Choose NotNull Annotation hangs with infinite "Searching..." indicator

GitOrigin-RevId: ff8fbe0e1e29b503a000ee311bebe7c6568fb752
2023-05-04 17:26:59 +00:00
Vladimir Krivosheev
3ee80e5de6 remove runBlockingUnderModalProgress
GitOrigin-RevId: 3a356c619041bed3b771c555de99f45634a49a86
2023-04-27 13:06:50 +00:00
Vladimir Krivosheev
7edcda02a1 prefer to use coroutine IO dispatcher instead of our app executor pool
GitOrigin-RevId: 3b5b435efb92145369a3aca151f67776b99378d4
2023-04-25 07:05:48 +00:00
Alexey Kudravtsev
6d9ab19f5b add missing method createConcurrentSet(); port existing usages with corresponding SSR
GitOrigin-RevId: 00645c36006d38198e8222030cf5ddd7ad7c8bf8
2023-04-21 17:31:35 +00:00
Dmitry Batkovich
19e40bb3f9 drop read-action in ArtifactPointerManagerImpl, make it rely on internal lock
GitOrigin-RevId: cd164e738dd893fa696e44978a7f423f16e34963
2023-04-21 15:34:40 +00:00
Alexey Kudravtsev
cf0a4a2cbd optimization: avoid expensive VFS event handling for files in the TempFileSystem
GitOrigin-RevId: 969fe5ced77321f599c8eca678f249e40eb1db41
2023-03-31 02:33:27 +00:00
Dmitrii Gridin
cb407666fb [CRI] avoid hierarchy search for Object
^KTIJ-24969 Fixed

GitOrigin-RevId: dffdd64361cc6fcc2f0fff8bf93991d449a6cdb1
2023-03-20 19:10:25 +00:00
Alex Plate
d60f57461d [Workspace Model] Cleanup some usages of updateProjectModelSilent
GitOrigin-RevId: df1bf33515354f2331edbec589295d2227d382a7
2023-03-17 17:46:12 +00:00
Alex Plate
a9a4615875 [Workspace Model] [Artifacts] Add clearer messages when the developer forgot to specify packaging element field
GitOrigin-RevId: 60fcc733ec732ee2d46bc341e82746bb0125d325
2023-03-14 18:35:43 +00:00
Alex Plate
b71ea5f44b [Workspace Model] [IDEA-272864] Fix accessing artifact elements that is now under modifications
GitOrigin-RevId: 3c30d131349667163769fbfed8c253d48aabc26d
2023-03-14 18:35:42 +00:00
Alex Plate
e7235fc1c5 [IDEA-314549] Refactoring TableSpeedSearchBase to avoid constructors with side effects
GitOrigin-RevId: aa483ba5d8fde5369c9ef002e518a64f47e2fbd8
2023-03-02 16:27:45 +00:00
Alex Plate
49a72875dd [IDEA-314549] Refactoring ComboboxSpeedSearch to avoid constructors with side effects
GitOrigin-RevId: 6bc390f0144d08fcbdd1535fb3907a84c6e952bb
2023-03-02 16:27:42 +00:00
Daniil Ovchinnikov
a1dd33fac7 return AccessToken from com.intellij.ide.IdleTracker.addIdleListener
GitOrigin-RevId: 2d7b442fe55eda478f1c646198e22e4daca51377
2023-02-24 14:36:05 +00:00
Mikhail Mazurkevich
f956ed50ed [jps caches] IDEA-311017 Avoid showing confusing notifications and ask to log in again
GitOrigin-RevId: 9f0cd6fd59f63431b130fcbe398514736e43e5bb
2023-02-23 15:22:04 +00:00
Alexey Kudravtsev
9f5b60b0f0 replace some usages of ContainerUtil.set() with immutable sets to get rid of unclear-semantic methods
GitOrigin-RevId: 3ba1266af01d64a228c10df59b18c4ac797c2a9b
2023-02-20 19:11:19 +00:00
Louis Vignier
e6cb34ea9f Revert "[java] Hide MakeModuleAction when disabled"
This reverts commit dee35de8be5ba53a4db7af2317172df537087f5f.

GitOrigin-RevId: 681833ff9ed3258c903769d2ee15f136e5ec17d2
2023-02-20 12:41:13 +00:00
Louis Vignier
975dd2a2da [java] Hide MakeModuleAction when disabled
#IDEA-313482 Fixed

GitOrigin-RevId: dee35de8be5ba53a4db7af2317172df537087f5f
2023-02-16 18:27:49 +00:00
Alex Plate
eddc230593 [Workspace Model] [Artifacts] Fix IDEA-310878
GitOrigin-RevId: 760edb2f7742e13e71bcadcefbdd7e656afb5ef5
2023-02-15 10:13:46 +00:00
Alex Plate
2920248aba [Workspace Model] [Artifacts] Reformat code
GitOrigin-RevId: df977e8d1e6227a08500185356d31f545a79f46b
2023-02-15 10:13:42 +00:00
Nikolay Chashnikov
4e6b7d95c1 cleanup: get rid of usage of the deprecated Comparing::compare methods
Methods from JDK are used instead.

GitOrigin-RevId: bc8421f1154fab3a6cc474e59cdc2b7131b1f58f
2023-02-13 17:15:55 +00:00
Alex Plate
bce4f591e5 [Workspace Model] Use different API to access workspace model in artifacts
GitOrigin-RevId: d32cb7571510be16602c3ac81b3e9b693ba4a1cc
2023-02-13 15:28:48 +00:00
Alex Plate
2114af4fbb Remove ide.new.project.model.artifacts.sync.initialization registry key
GitOrigin-RevId: 5df7cee2a1592e6420828a04453a12547458d09d
2023-02-13 15:28:45 +00:00
Nikolay Chashnikov
82571da354 cleanup: remove unnecessary method ModuleEntity.isModuleUnloaded
Since entities corresponding to unloaded modules were moved to a separate storage (IDEA-298694), this method always returns false for entities in the main storage.

GitOrigin-RevId: 15a4430a56884f2ac23e933fd6b07d6a82a50138
2023-02-13 13:44:16 +00:00
Nikolay Chashnikov
c11032d8f5 [workspace model] refactoring: change the direction of dependency between projectModel.impl and workspaceModel.jps modules
Now intellij.platform.projectModel.impl depends on intellij.platform.workspaceModel.jps module. Classes and functions which don't depend on IDE concepts were moved to workspaceModel.jps module, classes which do depend on IDE concepts were moved to projectModel.impl module. This is needed to reuse code from workspaceModel.jps module in the external build process (IDEA-252970).

GitOrigin-RevId: 086298cdf889b77dae8619a66432059f7b6435b3
2023-02-09 23:04:13 +00:00
Tagir Valeev
0892646cb9 Enhanced switch used
GitOrigin-RevId: cf148ceb6c09ad0a00d05475b55113ab36c7a0ac
2023-02-09 11:21:32 +00:00
Nikolay Chashnikov
676e40f7e4 [jps build] cleanup: mark Utils.getDataStorageRoot as @NotNull and simplify code
The method may return null only if 'projectPath' argument is null, but it appears that it never happens.

GitOrigin-RevId: d9ca4c46f71d5f467ecb4791eac8fd902450170c
2023-02-08 12:04:13 +00:00
Alexey Kudravtsev
77dc8d93ab codeinsight: convert some private/internal classes to record to simplify code
GitOrigin-RevId: 1820f00e72361868b6748039011c39598a82655b
2023-02-07 19:32:27 +00:00
Nikolay Chashnikov
e1a038a4ff [gradle] compare strings using 'equals' instead of '==' or '!=' (IDEA-312368)
This is needed to avoid possible errors and get rid of warnings.

GitOrigin-RevId: 90c7d10b385cd41986c61237f502e8f6b24489c5
2023-02-06 19:59:00 +00:00
Vladimir Krivosheev
a21963b9eb IJPL-90 rename ProjectPostStartupActivity to ProjectActivity
GitOrigin-RevId: f5df57152ced671ae3127a1bfb8c38146be2b965
2023-02-06 19:52:27 +00:00
Vladimir Krivosheev
55428c0934 a better name — rename IdleFlow to IdleTracker
GitOrigin-RevId: f76ade0e9ad5b4b26e3d549a5f6537251113b6fd
2023-02-03 08:11:49 +00:00
Tagir Valeev
e9832acb26 [java] Use pattern variables; other minor cleanup
GitOrigin-RevId: e2345bd54d92f6676c6fbc55955e85cbdc5c2793
2023-02-01 17:09:26 +00:00
Eugene Zhuravlev
c860bf5c6a revert to original doAction implementation due to compatibility issues
GitOrigin-RevId: 458364ebcf660c93ddd6b77ad94a98e2998842c9
2023-02-01 13:48:41 +00:00
Nikolay Chashnikov
d36c4ded36 [workspace model] API: deprecate virtualFile property from 'impl' package and use the variant from API instead
GitOrigin-RevId: e6b20ca4e62951df2ae4fd53bdd71bdbb8d604e7
2023-01-31 13:52:29 +00:00
Nikolay Chashnikov
35b9b757f6 [workspace model] extract API to work with VirtualFileUrl instances
There are similar functions in projectModel-impl/.../utils.kt, but they are located in impl package, and don't have proper JvmName so their usages from Java code don't look good.

GitOrigin-RevId: e0e6d41ac84b066c6deaba0c2fc1c2eece30624b
2023-01-27 16:19:55 +00:00
Vladimir Krivosheev
9824c28b60 avoid using old pooled threads - reuse coroutine pool
GitOrigin-RevId: ae7c8acec894b8e742924dc98a3e00976e178da9
2023-01-26 15:26:57 +00:00