Alex Plate
f924b6dd20
[Workspace Model] Load additional module elements
...
GitOrigin-RevId: ae1c31e2c21848e3e4cdac90f0e58481e22d028b
2023-01-23 17:13:14 +00:00
Daniil Ovchinnikov
578eaaf60e
rename library kotlin-stdlib-jdk8 -> kotlin-stdlib
...
GitOrigin-RevId: cddf45ccfd5563d3fe209bea62a1c37c94f44ff9
2023-01-10 12:22:34 +00:00
Nikolay Chashnikov
598d766662
[workspace model codegen] don't add explicit imports for packages imported by default
...
Such imports are removed by 'Optimize Imports' leading to changed files.
GitOrigin-RevId: 77849ed67379d5df325095e41400c6766ef3337b
2022-12-22 15:55:17 +00:00
Mikhail Mazurkevich
4364af2420
[workspace model] Get rid of redundant urls copy at before indexing
...
GitOrigin-RevId: 2677b470319d26d098dc277d460a189913f18c3a
2022-12-13 22:35:49 +00:00
Mikhail Mazurkevich
2b4a48b650
[workspace model] Fix new implementation of replace by source
...
Without this fix we didn't update references declared via extension properties at replace operation.
Now we taking it into account and all links update coming through unified `updateChildToParentReferences` which can handle explicit and implicit references to the entity.
GitOrigin-RevId: bace4f2468193c783839e3cf7cf4fe20b1a97f16
2022-12-03 14:13:10 +00:00
Mikhail Mazurkevich
535c8b4869
[workspace model codegen] Make instantiation of entities simpler from Java
...
GitOrigin-RevId: b6343a20511ade431480aae8d8dd7a8a147caa1b
2022-11-10 19:10:42 +00:00
Mikhail Mazurkevich
6661f81e2c
[workspace model] IDEA-304968 Avoid creating new entity data at requesting entities from MutableEntityStorage if not needed
...
GitOrigin-RevId: 85af8ad01b6acaab1b8ba19dde5f8ea3199313e2
2022-11-03 18:55:00 +00:00
Mikhail Mazurkevich
a81f4b6930
[workspace model] IDEA-304968 Get rid of redundant thread local variable occupation
...
GitOrigin-RevId: 42d7e5c83eacadbcb8b828aeaa077162d7aa369f
2022-11-03 18:54:53 +00:00
Alex Plate
62f296839e
[Workspace Model] Remove entity source variable from the base class
...
GitOrigin-RevId: 4d1a1bb2868cbc121666ca497529e60b1e88c10d
2022-10-25 14:11:04 +00:00
Mikhail Mazurkevich
1c3bb98060
[workspace model] Create gen folder in test if it doesn't exist
...
GitOrigin-RevId: 28f1d2bb28ac2681e5c67a7c09bfd50053e3bf2a
2022-10-19 16:54:25 +00:00
Mikhail Mazurkevich
fe7432a327
[workspace model] IDEA-300481 Rename PersistentEntityId to SymbolicEntityId
...
GitOrigin-RevId: 7bae4a6812902b2f7cc8214d7df68c95ebfe8b4f
2022-10-18 13:31:17 +00:00
Mikhail Mazurkevich
67dcc8eea9
[workspace model] IDEA-300481 Rename com.intellij.workspaceModel.storage.bridgeEntities.api to com.intellij.workspaceModel.storage.bridgeEntities
...
GitOrigin-RevId: 6a6cefa7605694dfe4b0fe15bc8fc21847d0f9c9
2022-10-18 13:31:11 +00:00
Mikhail Mazurkevich
424dc8695a
[workspace model] IDEA-300481 Rename ModifiableWorkspaceEntity to WorkspaceEntity.Builder
...
GitOrigin-RevId: b7e708abb0b8ae0725300fe09950cf2e9fc46836
2022-10-18 13:31:02 +00:00
Nikolay Chashnikov
fc4eec2206
[workspace model codegen tests] use system independent path to fix tests on Windows
...
GitOrigin-RevId: 8377914f285413cdf79d0b4e6329fcca009bc7ce
2022-10-04 16:03:01 +00:00
Alex Plate
026ac915f2
[Workspace Model] Detach entity data from builder when we add an entity in the storage
...
GitOrigin-RevId: ddf111543f1c8f1117c15b1bf6592e7ae7e2805c
2022-09-22 08:23:05 +00:00
Mikhail Mazurkevich
3a627110bf
[workspace model] IDEA-302024 Allow collection modification for entity without store
...
GitOrigin-RevId: c6f2c6b929853b5b872312602868644c544caed5
2022-09-19 21:44:40 +00:00
Mikhail Mazurkevich
5e4fc80c11
[workspace model] IDEA-301665 Avoid storage leak via link to MutableEntity in MutableWorkspaceCollection. Also restrict collection modification outside modifyEntity
...
GitOrigin-RevId: 603dfe6b856fc995cbe4796e1526b3055ee5e50b
2022-09-16 17:13:56 +00:00
Mikhail Mazurkevich
b0c08d73b3
[workspace model] Add option for entities generation to AllIntellijEntitiesGenerationTest and get rid of ConcreteIntellijEntitiesGenerationTest
...
GitOrigin-RevId: 172fc3c7f9031494602c8dbaa81d69928236335a
2022-09-16 17:13:53 +00:00
Mikhail Mazurkevich
8ccd2d9c64
[workspace model] Add test for checking generation for all entities in Intellij codebase
...
GitOrigin-RevId: dc2dcb9d6eed611dca5d1d75e99c48995adc240b
2022-09-14 22:15:36 +00:00
Alex Plate
bdb208d83c
[Workspace Model] [new RBS] Do not relabel entities if they weren't changed
...
GitOrigin-RevId: 7b4b4cbb529b368374fa7232b3dca1ff115d634d
2022-09-13 16:57:28 +00:00
Alex Plate
3633956fb9
[Workspace Model] Switch to java reflection for performance
...
GitOrigin-RevId: 3eba03954e0dd8bce7cade0433bd0b7d11bf25c2
2022-09-13 10:24:40 +00:00
Mikhail Mazurkevich
4fa49e57a2
[workspace model] Hide WorkspaceModelGenerationAction for all projects except for intellij
...
GitOrigin-RevId: 0fc266322c5fd7fcb9bce0f7dec3976069d8eb36
2022-09-12 13:49:15 +00:00
Alex Plate
e3478eae82
[Workspace Model] Make entity implementation thin and cache entity
...
Instead of copying a lot of data, we now delegate entity to entity data
GitOrigin-RevId: cbed3cb53f879b990f77aa72c0824132cdc6b768
2022-09-06 18:05:22 +00:00
Nikolay Chashnikov
c8538c4ba6
[workspace model codegen] fix test data to properly check Set of PersistentEntityIds
...
GitOrigin-RevId: 38069c5d0a62019818acf2bd4c8e0ef8793d0430
2022-09-02 11:23:40 +00:00
Alex Plate
84574c4b3f
[Workspace Model] Disable generator version check in tests where you do generate entities
...
GitOrigin-RevId: 3ed8fbeb4c3b646bdff2355b11bd8214677c8e9a
2022-08-24 17:18:05 +00:00
Alex Plate
1b7c2e6f27
[Workspace Model] Regenerate entities
...
GitOrigin-RevId: 1582f5e6638c2f502d5774d3a8ed74a316d8f0cf
2022-08-24 10:20:12 +00:00
Alex Plate
5d3ca5de6f
[Workspace Model] Fix serialization of rider-like entities
...
GitOrigin-RevId: bb43dc3facbd0598809e5205b3997cfc547de296
2022-08-24 09:40:48 +00:00
Nikolay Chashnikov
009632f993
refactoring: reuse method from ProblemsViewToolWindowUtils (IJ-CR-94590)
...
GitOrigin-RevId: 38d829e91b67dec4f009a2c004342c84b7df8c70
2022-08-23 15:51:28 +00:00
Nikolay Chashnikov
301aab63ff
[devkit] workspace model inspection: fix loading the actual API version from class-files (IDEA-300499)
...
In order to properly read the field value from compiled class-files, we need to convert it to a constant and use Java PSI API. Also, it makes sense to just skip the inspection if the field cannot be found, because it may be caused by changes in the implementation which aren't reflected on the devkit side yet.
GitOrigin-RevId: 15c03e8aca02d7b2d685aaa91a067d911299c681
2022-08-23 15:51:24 +00:00
Nikolay Chashnikov
c5b88d9468
[workspace model codegen] move checks from the old code to the new generator
...
GitOrigin-RevId: c9a8f94a71b904affb46c28bb32e3ee605698169
2022-08-23 10:58:39 +00:00
Nikolay Chashnikov
772089d740
[workspace model codegen] report errors from code generator in Problems View
...
GitOrigin-RevId: ec9b026083c647144cded9e62cb6d4854a0c9aef
2022-08-23 10:58:36 +00:00
Nikolay Chashnikov
da1dcd5aec
[workspace model codegen] refactoring: move implementations of Obj meta model to intellij.devkit.workspaceModel module
...
This is needed to store references to source elements in them and implement error reporting.
GitOrigin-RevId: d27349bdf94b3340afe68b25190be64901cb8787
2022-08-23 10:58:35 +00:00
Nikolay Chashnikov
d318f09b0b
[workspace model codegen] cleanup: simplify code after migration to qualified names
...
...and remove unnecessary KtInterfaceType.
GitOrigin-RevId: 1ce0525716cf493b3dce6460cc89ea9027216589
2022-08-23 10:58:32 +00:00
Nikolay Chashnikov
7e21b214f4
[workspace model codegen] include descriptive error messages in exceptions thrown by WorkspaceMetaModelProvider
...
GitOrigin-RevId: 9daf6cd0cc909597b0c4a8bdf4f954d9cc8687bc
2022-08-23 10:58:31 +00:00
Nikolay Chashnikov
29772fa18b
[workspace model codegen] don't trigger 'save' synchronously when entities are generated
...
It's unnecessary and may cause deadlocks.
GitOrigin-RevId: 67d32a67b0f7ed8f438b1c51e8719e887ff21df2
2022-08-23 10:58:30 +00:00
Nikolay Chashnikov
e165a66303
[workspace model codegen] internationalize progress messages
...
GitOrigin-RevId: 02c5fd317d59ba6f4ad940a782ee56f09ad7e9d0
2022-08-19 22:33:40 +00:00
Nikolay Chashnikov
750b72c0a2
[workspace model codegen] UI: mark progress as determinate
...
GitOrigin-RevId: 5eece4b2f6a17398f9d11975cfecde195bb6c95a
2022-08-19 22:33:37 +00:00
Nikolay Chashnikov
e5cc01c389
[workspace model codegen] cleanup: remove unused code
...
GitOrigin-RevId: 39bc85aae847eb7a959f63d2cead6ffcbcb33c19
2022-08-19 22:33:34 +00:00
Nikolay Chashnikov
e0861f48c8
[workspace model codegen] rewrite InterfaceTraverser to new meta Obj API
...
This is needed to get rid of DefType and the old handwritten Kotlin parser it uses.
GitOrigin-RevId: cd810c9870be8ff0fcf7aa3331735428baddd976
2022-08-19 22:33:23 +00:00
Nikolay Chashnikov
9a8afbf612
[workspace model codegen] update test data to reflect changes in generator
...
The order of properties was changed, and now it's required to properly import all used classes.
GitOrigin-RevId: 4a5f50f1d32214ec3768a5d1d39798f4f6b851c4
2022-08-19 15:19:41 +00:00
Nikolay Chashnikov
3b886f99dc
[workspace model codegen] build meta model of entities using Kotlin descriptors API
...
This way, we can get rid of the handwritten Kotlin parser and avoid problems caused by it: incorrect behavior in corner cases not supported by the parser, necessity to compare classes by short names because imports aren't resolved, complicated code.
GitOrigin-RevId: a68f4913452c52a11246fcfbfd6fb1a0ee65a1d4
2022-08-19 15:19:39 +00:00
Nikolay Chashnikov
f4d7ece871
[workspace model codegen tests] check generation of code which indexes VirtualFileUrls
...
GitOrigin-RevId: cdc2aa87dfe55e43a7f932da350042160f39e5f6
2022-08-19 15:19:35 +00:00
Nikolay Chashnikov
e1b993573f
[workspace model codegen tests] mark base test class as abstract to avoid 'no tests' warning
...
GitOrigin-RevId: ffe8100cf6871ce113d7f9dd85f515d9af384dfc
2022-08-17 11:22:17 +00:00
Nikolay Chashnikov
609db74db6
[workspace model codegen] refactoring: move CodeWriter class and tests to devkit plugin
...
This is needed to get rid of dependencies on PSI in workspaceModel.codegen module and extract it to a separate library (IDEA-297350).
GitOrigin-RevId: 36cd0cafc04b6f7f92a4c746fbec473b35b5f925
2022-08-17 11:22:16 +00:00
Vladimir Krivosheev
90fbb0d0a7
fix deadlock on save if called from EDT
...
GitOrigin-RevId: 749991728e9b67b60fdf8cef2127776c8196b788
2022-07-13 10:23:28 +00:00
Nikolay Chashnikov
4253ceeaad
[devkit] include intellij.platform.workspaceModel.codegen as a module to devkit plugin (IDEA-295975)
...
...and add it as a dependency to intellij.devkit.workspaceModel module.
GitOrigin-RevId: 0dda553b1f14cd300d70920d3e2e2cf4f4c7c52e
2022-06-14 10:35:52 +00:00
Nikolay Chashnikov
02498626f0
[devkit] use unique root package name for intellij.devkit.workspaceModel module (IDEA-295975)
...
To avoid clashes with intellij.platform.workspaceModel.codegen module.
GitOrigin-RevId: 480f8aa1fa6445439faf022802a36aac5ebcc7ae
2022-06-14 10:35:50 +00:00
Mikhail Mazurkevich
dca5166e03
[workspace model] Allow to use action if called from the Action Search menu (fix for module with two content roots at Rider)
...
GitOrigin-RevId: 93b3cbb2570088e2e32bf18a3af880a73d0cf2b7
2022-06-08 18:24:51 +00:00
Gregory.Shrago
b86bfa4112
deprecate UpdateInBackground: cleanup 3
...
GitOrigin-RevId: 09cb45af326017722587efc2e3f7fd73680f4f67
2022-06-02 00:43:15 +00:00
Mikhail Mazurkevich
5ce503d2d1
[workspace model] Set scope for kotlinc.kotlin-compiler-common as provided
...
GitOrigin-RevId: 04d5e138839ffaee95e19ecce501d1d515413baf
2022-05-31 18:56:17 +00:00