Commit Graph

443417 Commits

Author SHA1 Message Date
Bas Leijdekkers
32ee8e3135 [java] consider enum constants used in batch inspection when valueOf() is called (IDEA-293797)
GitOrigin-RevId: 787c7356063bfbc11bbdc751dba55dd76f142e84
2024-05-29 14:19:54 +00:00
Bas Leijdekkers
362d0555e5 [project] add ssr configuration consistency test
GitOrigin-RevId: 7dbed607205099a5899e5f65357a50ba355d422a
2024-05-29 14:19:54 +00:00
Bas Leijdekkers
43591f7339 SSR: always write configurations in sorted order for simpler inspection profile diffs
GitOrigin-RevId: 3cf584a84039e91792b328c9e999040c4a8b541e
2024-05-29 14:19:54 +00:00
Alexey Belkov
163a963841 [kotlin] J2K: accept K2 test result
The local variable has an explicit Nullable annotation (although redundant).

GitOrigin-RevId: 4d4e46e6ae43a65ffee397bed92b3b92e9b5111b
2024-05-29 14:17:25 +00:00
Alexey Belkov
7fec6910b3 [kotlin] J2K: fix nullability of vararg argument array
Argument array passed as vararg should be not-null
for Kotlin to compile the spread operator without errors.

GitOrigin-RevId: 8aee483563ac8a233e409a1c544b7ccfa388ff2b
2024-05-29 14:17:20 +00:00
Alexey Belkov
2e3ee42d1e [kotlin] J2K: add test with smartcast inside lambda possible only in K2
Smartcasts are better in Kotlin 2.0!

GitOrigin-RevId: a7a7dc72839aee1ba5c7b220c7934304cd19a5c7
2024-05-29 14:17:14 +00:00
Alexey Belkov
5cfa7819fc [kotlin] J2K: extend test
GitOrigin-RevId: 6007743ba6c0ac3b351720924fed0613bb4e0a69
2024-05-29 14:17:09 +00:00
Alexey Kudravtsev
8fb8d83d8c add code guards to avoid items stuck in the job launcher queue
GitOrigin-RevId: 4bdc0b65ae769dac08428d19287df528da0b4d36
2024-05-29 13:55:05 +00:00
Ivan Migalev
2f4580387b (RIDER-112693) Windows Installers: code cleanup after review
GitOrigin-RevId: 70e1698ab90a7f07cbd1b340cca82bfea262cbb0
2024-05-29 13:31:08 +00:00
Alexander Lobas
ea2451ea39 IJPL-155791 Zoom level modifies space between toolbar and merged project tabs
GitOrigin-RevId: 93bee392018318000ef3724901774f1ab37a8306
2024-05-29 13:16:28 +00:00
Leonid Bushuev
6663bd09fa Database Explorer: fix a bug with lost focus in the speed search widget (probably related to DBE-20737)
GitOrigin-RevId: afbc90526cd00dcfbc87de1ad87f673581a63d8e
2024-05-29 13:09:38 +00:00
Andrey Lisin
dbc08a7507 PY-72009 Set global debugger after all its fields initialization
The `set_global_debugger` invocation has been moved to a later point to ensure all debugger fields are initialized first. This addresses potential issues in multithreaded environments where the debugger is accessible, but access to its fields may fail.

GitOrigin-RevId: 55dd63585f8dae94c6527d51dca3c2562b30c4ce
2024-05-29 12:59:41 +00:00
Mikhail Pyltsin
5773e12754 [java-completion] EA-1232387 NPE: CatchLookupElement.lambda$getHardcodedExceptions$0
- skip a null type for a catch section

GitOrigin-RevId: aee2b376d5711e98a5f90926986b0f7343930f4b
2024-05-29 12:55:32 +00:00
Alexander.Danilov
75433bdbca [Kotlin] Report CanBeParameterInspection only on keyword: fix indent. KTIJ-30094
GitOrigin-RevId: 350828efac5de59a7e87200bd4566913d545eb25
2024-05-29 12:53:37 +00:00
Julia Beliaeva
bd8f475552 [git-stash] add an action to toggle split preview in the stash tab
IJPL-155749

GitOrigin-RevId: 4eb71c12a5e69f148cb06dd7ef9067754c091fc5
2024-05-29 12:31:11 +00:00
Julia Beliaeva
0adb4de9f5 [git-stash] always create editor diff preview for the stash tab
IJPL-149342

GitOrigin-RevId: 3bfa135e073f591e80abd38841eda79200dc2767
2024-05-29 12:31:11 +00:00
Sergei Tachenov
7315270c16 IJPL-60987 Fix slow op in ShowUsagesTable
The slow op was caused by copying UsageInfo, which meant
resolving PSI pointers and creating new ones. It doesn't seem
necessary in the current implementation, as UsageInfo objects
are immutable for the most part, and all mutations that do happen
do so before the object is published. Moreover, the copy()
implementation was incorrect: the class has over 400 subclasses,
and none of them overrides copy(), which means the actual type
is lost. It's probably not relevant at this point, but still, it seems wrong.

GitOrigin-RevId: a678bcce74eea1f8bc0ac3dd348a1a92263a2383
2024-05-29 12:06:29 +00:00
Sergei Tachenov
4e21b087f3 IJPL-48479 Fix slow ops in SelectInTargetPsiWrapper
Not a perfect solution, as it's yet another NBRA seemingly for no reason,
but it's the best we can do without changing the API and enforcing
strong EDT/BGT contracts on it.

Existing getSelectorInFile() implementations seem to be safe to
call from a BGT, there's mainly PSI stuff there and also some access
to thread-safe editor models like the caret position.

GitOrigin-RevId: 92bb27afda5989e283bc98d6a577e11666b21579
2024-05-29 12:06:24 +00:00
Sergei Tachenov
8b615f06e7 IJPL-155772 Fix UsageViewImpl.MyPanel update thread
It's pure UI code there, working with the tree and its model.
It should only be performed on the BGT.

GitOrigin-RevId: 5dc36ea12ada5def3912ee33156001a3bde4d95b
2024-05-29 12:06:19 +00:00
roman.ivanitskii
920471e018 [ai-assistant][ui-tests] Fix ai assistance tests
GitOrigin-RevId: fe25e2664ffd8f7e8725ab4366df86e4090b150e
2024-05-29 12:04:04 +00:00
Alexander.Danilov
fbf5ecee78 [Kotlin] ^KTIJ-30094 Fixed Report CanBeParameterInspection only on keyword
GitOrigin-RevId: 6ac058dea9f2c91aa2af86558864efdf953eecbc
2024-05-29 10:10:58 +00:00
Julia Beliaeva
9623948a62 [vcs-log] do not try to execute unsupported graph actions
IJPL-155726

GitOrigin-RevId: 13824abec023d1424dd73601292739dff4bbfeff
2024-05-29 05:28:39 +00:00
Daniil Ovchinnikov
6aaa220f5b IJPL-155637 always install thread context, even if the captured context is empty
`AsyncPromise.onSuccess` captures the context.
If the context is empty, the wrapping into `ContextBiConsumer` was skipped
=> no `installThreadContext` is called
=> the effective context stays unchanged
=> the context of future.complete() call leaks into onSuccess lambda.

In the original issue the leaking context was `async` context, which had just completed:
```
async {
  // <- context from here
}
  .asCompletableFuture()
  .asCancellablePromise()
  .onSuccess {
    // leaked here
  }
```

This started to manifest itself after IJPL-445.

If the context is captured in a lambda, the context of the lambda caller should not be visible inside the lambda.
Capturing an empty context also counts as capturing, so skipping the wrapping was not correct.
The change makes sure that all capture functions install the captured context, even when it's empty.

GitOrigin-RevId: 463a5c4e22578969c5ea70ca8bb155d8cb17c12c
2024-05-29 03:41:22 +00:00
Konstantin Nisht
8db8e5fcb2 [platform] IJPL-445: Enable implicit blocking context by default
(cherry picked from commit 84488dc843ecd0bac432af00f7b45cb386474fc7)

GitOrigin-RevId: 55b6c58b00f5abf3b33595ddf8b9681ab90031f5
2024-05-29 03:41:22 +00:00
Boris Pristupa
43aca198b7 [fleet, ai completion] migrate grazie-platform to 0.3.87, with new context collection API
prepare for update grazie platform to 0.3.86 (migrate to new ai completion context collection api)

fixup! prepare for update grazie platform to 0.85 (migrate to new ai completion context collection api)

fixup! prepare for update grazie platform to 0.85 (migrate to new ai completion context collection api)

fixup! [ai-completion] separate fields `name` and `origin` for ContextItem

[ai-completion] separate fields `name` and `origin` for ContextItem

fixup! prepare for update grazie platform to 0.85 (migrate to new ai completion context collection api)

fixup! prepare for update grazie platform to 0.85 (migrate to new ai completion context collection api)

prepare for update grazie platform to 0.85 (migrate to new ai completion context collection api)


Co-authored-by: Semyon Proshev <Semyon.Proshev@jetbrains.com>

Merge-request: FLEET-MR-4026
Merged-by: Boris Pristupa <boris.pristupa@jetbrains.com>

GitOrigin-RevId: 956bb141729dbd6345e56a755d511d2b1b80d54a
2024-05-29 00:35:24 +00:00
Daniil Ovchinnikov
6226776bd0 IJPL-148997 exclude non-abstract toString() from the API dump
GitOrigin-RevId: 6352bbb374532bca296d08131ae50083f69e46c0
2024-05-29 00:05:31 +00:00
Daniil Ovchinnikov
5e1abca66c clean up
GitOrigin-RevId: b120facdbfb149b39516e4cf8ad765680fddbb7c
2024-05-29 00:05:31 +00:00
Daniil Ovchinnikov
245865f195 IJPL-797 intellij.platform.kernel.backend review internal API
GitOrigin-RevId: d23f263d9736801c3a6ea06908b60b9d5787c7be
2024-05-28 23:55:43 +00:00
Daniil Ovchinnikov
c374c128d3 IJPL-797 intellij.platform.kernel review internal API
GitOrigin-RevId: 14f033d2ad5a0fc5098aa5bbf7b005ec8feb9fab
2024-05-28 23:55:43 +00:00
Arkady.Bazhanov
4d1dbefbc9 [jupyter] outputs: add "select all" action for text outputs
Fixes KTNB-224 Ctrl+A in the output cell does not work

GitOrigin-RevId: 06af802742f68e5f8e6ef50465add42cb15bd215
2024-05-28 23:07:19 +00:00
Julia Beliaeva
89bc3e4450 [vcs-log] remove unused field
follow-up: d41714231e8ed5082c080444073918fb43a3c8f3

GitOrigin-RevId: 348c6aa04e119956963e6d4b79fc7a4f1a092832
2024-05-28 22:50:08 +00:00
Eugene Zhuravlev
6067585d06 support deserialization of unknown Modifier constants when exchanging data between different versions SDK (IDEA-353958)
GitOrigin-RevId: 95c6c34796a2ee7543174e3ec44e3aa8d39c92b7
2024-05-28 22:02:16 +00:00
Sergey Simonchik
105c6c5b9c [performancePlugin] do not traverse files excluded by project model (IJPL-155751)
In some configurations, there can be exponential amount of files when file system is traversed following symlinks. For example, dependencies under `node_modules` can be organized in such way.

GitOrigin-RevId: 8d85b2ae7fc6737040ed4d9e5f53bc0942bd22c4
2024-05-28 20:47:28 +00:00
Vlad Koshkin
f308b4f204 [kotlin] handle virtualFile null when getting script config result
^KTIJ-29673 Fixed

GitOrigin-RevId: 3a214b9778e84ea850b4d0d4ca6ce6f8d152589a
2024-05-28 20:13:44 +00:00
Ivan Pashchenko
c12d641261 RDCT-1395: do not provide default remote dev -Xmx if it's already set [2]
GitOrigin-RevId: 1ac84ecba69dfb54d7bec92e560c7d5760a06d5b
2024-05-28 20:02:22 +00:00
Alexandr Trushev
c0572de46d IJPL-29601 Fix for issue with obsolete parameter inlay hints in case of disabled provider
GitOrigin-RevId: 0f5a2c066a63adf621775503ea0e67c909846711
2024-05-28 19:57:44 +00:00
Alexandr Trushev
f241b5d6e2 editor declarative inlays: improve consistency between inlay cache and settings
before this patch, inlay hints were raised from the cache even though the corresponding provider was disabled

GitOrigin-RevId: 80f01b726a2c0747870f95b7754af269cf511dff
2024-05-28 19:57:44 +00:00
Alexandr Trushev
3f5cbcaffe editor declarative inlay hints: avoid getting psiFile to apply inlay data
psiFile seems redundant for applying purposes. The only reason for getting it was providing psi mod stamp. But it is possible to calculate the stamp via a project. So we can avoid parsing psiFile under the read action

GitOrigin-RevId: 2213c276cbbdbe03c9dd59039ec571e90228162d
2024-05-28 19:57:44 +00:00
Alexandr Trushev
3964099cb2 editor declarative inlay hints: refactor inlay grave
GitOrigin-RevId: d9db11d9013884d227d4bb4eaa3991a3a91e7ef7
2024-05-28 19:57:44 +00:00
Alexandr Trushev
30d6ae3b70 editor declarative inlay hints: add storing empty inlay data to prevent showing disabled inlays
GitOrigin-RevId: 658dd7019068513ee5fab95afa108d6002dc85ea
2024-05-28 19:57:44 +00:00
Pavel Porvatov
cf03090d03 LLM-3059 Implement Welcome Guide
- Colorized states of disclosure button

GitOrigin-RevId: 986b5a74ba2af8a76b9feb033f10506e4e506fdb
2024-05-28 19:26:59 +00:00
Andrey.Matveev
fee7970bbf PY-72901 Use addCellHighlighter also in EditorCellView
GitOrigin-RevId: deab0dcae3a5d1acca936e015b222984435a7cb0
2024-05-28 19:09:53 +00:00
Andrey.Matveev
5898b2b162 PY-72901 Rewrite with fabric addCellHighlighter
GitOrigin-RevId: 913ec627e1472af37d8fdbe2721f5746ff895fd1
2024-05-28 19:09:53 +00:00
Andrey.Matveev
ad496c7993 PY-72901 Remember and dispose highlighters all highlighters created for cell
GitOrigin-RevId: 2c074fea825394e80b83f3ec98c4d7366ae1921d
2024-05-28 19:09:53 +00:00
Vladimir Lagunov
c60f9353cb IJPL-149878 IJent WSL: introduce TracingFileSystemProvider for controlling performance of WSL access on fs
TracingFileSystemProvider wraps both the original WindowsFileSystemProvider and IjentNioFileSystemProvider. It allows controlling sudden performance degradations in benchmark tests.

Only WSL drives are supposed to be wrapped into TracingFileSystemProvider. Regular windows drives aren't wrapped.

GitOrigin-RevId: 988278e0e88a7d6c9e01422a0dd0713e883cb275
2024-05-28 18:42:15 +00:00
Vladimir Lagunov
96ec422625 IJPL-149878 IJent WSL: introduce ability to use IJent for accessing files on WSL
The feature is disabled by default. It is controlled by a registry flag `wsl.use.remote.agent.for.nio.filesystem`.

The new filesystem requires also setting specific system properties for the IDE.

GitOrigin-RevId: 6438e175b7272428b53f6bfba9988ccbc43f8287
2024-05-28 18:42:15 +00:00
Vladimir Lagunov
d549b2b5ff IJPL-149878 IJent WSL: fix handling of relative paths in MultiRoutingFileSystemProvider
Before this commit, if a relative path had passed to the filesystem, it would have thrown NPE, because `getRoot() == null`

GitOrigin-RevId: b5596addcb647337e57b64df047c00fc019ba213
2024-05-28 18:42:15 +00:00
Vladimir Lagunov
cfc211d75f IJPL-149878 IJent WSL: CorePosixFilteringFileSystemProvider implements RoutingAwareFileSystemProvider
GitOrigin-RevId: 61905a263febf5667c2d4b3ce0c53b168a6dea66
2024-05-28 18:42:15 +00:00
Vladimir Lagunov
8ad01fdec0 IJPL-149878 cleanup: Extend javadoc of MultiRoutingFileSystemProvider
GitOrigin-RevId: ba016d0e71ade950810196c5ce869dfb41761ffd
2024-05-28 18:42:15 +00:00
Vladimir Lagunov
319128c04e IJPL-149878 IJent WSL: introduce WslIjentAvailabilityService.useIjentForWslNioFileSystem
GitOrigin-RevId: f05ad9772b52f27a9243f7dcb6ef6946a4f4549d
2024-05-28 18:42:15 +00:00