Commit Graph

3362 Commits

Author SHA1 Message Date
Alexey Kudravtsev
0d206b1e3e KTIJ-31347 High CPU usage when non-source root .kt file is opened
(cherry picked from commit 4fe1aada132f89fa8a515d5477d2c511dafa3863)

IJ-CR-153631

GitOrigin-RevId: 095ebbc613cd5e3a5685b64c3dab5af3a03b3010
2025-01-27 13:19:15 +00:00
Artem.Bukhonov
1e3b46d241 IJPL-172041 Use ClearableClassValue InspectionVisitorOptimizer.SELF_AND_SUPERS to avoid memory leaks on unloaded classes
GitOrigin-RevId: af221a57257bd2dc8d08365b36185304dfe76cdb
2024-11-26 19:01:09 +00:00
Artem.Bukhonov
786d596722 LLM-10366 Get rid of service override for InlinePromptManagerImpl in favor of an extension to support the dynamic behavior of AIA
(cherry picked from commit 091bec774084c7307f17564cc38639345398a7cb)

GitOrigin-RevId: 3236bab2abd25e0e79b371e561fc6590ef31a3d3
2024-11-18 13:31:20 +00:00
Gregory.Shrago
65ddc7f440 IJPL-165500 INRE: AnnotationHolderImpl.runAnnotatorWithContext
(cherry picked from commit c6ae3528dea71309b005514ce1cb3d3b0a71bf72)

IJ-CR-148073

GitOrigin-RevId: b7f8f59b84c7e1e1908fa51a5eb19d146cddffa3
2024-11-04 14:29:50 +00:00
Yuriy Artamonov
36e0f786c3 [editor] IJPL-165302 Use minimum safe auto reparse delay instead of 0
(cherry picked from commit b68b251f0df2a9dc8c4a6df654d0bf6f57016da2)

IJ-CR-147882

GitOrigin-RevId: 06a2e91b278f1c6380892906dfd2b9283bf16e84
2024-10-29 19:17:50 +00:00
Liudmila Kornilova
4f1ee76a4b IJPL-149042 Introduce FilesInContentPropertyPusher to index only files that are in content
(cherry picked from commit 4f76bc5843f9f33b08f0a4e52d953ee97a2cd256)

IJ-CR-147945

GitOrigin-RevId: a9659518e6b2e4c311ef73a3230aaf998c455c82
2024-10-28 19:38:14 +00:00
Tagir Valeev
1d58cede1d [mod-commands] Rely on document text, rather than PSI text when building the final command
For some reason, they might be different. Probably due to incorrect PSI at the beginning of the action. In any case, document should be the source of truth, as the ModCommand will be applied to the document, rather than PSI
Fixes IDEA-359782 try postfix completion generates trailing garbage


(cherry picked from commit 292399a28d347f9b4fa22730002299d5c5b68167)

IJ-CR-147269

GitOrigin-RevId: 2ccd437d3c51c0ded16be634650ed8dfc59770b4
2024-10-22 14:39:05 +00:00
Alexey Kudravtsev
6bea9cfe04 optimization: do not iterate all range markers in the document, use the visible area only (part of IJPL-162151 Scrolling is slow)
GitOrigin-RevId: e0fbaf8757364a3ad0e823facee0def50cd7f49c
2024-10-14 15:40:08 +00:00
Andrei Iurko
4111cfc875 [qodana] QD-9891 Add aspects with the highest certainty for inspections
GitOrigin-RevId: 8fad66714287192bd5cbc8396a3d30f1ba139302
2024-10-11 14:49:57 +00:00
Dima Golovinov
bfc72fe62b [qodana] Allow logging time of suspendable activity
(cherry picked from commit 39e425c879b158475433d0d0df5cae08a26a265b)

NET-MR-15378

GitOrigin-RevId: 5627872a0a1af7a7056c156eac4b6c7e77bdb818
2024-10-11 09:06:17 +00:00
Nikolay Chashnikov
5d493a6231 [analysis] API cleanup: mark deprecated unused API for removal (IJPL-156972)
GitOrigin-RevId: d2fb148fffcb020b618e16ad97f7c2e726dc7456
2024-10-10 23:55:42 +00:00
Ilya Kirillov
0fa8750fb8 Revert "optimization: do not iterate all range markers in the document, use the visible area only (part of IJPL-162151 Scrolling is slow)"
This reverts commit 4353aab31f4af5e3c50662669f94b823b01d3031.

- It causes a deadlock in kotlin tests: IJPL-163726
- It breaks some remote dev and code with me tests: IJPL-163871

IJPL-162151

GitOrigin-RevId: d0764a892d03104c58f8601cfbea7b35a95c71fb
2024-10-10 16:11:03 +00:00
Patronus
6c2b53eb78 Merge refs/patronus/safepush/18b47c4cc25f45f88be2251eea1679a1 into master
GitOrigin-RevId: f28f89b169b88ce2c06e472d5a9ae3b6002d0e46
2024-10-08 22:23:29 +00:00
Vlad Koshkin
07f3709831 [kotlin] K2: refactor KotlinDiagnosticHighlightVisitor
^KTIJ-29345

GitOrigin-RevId: 898a4d9e3584740f3cb94be63491b47173b6dfc4
2024-10-08 16:44:44 +00:00
Ivan.Yarkov
bafdf0b407 RIDER-113376 provider custom Rider search scope, so it uses base project directories instead of content roots
fixes "Go To Implementations" / "Go To Derived Symbols" action


(cherry picked from commit 6b500d09250c5be63e9bcd90e4ca48bcfe913c90)

IJ-MR-146194

GitOrigin-RevId: ca184640fda069a9aee880ca4455ccd588f863fd
2024-10-08 13:31:02 +00:00
Victoria.Petrakovich
51d2096d90 Merge commit '4faae27bfc6c5e8aec5c10c7e7bb3a09825ad351'
GitOrigin-RevId: 774773199c9d093f41d9af1b589768473be99a06
2024-10-08 13:52:22 +02:00
Vlad Koshkin
c5174cbdb1 [kotlin] K2: suppress errors during incomplete mode
^KTIJ-29345

GitOrigin-RevId: 526b217afff070037dbeced43b2fa67e35197cdd
2024-10-07 19:50:34 +00:00
Max Medvedev
55b6a785c9 FileStatusMap: check project nullability
GitOrigin-RevId: 6f57a6772e24727a919386986927ea32a07afef8
2024-10-06 11:17:51 +00:00
Max Medvedev
9d2c502677 nullable file does not make sense
it's never null in all meaningful cases

GitOrigin-RevId: fb02362221df44979ce1ccd886849fcffc44f555
2024-10-06 11:17:51 +00:00
Max Medvedev
e7dac4378e cleanup ModuleWithDependenciesScope
GitOrigin-RevId: 18c5d275ac1c130073882888c6d3cedad3ea9502
2024-10-06 11:17:51 +00:00
Max Medvedev
8f500b1db8 remove unused field from GeneralHighlightingPass
GitOrigin-RevId: 03a302b8f9752e7ce3bae359fe9adf4f617c2621
2024-10-06 11:17:51 +00:00
Daniil Ovchinnikov
823e985f18 API dumps: re-generate dumps
GitOrigin-RevId: b5cec844cbfe3313723404f7a85b590c25350b41
2024-10-04 21:20:21 +00:00
Alexey Kudravtsev
5a4227cc44 optimization: do not iterate all range markers in the document, use the visible area only (part of IJPL-162151 Scrolling is slow)
GitOrigin-RevId: 4353aab31f4af5e3c50662669f94b823b01d3031
2024-10-04 16:07:04 +00:00
Alexey Kudravtsev
87f94339b9 cleanup: move HighlightInfoComposite inside HighlightInfo to further encapsulate internal fields
GitOrigin-RevId: 6cb0857ad48b59cc0d1250cd2ed9fd3917ee6e91
2024-10-04 16:07:04 +00:00
Alexey Kudravtsev
89158d79be cleanup: encapsulate highlighter
GitOrigin-RevId: cae75e82c05d314ac3f1918e19b8c56337fd2c5d
2024-10-04 16:07:04 +00:00
Nikolay Chashnikov
f8239999d0 IJPL-797 intellij.platform.core.impl review internal API
Mark as internal classes which have no usages in the Marketplace and in plugins in the intellij project.

GitOrigin-RevId: 6d09e8de52d303bb8cba68f5956d2432fccae0e3
2024-10-03 17:39:16 +00:00
Nikolay Chashnikov
1a16d06b5e IJPL-797 intellij.platform.analysis.impl review internal API
Mark as internal classes which have no usages in the Marketplace and in plugins in the intellij project.

GitOrigin-RevId: 7adfc0d130a19aed33eaa1f400bcee4c0149de86
2024-10-03 14:00:12 +00:00
Yuriy Artamonov
9765a5c4ce [performance] A lot of memory allocated from InspectionVisitorOptimizer.getTargetPsiClasses for lambdas
GitOrigin-RevId: a7f330d3fd1633ee1d17040ba114a0daf4a42eb1
2024-10-02 21:55:47 +00:00
Alexey Kudravtsev
b238ba6e1e optimization: do not create ShowIntentionPass for canceled indicator
GitOrigin-RevId: be496653a993faed8250f0e7d17e4c340885ec46
2024-09-30 17:53:45 +00:00
Marco Pennekamp
43c13a2fe5 [platform] Make LibraryScopeBase.getEntries API-internal
- The function is only intended to be used by internal implementations (crucially, we don't want to expose `Object2IntMap`). Because `LibraryScopeBase` itself (despite being part of an `impl` package) is a public API, `protected` isn't enough to hide the method from the public API surface.

^KT-57733

GitOrigin-RevId: df02cbac31a4b4d6c79b966189ffc96c9d6d21ff
2024-09-30 12:18:19 +02:00
Marco Pennekamp
31ec0fab5b [kotlin] Implement a combinable scope for source and class roots as a replacement for ModuleWithDependenciesScopes and to combine library scopes
- Uncombined (unions of) `ModuleWithDependenciesScope` and `LibraryWithoutSourceScope` are heavily inefficient because the `contains` function requires getting the virtual file's file info for each `contains` call. When we have uncombined scopes, the file info may be requested hundreds of times. A combined scope allows getting the file info only once, and then check the roots.
- The new `ModuleSourcesScope` and the existing `LibraryWithoutSourceScope` are easily combinable, since we just have to create a combined roots map. There is no other complex magic going on to construct an efficient combined scope.
- Combined scopes have a large positive impact on performance in various test cases where we have a complex module structure with many dependencies. In fact, in some of the test cases we cannot feasibly optimize anything else from snapshots since uncombined scopes are such a huge drag on performance.
- Changing `ModuleWithDependenciesScope` and the default scope provided by `Module.moduleProductionSourceScope` and `moduleTestSourceScope` in the platform is difficult, because there are internal and external usages of `ModuleWithDependenciesScope`. It is supposed to be an implementation detail, but various usages cast `GlobalSearchScope`s to `ModuleWithDependenciesScope`s to get the module from the scope. Hence, it is currently much easier to make a change limited to the Kotlin plugin and reap the performance benefits now.
- This has the disadvantage that we'll have duplicate implementations for `AbstractVirtualFileRootsScope` and `ModuleWithDependenciesScope`, so we should still push for integration into the platform.

^KT-57733

GitOrigin-RevId: 0ca6b15f78803af9a47fd229b9b650368f95ca87
2024-09-29 22:20:56 +02:00
Vladimir Krivosheev
a9e7930abe bazel - build lang-impl
GitOrigin-RevId: c4c4dce20bd6e4046644f95f6e7b3f437c51668d
2024-09-27 13:47:17 +00:00
Vadim Salavatov
e57bdcaf7d IJPL-161819 revert layer override introduction in HighlightInfo, migrate to InternalLayerSupplier
GitOrigin-RevId: c0256b65344070f846c88d7a9f34d6ddae8a47cc
2024-09-27 09:33:57 +00:00
Vladimir Krivosheev
a1210118c0 bazel - fix JPMS, exports and internal
GitOrigin-RevId: 3dc80a9ee01e1900c0cebc24b2d08f04f93ddeff
2024-09-25 19:05:37 +00:00
Alexey Kudravtsev
88aef88cc8 remove deprecated visitingRange
GitOrigin-RevId: b59d4171d6d35f791537d651b16f16c65bb3ea9c
2024-09-25 16:34:57 +00:00
Alexey Kudravtsev
154adb7882 cleanup
GitOrigin-RevId: 943d3008b6c8a73d5e8d66a0284a62e1ff1d8d0f
2024-09-25 13:26:59 +00:00
Dmitry Batkovich
a2a9a816a9 IJPL-161819 inline prompt detection:
* add context to generation prompt
* implement support for html, yaml, json
* remove progress bar from generation status bar
* change UX to highlight regeneration / prompt clarification after generation done
* refactor code

GitOrigin-RevId: c87d4dd1302e44a281d86d7f7861d6b2c94ef29f
2024-09-24 07:50:10 +00:00
Daniil Ovchinnikov
450b2f7d7c remove unnecessary @RequiresBlockingContext annotations
GitOrigin-RevId: 3f78091e5734aba6b86ca28f9bae033732592ceb
2024-09-23 20:08:27 +00:00
Alexey Kudravtsev
d2bfc2652e remove dangerous method cleanAllHighlights poised to ruin highlighting consistency; see https://jetbrains.team/p/ij/reviews/143450
GitOrigin-RevId: f189d953eb33f503b25ce52c9e8d775423653299
2024-09-23 18:49:46 +00:00
Alexey Kudravtsev
8aed41bec1 cleanup
GitOrigin-RevId: ebfd9065f8b4961fb65e64ae632d012ab7c9ef13
2024-09-23 11:39:55 +00:00
Vladimir Krivosheev
4eb9b78b78 use bazel to build platform-impl
GitOrigin-RevId: b5bbc75323a08c7674777e512dcfd988ceb4461f
2024-09-22 17:01:28 +00:00
Vladimir Krivosheev
834bd75254 run jps-to-bazel by Bazel, compile platform using Bazel
GitOrigin-RevId: 3774d5adc404b02036f70b7cc35c9e60fdb5d84c
2024-09-21 00:54:17 +00:00
Tagir Valeev
d013c9980e Remove redundant keySet/values calls
GitOrigin-RevId: e972012a4ead404120b0f947c79d059f6d96f942
2024-09-18 20:27:35 +00:00
Gregory.Shrago
4bed7454d8 add knownIssue section for top issues
GitOrigin-RevId: eff01ab98fd019a2454c72e29082cbdf1af0f984
2024-09-17 04:19:24 +00:00
Artem.Bukhonov
e81e9c368d RDCT-1706 Use withExplicitClientId() in TextEditorHighlightingPassRegistrarImpl
GitOrigin-RevId: a690a6336ab3f8ff24a35736965953896abf5fc4
2024-09-16 15:37:56 +00:00
Alexey Kudravtsev
c74f071228 EA-1392859 IVFAE: FileManagerImpl.findFile
GitOrigin-RevId: 498d4feda757bbb8e61b0a19a76c03ff7d5f86a2
2024-09-16 11:46:25 +00:00
Alexey Kudravtsev
8b6e5ebc0c optimization: save memory on duplicate maps by making them copy-on-write
GitOrigin-RevId: d3ba1f05221a7760d8357da9a02282016706b695
2024-09-13 22:48:02 +00:00
Louis Vignier
ddf360b575 [codeInsight] Add inspection profile choice in cleanupElements
#IJPL-60378

GitOrigin-RevId: 2cb258f986e9af02d13b8788a169f1b448990a52
2024-09-13 16:50:25 +00:00
Alexey Kudravtsev
c654ebb284 cleanup
GitOrigin-RevId: 6f46365db86b8cebc53123835b81a8b8d8711441
2024-09-13 13:32:35 +00:00
Alexey Kudravtsev
a7c08af12a optimization: do not recalculate hashCode of 10K+-sized lists on each typing, do not store them in the map keys (part of KTIJ-27513 K2 IDE: Slow reference search for specific symbols in unused symbol inspection)
GitOrigin-RevId: 62930faef52b3b5039e7f20720de5970a22d943e
2024-09-12 14:15:42 +00:00