Commit Graph
437011 Commits
Author SHA1 Message Date
Bas Leijdekkers e3ccfd0e4a [java] Report even more unnecessary substring() calls (IDEA-345335)
GitOrigin-RevId: 37b86167b5d2b1cac74365eaadbf3a5ddf792f69
2024-03-18 00:08:54 +00:00
Bas Leijdekkers 43bfdf8cf8 [Groovy] cleanup GroovyVariableCanBeFinalTest after conversion to Java (IDEA-327339)
GitOrigin-RevId: 1f101b90a620f03b4a0aaa606fcaee26a803831c
2024-03-18 00:08:51 +00:00
Bas Leijdekkers 10a096dfae Rename .groovy to .java
IDEA-331682

GitOrigin-RevId: 73c0ab61116c0230b0d386caba809c1b6c429174
2024-03-18 00:08:48 +00:00
Bas Leijdekkers 842f3972ac [Java] remove "'StringBuilder.toString()' in concatenation" inspection (IDEA-349211)
GitOrigin-RevId: 067a8544b08d392bb8f758fd53acd974355c298e
2024-03-18 00:08:43 +00:00
Bas Leijdekkers aca900dbfd [java] Report more unnecessary substring() calls (IDEA-345335)
GitOrigin-RevId: 2620edfb2707c8bc5bdf62a6cbfd7911ed4bf386
2024-03-18 00:08:39 +00:00
Bas Leijdekkers 9c12176ddb [java] Report more unnecessary toString() calls (IDEA-345335)
GitOrigin-RevId: 667d0e7c45e94e02744b63c961c2538fc6a1a1c8
2024-03-18 00:08:35 +00:00
Julia Beliaeva f73818ff1b [file-history] add "Show in Git Log" action to the file history toolbar
GitOrigin-RevId: 918b6671aa6eaa1b00717eba82c0e213b1145f57
2024-03-17 23:44:36 +00:00
Julia Beliaeva f0113d41a6 [vcs-log] add an icon to "Show in Git Log" action
GitOrigin-RevId: c5d3081f7e4a8028a7ede30948d0baf6aac82ba1
2024-03-17 23:44:33 +00:00
Julia Beliaeva f4ffae1199 [vcs-log] move "Show in Git Log" action to the vcs.log.impl module
GitOrigin-RevId: c09d78a8f5ceed3f42c29183c5bdd6276808ab4c
2024-03-17 23:44:29 +00:00
Konstantin Nisht 518ad43458 [platform] FL-25315: Do not save anything eagerly in awaitConfiguration
GitOrigin-RevId: f8575451317f052d87e63cf134085a28a5e33932
2024-03-17 21:20:12 +00:00
Yuriy Artamonov 8e9ccf6091 [devkit] Implement Go to implementation for @Remote methods and find usages in tests for production methods
GitOrigin-RevId: a3b28d0f93b8aa807f8b2b3f459ab56d69e49203
2024-03-17 17:25:54 +00:00
Dmitry Avdeev dcd7792c72 PY-61665 i18n:Preference/Settings: Editor: Live Template: Python and flask template descriptions are hardcoded
setting live.template prefix

GitOrigin-RevId: a80b46521dbceef018f0c56e3c6ed61f4f826469
2024-03-17 16:57:48 +00:00
Dmitry Avdeev dd44ae22f2 IDEA-349217 Add i18n inspection/quick fix to live template setting files
customize prefix: live.templates

GitOrigin-RevId: b94c79fecad55770cfea261435d58647890438f5
2024-03-17 16:57:39 +00:00
Sergey Simonchik e7d590a7e0 [unit perf tests] sanitize full test name to publish artifacts correctly (IDEA-346347)
GitOrigin-RevId: 3af827d96818ef8b58cb51cb14155340e41f6897
2024-03-17 16:05:08 +01:00
Andrew Kozlov 60fdc95ca1 [kotlin] KTIJ-29133 explicit platform entity used
GitOrigin-RevId: 4c8e6090fd0e3e8ccab292258ac93ddc8561add0
2024-03-17 12:03:44 +00:00
Andrew Kozlov 0d2955e41a [kotlin] KTIJ-29133 common interface used
GitOrigin-RevId: cdb4fba131a30819468fc347ccfad6d27e1e7770
2024-03-17 12:03:41 +00:00
Andrew Kozlov 1a19a9f717 [kotlin] KTIJ-29133 KotlinApplicableTool::apply moved to the corresponding quick fixes
GitOrigin-RevId: 8a08eaf4b026818cc4ebed15a1f573449da311fe
2024-03-17 12:03:38 +00:00
Andrew Kozlov 0141610b39 [kotlin] KTIJ-29133 only kotlin visitors are acceptable
GitOrigin-RevId: dd0f52a5f7c3f66ffe72d9c9e34c78a920de300a
2024-03-17 12:03:34 +00:00
Andrew Kozlov c4623831b3 [kotlin] KTIJ-29133 class extracted and renamed
GitOrigin-RevId: 704a11583a3bd093500eae830a85a12aa522b4f1
2024-03-17 12:03:31 +00:00
Andrew Kozlov aca8abacb4 [kotlin] KTIJ-29133 deprecated base classes removed
GitOrigin-RevId: 8c4327809fb89b4512152a194852bacae4f40b80
2024-03-17 12:03:27 +00:00
Sergey Simonchik 8f303a5d28 terminal: support TerminalWidget.sendCommandToExecute for not-yet-started sessions (IDEA-347591)
Now, command block creation is postponed until previous command is finished.

GitOrigin-RevId: 1fe0435338e34d5ea073a3c3882418d54ea0e8a0
2024-03-17 11:30:10 +00:00
Sergey Simonchik 1a5018dacb terminal: refactor: extract keyboard/mouse handlers along with output scraping and caret painter to RunningCommandInteractivity
To have a single `runningCommandInteraction` field instead of several fields which should have been updated synchronously.
A bit unrelated: also, forbid more than one `installRunningCommandInteractivity`.

GitOrigin-RevId: e7b825b6310fa78fb15d208b2e95b61c15628325
2024-03-17 11:30:06 +00:00
Sergey Simonchik 3ed381eb20 terminal: use invokeLater(expired=...) for correctness and code simplification
GitOrigin-RevId: b415fff33b404e70f999ad164ac206b759dc2451
2024-03-17 11:30:03 +00:00
Sergey Simonchik 3101d98801 terminal: simplify TerminalOutputController.finishCommandBlock by merging two invokeLater
* Previously, `finishCommandBlock` correctness was based on ordered invocation of `invokeLater`.
* The same block is used for output updating and block finishing: no need in "No active block" assertion anymore.

GitOrigin-RevId: a4dfec476ebada57ca443147d8749ba4ef7609b8
2024-03-17 11:30:00 +00:00
Sergey Simonchik 7b9ea532fb terminal: update command output for running commands only (EA-1120789)
GitOrigin-RevId: abd6f05221f9289c233e54ad48c47768e4bb4e73
2024-03-17 11:29:56 +00:00
Sergey Simonchik 01804853e3 terminal: install/dispose running command listeners on EDT to avoid races (EA-1102762)
* Fixed race from EA-1102762
* Fixed another race: EDT bound `TerminalCaretModel.updateAlarm` uses `mouseAndContentListenersDisposable` which was disposed on BGT. This led to the following exception (found in tests):

```
java.lang.Throwable: Assertion failed: Already disposed
    at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:469)
    at com.intellij.util.Alarm.checkDisposed(Alarm.java:67)
    at com.intellij.util.Alarm._addRequest(Alarm.java:212)
    at com.intellij.util.Alarm.addRequest(Alarm.java:176)
    at org.jetbrains.plugins.terminal.exp.TerminalCaretModel.scheduleUpdate(TerminalCaretModel.kt:60)
    at org.jetbrains.plugins.terminal.exp.TerminalCaretModel.onCommandRunningChanged(TerminalCaretModel.kt:55)
    at org.jetbrains.plugins.terminal.exp.TerminalModel.setCommandRunning(TerminalModel.kt:34)
    at org.jetbrains.plugins.terminal.exp.BlockTerminalController.startCommandBlock(BlockTerminalController.kt:82)
```

* Fixed access to`caretPainter` (previously, it was accessed from multiple threads without synchronization).

GitOrigin-RevId: d97e0d3000681480067dbafd733badd479e581ef
2024-03-17 11:29:53 +00:00
Sergey Simonchik 9290a27039 terminal: finalize blocks on command finish
This makes it possible to listen for block finish events.

GitOrigin-RevId: 2ee3d1a4ad1fd7e510178d632315aeb601b7b28c
2024-03-17 11:29:50 +00:00
Sergey Simonchik d815df69ea terminal: run scheduled commands after initialized event
GitOrigin-RevId: cd70da4aa040714d51ee3e5aca867e62de171307
2024-03-17 11:29:46 +00:00
Sergey Simonchik d62dd07a29 terminal: refactor default background/foreground to use JBColor.lazy instead of direct color updating on colors scheme changes
Now, it's as simple as `component.background = TerminalUi.defaultBackground()` to use terminal default background color as component background and update it properly on colors scheme changes.

GitOrigin-RevId: c507f417a7042d22a17afc0a01a80ff67b997787
2024-03-16 23:05:48 +01:00
Yuriy Artamonov e3561dcaf6 [java] IJPL-830 Move Java plugin to Languages category
GitOrigin-RevId: be93145a6afb2bac338214b3e7ab5f872cd1d375
2024-03-16 17:48:54 +00:00
Vladimir Krivosheev 1c5a987807 open editor as soon as workspace index is ready to use
GitOrigin-RevId: 29461d3dd47b1efa345876a12b1988c2f8d92e41
2024-03-16 17:37:01 +00:00
Vladimir Krivosheev b38b51120d ProjectRunConfigurationInitializer should not be after remote dev for perf reasons
GitOrigin-RevId: 6c97401c13afa15710c7f4633db5354ada7139a9
2024-03-16 17:22:45 +00:00
Vladimir Krivosheev 7b1f60e01b log as warning that preloading is forbidden
GitOrigin-RevId: 847c0ecac5e86b270c15d107269d51afa73eacbc
2024-03-16 17:22:35 +00:00
Vladimir Krivosheev 5687c26e30 remove unused internal getDeprecatedModuleLevelMessageBus
GitOrigin-RevId: 007bda17441f46fda020b8531fd5b9dfb6a8733f
2024-03-16 17:22:30 +00:00
Vladimir Krivosheev 17a3a209bc Refactor and simplify ProjectLoaded.kt in performanceTesting
Removed unused imports and replaced java.io.File with java.nio.file.Path in ProjectLoaded.kt improving the code readability and performance. In addition, several expressions have been simplified for better clarity and efficiency.

GitOrigin-RevId: 02fa5334462159a81b9ee3deca99d2c28dca445b
2024-03-16 17:22:25 +00:00
Vladimir Krivosheev 9002cf5f3c Refactor method call in TextMateServiceImpl
The changes involve the method 'disableBuiltinBundles' inside 'TextMateServiceImpl'. The direct call to the method 'reloadEnabledBundles()' replaces the previous, unnecessary use of 'TextMateService.getInstance().reloadEnabledBundles()'. This refactoring yields cleaner, more readable code.

GitOrigin-RevId: ed670cf20a3537260cefc5d7c392dd451dd3bf8e
2024-03-16 17:22:20 +00:00
Vladimir Krivosheev 89b5fc43ec TextMate - do not use blockingDispatcher, it should not be used here
GitOrigin-RevId: 2cf2905e8279ea478c81f6abd59aca850b37eb0a
2024-03-16 17:22:14 +00:00
Vladimir Krivosheev 966268d9fe cleanup
GitOrigin-RevId: 74d9075d32776e89be45daee7e4fa45a13e74f3d
2024-03-16 17:22:09 +00:00
Vladimir Krivosheev 39d62377c7 VSCBundleReader - don't expose internal impl, use JvmField
GitOrigin-RevId: 58e8c92bb4841d4ea794630a3a555b4319ab653a
2024-03-16 17:21:59 +00:00
Vladimir Krivosheev 47f198ad62 cleanup
GitOrigin-RevId: add357c97adbf9e5b185f3d5a0535335538870fb
2024-03-16 17:21:54 +00:00
Alexey Belkov bd3a0b4684 [kotlin] J2K tests: load dependency files only if needed
Most tests don't need them.

GitOrigin-RevId: 0060a4d1be0b2beb5cdb08d7ec477625edd2455a
2024-03-16 19:13:43 +04:00
Alexey Belkov 3a64261060 [kotlin] J2K tests: Remove redundant "//class" comments from testdata
"class" is the same as "file" now

GitOrigin-RevId: 78ee93ca8551e68b1f59a2bd15506e67a5eeec49
2024-03-16 19:13:41 +04:00
Gregory.Shrago cdd1afdd34 drop CustomComponentAction condition from ActionButton.isPopupMenuAction
Does not make sense in presence of isPopupGroup() and isPerformGroup() checks.

GitOrigin-RevId: 9860db0abb8c38d501a8e0778cab359046756654
2024-03-16 14:53:41 +00:00
Gregory.Shrago b562ae1717 fix threading and reuse ActionGroupWrapper in EmptyWhenDuplicate
Fixes "Non-cached operation assertion" in RemDev.

GitOrigin-RevId: 8a9421c02c7fe2447dbf20fc4ac4f4a0d6c2f807
2024-03-16 14:53:36 +00:00
Tagir Valeev 21617c8137 [java-refactoring] Rename conflicting local class
IDEA-332489 Inlining refactoring operation leads to naming conflicts

GitOrigin-RevId: 4e239def02419e7a0a30097d3b3ec8cdb69911fd
2024-03-16 12:47:10 +00:00
Tagir Valeev 4228eb556f [java-refactoring] Cosmetic; use JavaFeatures
GitOrigin-RevId: 4a60e9012e90a77a7fd0c0c3bf73619e3f5c2c49
2024-03-16 12:47:07 +00:00
Tagir Valeev 10310458ce [java] JavaCodeStyleManagerImpl: use uniqName
GitOrigin-RevId: 2421439a99da70d887810de098a000fd71b65692
2024-03-16 12:47:03 +00:00
Tagir Valeev 832b80f75b [util] NameUtilCore.uniqName
GitOrigin-RevId: 9ff6d21d5e1efc735239d79a80c8993f476d7a5d
2024-03-16 12:19:24 +00:00
Tagir Valeev eadfa417ab [java] TextBlockJoinLinesHandler: fix end offset when converting to a regular literal (IDEA-349062)
GitOrigin-RevId: 752ffd98eefb9d7634a0bd3f78f9a47cb51ba945
2024-03-16 12:19:19 +00:00
Tagir Valeev b3efd6516e [java-inspection] IDEA-347245 Do not report 'Redundant local variable' when inlining would require a cast
GitOrigin-RevId: 3735bc589a2998c7117d9c9bee62831945869ede
2024-03-16 12:19:14 +00:00