Commit Graph

451585 Commits

Author SHA1 Message Date
Alexey Utkin
e147499bcc fix an exception in save-on-close
GitOrigin-RevId: 4ac8ea80385e87bae35b1956aecda02ee3c8b5cc
2024-08-13 16:19:49 +00:00
Artem.Grigorash
fa5b4f7f49 [ui-tests][clion] CPP-39615 Implemented all four debug test, fixed review comments
GitOrigin-RevId: c5eda04590bbd393c23e7966f2c40bc5aed41a3d
2024-08-13 16:14:50 +00:00
Artem.Grigorash
142176a889 [ui-tests][clion] CPP-39615 First part of implementation
Added stop button, implemented the first steps of DebugTest

GitOrigin-RevId: 36b4138f706d9c8a5a8b93c193586dbd8858ed96
2024-08-13 16:14:50 +00:00
vladislav.shishov
dbe64585e1 [remote-driver] add BuiltInHttpClientPermanentRedirectUiTest
GitOrigin-RevId: 4e2b5166ddb83eb8424298abdfb45d076f529e8b
2024-08-13 16:07:22 +00:00
Bart van Helvert
d1501865f0 [kotlin] Change asserts to assertEquals
For better error messages on failing tests

GitOrigin-RevId: 324a2a08d593c7caf1797b244f53a667a0c90a41
2024-08-13 15:51:25 +00:00
Bart van Helvert
f8746ce324 [kotlin] Correctly show package in move file dialog for non-file elements
#KTIJ-30970 Fixed

GitOrigin-RevId: 759ad508fadf2619c20170643b32b25d663529dc
2024-08-13 15:51:25 +00:00
Alexey Kudravtsev
b7e62ca44a fix incorrect assertions, cleanup
GitOrigin-RevId: a24d7f7b859c58c4932519d69d6ec04e294aa630
2024-08-13 15:05:29 +00:00
Alexey Kudravtsev
1a6a0ee627 cleanup
GitOrigin-RevId: 740ad47daa4cc012c9c79960f8726a5aa8db2b07
2024-08-13 15:05:28 +00:00
Alexey Kudravtsev
669c8df167 highlighting: more logging in case of heavy processing running
GitOrigin-RevId: b688ff690eb905572bc5ae71958f220633061ea3
2024-08-13 15:05:28 +00:00
Natalia.Murycheva
b2b55f74cd [PyCharm Tables] PY-65513 added float formatting for polars tables
GitOrigin-RevId: 9c868a5cf796b66860c2963d3a2e7036e4b65a59
2024-08-13 14:32:08 +00:00
Natalia.Murycheva
fcec56d275 [PyCharm Tables] PY-65513 fixed NPE for format
GitOrigin-RevId: dc1f96177d8c230bb90474bbe818a9d75a3558fc
2024-08-13 14:32:03 +00:00
Sergei Tachenov
5f90b664f8 IJPL-160144 Fix FileEditorManagerImpl.getLastFocusedSplitters
There's an old issue with the editor getting focused immediately
after the IDE window becomes active. But if the window became
active because of a click on some other focusable component,
that component almost immediately gets focus, and the editor
loses it. Unfortunately, this short focus gain is enough to overwrite
EditorsSplitters.getLastFocusGainedTime, which in turn makes
FileEditorManagerImpl.getLastFocusedSplitters and alike return
the wrong editor as the last focused one. From the user perspective
this short focus gain is the same as no focus gain at all.

The existing workaround with invokeLater didn't work
because by the time the window is activated, the rest of the focus
events often aren't even queued yet. Even the click itself
often doesn't arrive into the event queue by that time.
There's absolutely no way to tell whether the window activation
is caused by a click or, say, Alt+Tab.

The only more or less reliable way to fix it is to undo the focus time
update after it becomes clear that it wasn't a real focus gain.
However, it's tricky as well, as even when the mouse click arrives,
there's no indication whether the window activation was caused by it.
To guess it, we keep track of the last mouse coordinates when
the window was inactive and then compare with the click coordinates.
If they match, it's highly likely that the window was activated by
that click. The only other possibility is that the user alt+tabbed first
and then clicked without even moving the mouse by a single pixel.
It's quite unlikely, and we're willing to accept that in that case
the wrong editor will be considered active until the mouse is moved.

To undo the focus gain, we track focus requests in the editor,
and when focus changes, we check a lot of stuff. If the newly focused
component belongs to the same window, if that window was just
activated with a click, and if that component is not the editor
itself, then we undo the focus gained timestamp update.

And to ensure this undo has already happened by the time
we start selecting the opened file from the Project View,
we wrap that selectOpenedFileUsingLastFocusedEditor() call
into invokeLater. Since it's called on mouse release,
the relevant focus requests should be already in the queue,
and invokeLater guarantees that they'll be processed
by the time the selection starts executing.

GitOrigin-RevId: ab8769186f755089cf70cdcfccc7fa329862bd76
2024-08-13 14:25:30 +00:00
Sergei Tachenov
a1d0b5e905 IJPL-159968 Save and log systemScaleFactor first access stack trace
When we get a "Must be not computed before that call" error,
it's very hard to reason about the cause. It can be computed
almost anywhere, in any code that calls JBUIScale.systemScaleFactor,
often indirectly, by accident.

Save the stack trace the first time systemScaleFactor and later
attach it as the cause to the exception that's logged when
one of the preload() functions is called.

GitOrigin-RevId: 02eadede9353d2c6b862590881a9d8aafe11e541
2024-08-13 14:25:30 +00:00
Ruslan Cheremin
126c33c51c [indexes] IJP-1365: larger cache for Id & TrigramIndex
+ IdIndex & TrigramIndex are the largest indexes -> increase cache size 64x for them

GitOrigin-RevId: 48dbd0915dd07f5a9c20da05bd08bafe5c927102
2024-08-13 14:22:35 +00:00
Ruslan Cheremin
df59e37c6d [indexes] minor improvements in IdIndexEntryMapExternalizer
GitOrigin-RevId: dc222163aaf5ab691eceb6683719439129e837fd
2024-08-13 14:22:35 +00:00
Jinseong Jeon
2b777fc683 K2 UAST: do not store type arg mapping with type param symbol and type
...since they can be stored in one KaSession and used in another.

GitOrigin-RevId: 377c229f6f8c44bf28b1843dd585b90e8d739945
2024-08-13 14:22:02 +00:00
Maksim Zuev
35daf91fd6 [debugger] IDEA-356958 Update tooltip message
GitOrigin-RevId: b655cebc17f024b2c514fcb94b28b433df850339
2024-08-13 14:12:10 +00:00
Maksim Zuev
ef8d65ead0 [debugger] IDEA-356958 Show success status in the hotswap toolbar
GitOrigin-RevId: c3bf564b0fa8acd9020bb2e7f3c0ce7119ee7325
2024-08-13 14:12:10 +00:00
Maksim Zuev
67db71be41 [debugger] IDEA-356958 Refactor: do not store session in the action
GitOrigin-RevId: 7b9dba93f107a89de8f6c0ce5555c63ca99a9142
2024-08-13 14:12:10 +00:00
Maksim Zuev
dfcb0b943c [debugger] IDEA-356958 Add setting to disable the floating toolbar
GitOrigin-RevId: d7e4a360b1a59fc040e8e0c0d51b0dacde6f5d86
2024-08-13 14:12:10 +00:00
Maksim Zuev
8fb561e452 [debugger] IDEA-356958 Add hide button
GitOrigin-RevId: f18f569ecfa049360fe2f5fca51d7ee89f543760
2024-08-13 14:12:10 +00:00
Maksim Zuev
21b177980b [debugger] IDEA-356958 Move action text to properties
GitOrigin-RevId: 9b0badc4b3e4e3f02bca7cdd9aed74095c7e954f
2024-08-13 14:12:10 +00:00
Maksim Zuev
c431e3d489 [debugger] IDEA-356958 Non-transparent button
GitOrigin-RevId: e3e285aa67f15301b81f5dd0873e5865afbfb873
2024-08-13 14:12:10 +00:00
Konstantin Aleev
3356535992 [services] IJPL-160000 fix moving run content from services
GitOrigin-RevId: 851c2c451f0ccc0e1f55b6a26af36057b7f3e930
2024-08-13 14:08:43 +00:00
Konstantin Aleev
3011e36755 [services] IJPL-159884 add expand/collapse actions for type details part
GitOrigin-RevId: 2f575da4d52bdbe592fd2bae899bc77b8c3b1f12
2024-08-13 14:08:43 +00:00
Konstantin Aleev
da534f4d02 [services] IJPL-159959 merge add configuration and add type actions
GitOrigin-RevId: 6b4d33b73791526271a8e0a10b60bbf2e791eaa4
2024-08-13 14:08:43 +00:00
Konstantin Aleev
f23dfed025 [yaml] key completion insert handler: fix removing lookup if the rest is spaces or comments
GitOrigin-RevId: c049f0c5c5cacd87f18e516bb8afedac55f3b27b
2024-08-13 14:08:43 +00:00
Andrei.Kuznetsov
437d0c6f6c IDEA-357489: Add assertion for unexpected modality ANY
ANY is not expected here, because this is not a UI code

GitOrigin-RevId: 6797d43de9682c70055adfab7da4440cd5b7f4bb
2024-08-13 13:59:19 +00:00
Daniil Ovchinnikov
fa7da070e4 IDEA-357405 don't report empty DispatchedRunnable as a leak
GitOrigin-RevId: 83263a6761d302460c909f8b5f68997d42f3ffa0
2024-08-13 13:54:58 +00:00
Jinseong Jeon
db5f01f6a4 KT UAST: expression type for instantiation of local classes
^KTIJ-17870 fixed

GitOrigin-RevId: ce28cb40d292d892d4f30bf5ac701647481d5381
2024-08-13 13:47:33 +00:00
Konstantin Hudyakov
acb00b5460 IJPL-43794 Perform New Users Onboarding experiment only in 2024.2.1
In the other versions it won't be active.

GitOrigin-RevId: 6a285a5503da978fa15a68e612ce449b48c59018
2024-08-13 13:14:50 +00:00
Nikita Barkov
97034d5d2e [perf_tests] Event bus. use coroutines instead of CompletableFeatures. Implemented UnsubscribeAllTest
GitOrigin-RevId: 8e08620e907368501e16c60ff7bb5ed9738b1545
2024-08-13 12:54:43 +00:00
Sviatoslav Vlasov
37562bfadb [rdct][lux] Turn off animated scrolling for remote development mode.
Animated scrolling performs very badly in remdev mode (lux)

GitOrigin-RevId: 822a65e1ce421357382e22150d8b7d815b71a0a5
2024-08-13 12:50:07 +00:00
Daniil Ovchinnikov
bceba0fbef clean up
GitOrigin-RevId: 6187888618ec12f484273524c1eff9983ef38e7e
2024-08-13 11:57:39 +00:00
Daniil Ovchinnikov
589b0c4031 extract intellij.platform.rpc.backend module
GitOrigin-RevId: aec81e745e0eae8e0c8d961321ed73071b676f25
2024-08-13 11:57:39 +00:00
Pavel Porvatov
9712ca06d8 [Kotlin UI DSL] Hidden/Removed deprecated API
GitOrigin-RevId: a42e469ce49ea77552a220f0acba4b93cb2b5b88
2024-08-13 11:48:27 +00:00
Mathias Boulay
3825899d51 feat(IDEA-353092): early markdown jdoc support
GitOrigin-RevId: 8c02012551f1a97d3f5d6aed021889911b138b28
2024-08-13 11:44:06 +00:00
Mikhail Golubev
dc5c78e7f9 PY-73780 [fus] Collect Python version enabled for the compatibility inspection
GitOrigin-RevId: 8882995fa43bce79ec85fd3d8bbf4312b5d05076
2024-08-13 11:42:18 +00:00
Frederik Haselmeier
a4a2ee75a8 [kotlin] Fixed logging in KotlinMavenImporterEx
KTIJ-29261

GitOrigin-RevId: 29df70ea6467c3112e1e211c0d1dd0997f12fdc6
2024-08-13 11:12:41 +00:00
Alexander.Glukhov
27c01bd409 [IDEA-357562] Use Gradle 7.4.2 to run tasks related to building idea build dependencies
GitOrigin-RevId: 582496aa0766689e55fd4c084ffbbce3704bc876
2024-08-13 11:08:25 +00:00
Ruslan Cheremin
bdfacbe5ff [indexes] IJP-1365: utilise optimized externalizer for IdIndex
+ `IdIndexEntryMapExternalizer` knows about Int2IntMap really used by IdIndex indexer under the hood, and persist primitive ints without excessive boxing

GitOrigin-RevId: 00211fac7cc1f21dd34843b066a0e27208cf938f
2024-08-13 10:55:50 +00:00
Ruslan Cheremin
4325094326 [indexes] refactoring: CustomInputMapIndexExtension
+ CustomInputMapIndexExtension is a replacement for CustomInputsIndexFileBasedIndexExtension, to create fully-customized externalizer for Map<Key,Value> -- planned to be used for IdIndex optimization
+ code cleanup and comments along the way

GitOrigin-RevId: f2e3cf5f35aebc61bddcfe2fb749fd72631d75a4
2024-08-13 10:55:50 +00:00
Ruslan Cheremin
01527ec451 [indexes] IJP-1365: utilise ValueLessInputMapExternalizer for ScalarIndexExtension by default
+ defaultMapExternalizerFor(): default factory for input map externalizers, reused by different index storage impls

GitOrigin-RevId: ec3a324630fdb8c200985ebc185d1e305d365fba
2024-08-13 10:55:50 +00:00
Ruslan Cheremin
c7234a3b81 [indexes] IJP-1365: comments and minor code cleanup
+ no functional changes

GitOrigin-RevId: 43366a676a34cdc2eb46cb4ca41f38f1242397cf
2024-08-13 10:55:50 +00:00
Ruslan Cheremin
4518cb1caf [indexes] IJP-1365: utilize specialized serializer for IdIndex inputMap in DurableStorageLayout
GitOrigin-RevId: 22271011313a8c031cc24405301573a30537746c
2024-08-13 10:55:50 +00:00
Ruslan Cheremin
6aa12f958d [indexes] IJP-1365: specialized Map impl for ScalarIndexExtension
GitOrigin-RevId: f024bab3fd7dcc1d6ccbc469145b6c63ee881850
2024-08-13 10:55:50 +00:00
Roman Vasiliev
6885449ebb [evaluation-plugin] LME-40 Implement evaluation for missing function calls using tests as references
- implemented function calls: find_text, find_usages, get_code_at_caret, get_opened_files, get_selected_current_file and read_file
- expand JavaFunctionCallingActionsProcessorTest for all token types


Merge-request: IJ-MR-142324
Merged-by: Roman Vasiliev <Roman.Vasiliev@jetbrains.com>

GitOrigin-RevId: 924376a7a46922058d4242fbf05469cab9f2fb0d
2024-08-13 10:34:43 +00:00
Vladimir Shefer
93d762d303 [terminal] IJPL-157400 Refactoring in ShellCommandEndMarkerListener
GitOrigin-RevId: 56be41bacc0bb3ce46eab6e398c71d44a5943e4f
2024-08-13 10:27:59 +00:00
Vladimir Shefer
7ffdfe2186 [terminal] SimpleTerminalLinesCollector
GitOrigin-RevId: e15d3fcfa14dabe018f4fe057a0d8aae15ce88a3
2024-08-13 10:27:59 +00:00
Vladimir Shefer
466a9b23a4 [terminal] IJPL-157400 Refactor constructors in SCM
GitOrigin-RevId: e2e93a2b76c6d1c4cc58fbd82957ec411104421e
2024-08-13 10:27:59 +00:00