Commit Graph

451631 Commits

Author SHA1 Message Date
Max Medvedev
6ef95206ea IJPL-574 allow to register inspections as dumbAware without explicit dumbAware tag
GitOrigin-RevId: 3258a8c890dd5682f55eec44e52ec8d2e1a6cfde
2024-08-13 19:04:01 +00:00
Ilya.Kazakevich
d32dcd749b PY-75100, PY-74236: Use default modality state.
We can't use nonModal here as we are in a modal dialog already, but any isn't good either because we need to access a workspace

GitOrigin-RevId: 1c673631f3fb774a2b4c73775614357617b32103
2024-08-13 18:58:01 +00:00
Alexander Lobas
c25b7e71e9 IJPL-157848 Disable plugin which language is currently selected, restart should be requested on 'Apply'
GitOrigin-RevId: 4d0da984bbab30f34790fa9e8c00499f52409224
2024-08-13 18:52:20 +00:00
Ivan Migalev
6facffaa05 (IJPL-160170) What's New: do not parse version numbers as ints
#IJPL-160170 Fixed

GitOrigin-RevId: e113dec9b27baf533a5c4fb2ab9ec2a93638f469
2024-08-13 18:00:43 +00:00
Berkay Özerbay
7062b73971 Fix PHPRenameVisitor and Being Able to Run Rename for PHP in Eval Plugin [LME-29]
Refactor addToken method

Refactor the addToken method to remove the originalElement parameter and streamline its usage across the visit methods. This change simplifies the method signature and ensures consistency in handling variable, field, and parameter elements.

Remove PHP module dependency.

Eliminated the `intellij.php.impl` module from the plugin's configuration and removed unused `PhpLangUtil` imports. This reduces unnecessary dependencies and simplifies the project.

Update offsets in PHP test fragments and actions

Adjusted the offset values for `name`, `color`, and `user` tokens in both `test.php_fragment` and `test2.php_fragment` files. This change ensures proper alignment with the code structure and correct token type identification.

Refactor reference check logic

Simplify conditional statement by renaming and inverting the reference check function. This improves readability and reduces the cognitive load for future code maintenance.

Simplify reference check logic in CommonActionsInvoker.kt

Refactored the code to remove type casting and streamline the reference check by introducing the `isNotThisReference` function. This improves code readability and maintainability.

Refactor token addition to include custom start offsets.

Modified the `addToken` method to accept an optional `startOffset` parameter and updated relevant calls to pass the correct offset, ensuring accurate token positioning in the PHP rename visitor logic.

Refactor logging setup in PhpRenameVisitor

Replaced direct Logger instance usage with logger<PhpRenameVisitor>() inside a companion object for consistency and cleaner code structure. This improves maintainability and follows standard logging practices.

Switch println to Logger for better logging

Replaced println statements with Logger in PhpRenameVisitor.kt to standardize logging practices. This change enables more robust and configurable logging control.

Update token type for PHP field in rename visitor

Correct the type property assignment for PHP fields from TOKEN to FIELD in the PhpRenameVisitor. This ensures that fields are accurately categorized, improving the rename functionality for PHP elements.

Add run configuration for PHP name suggestion evaluation (dev build)

fix typo

Enhance PHP rename visitor handling

Add detailed processing for different PHP elements like classes, methods, fields, functions, and parameters. Introduce utility methods for better variable and parameter handling within the rename visitor.

Optimize reference renaming in CommonActionsInvoker

Removed unnecessary logging from moveCaret and added conditional check to exclude PHP "this" references during renaming. This ensures more precise refactor operations and improves performance slightly.

update test files for PHP Rename

Split PhpRenameActionsProcessorTest into two classes

Separated tests into PhpRenameActionsProcessorTest1 and PhpRenameActionsProcessorTest2, each handling a different input file set. This change improves clarity and organization of the test files.

Remove obsolete run configuration for PHP Name Suggestion

Deleted the outdated run configuration file for the PHP Name Suggestion evaluation. This helps clean up unused configurations and streamline the project setup.

Add new PHP test cases for evaluation plugin

Introduced a new PHP file `test2.php` containing a trait `HasAuthor` with methods related to authorship functionality. Accompanied by necessary action and fragment files to support the new test cases in the evaluation plugin tests.


Merge-request: IJ-MR-142199
Merged-by: Berkay Özerbay <berkay.ozerbay@jetbrains.com>

GitOrigin-RevId: b85c18bd2d00cbb29ee6e11b2a4a2906eee69658
2024-08-13 17:48:00 +00:00
Andrew Kozlov
0c7168093e [kotlin] KTIJ-27084 fixed
GitOrigin-RevId: bafbf02e465511c489388883970e365223dafd3b
2024-08-13 17:30:27 +00:00
Andrew Kozlov
4c6f8dbe4c [kotlin] KTIJ-27048 parameters extracted
GitOrigin-RevId: f8967137cd8bd9f9ff0ec5f12921f42c35afbd43
2024-08-13 17:30:27 +00:00
Andrei.Kuznetsov
f41a75abd3 EA-1264929: don't put dumb mode start trace to INRE cause in prod (only do it in tests)
There is no much help from start trace in production, but this confuses EA a lot. Originally "start trace as cause" was introduced to help debugging tests. Let this feature remain active in tests only.

GitOrigin-RevId: d12dde30920e185cd33a050478d26de516b82cf6
2024-08-13 17:27:17 +00:00
Lev Serebryakov
aa63752dd4 IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Make flag "false" by default, turn WIL for coroutines off.

GitOrigin-RevId: c384aa0dba975bd42de0d8b44a9546809a4127cc
2024-08-13 17:24:47 +00:00
Lev Serebryakov
6d6e2724f7 IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in Terminal community plugin.

GitOrigin-RevId: a342a67e2798ec60ba3e597e2dadb491e88bba07
2024-08-13 17:24:47 +00:00
Lev Serebryakov
22b79b4cc4 IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in Performance testing community plugin.

GitOrigin-RevId: caa5abbc927ed464a3728b26111b5c99294bda9f
2024-08-13 17:24:47 +00:00
Lev Serebryakov
4ac8160910 IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in Markdown community plugin.

GitOrigin-RevId: abe7251283c8b6e144cc2f66a315b063925e9712
2024-08-13 17:24:47 +00:00
Lev Serebryakov
21d6bc8e8a IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in Maven community plugin.

GitOrigin-RevId: d6373fe57de2f50600a0b380edf5d975225c2350
2024-08-13 17:24:47 +00:00
Lev Serebryakov
8ab3531904 IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in Kotlin community plugin.

GitOrigin-RevId: 41250f61892e595e8d663fc01b6675cdca42d10b
2024-08-13 17:24:47 +00:00
Lev Serebryakov
5f90cbabfe IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in Gradle community plugin.

GitOrigin-RevId: 48878f33ae568b014706d27c18a951ff7701cd61
2024-08-13 17:24:47 +00:00
Lev Serebryakov
d20363143b IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in Coverage community plugin.

GitOrigin-RevId: b2a906d2be3a6c4cd5d05118db7182f48b5c9107
2024-08-13 17:24:47 +00:00
Lev Serebryakov
904d7afa08 IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in Python.

GitOrigin-RevId: 77d2ac62396eeab54d4a10830e930ea4f83566f8
2024-08-13 17:24:47 +00:00
Lev Serebryakov
d2df6d77ca IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in Whats New.

GitOrigin-RevId: 9c70a228cdf3d61d7465b8a552aa74ab1c0419db
2024-08-13 17:24:47 +00:00
Lev Serebryakov
550bce8bb2 IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in Execution manager.

GitOrigin-RevId: cc395e2e621ffe73d2c36bd91b8c5f84368b45cd
2024-08-13 17:24:47 +00:00
Lev Serebryakov
df7dbf79f4 IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in Java support.

GitOrigin-RevId: ee00abe855c80245102334b3f32ea49415b885ea
2024-08-13 17:24:47 +00:00
Lev Serebryakov
7b7a1769e0 IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in notebooks.

GitOrigin-RevId: fcfeaec82a755780c3911edba7af337cad3aadf4
2024-08-13 17:24:47 +00:00
Lev Serebryakov
6a55365287 IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in external systems.

GitOrigin-RevId: 63807dc46753df07ef1c3f2d034a9260d7389018
2024-08-13 17:24:47 +00:00
Lev Serebryakov
0157adac01 IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in lang impl.

GitOrigin-RevId: 136c5d788e351409ed317f3081b356ff10e4ddee
2024-08-13 17:24:47 +00:00
Lev Serebryakov
290402323f IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in usage view.

GitOrigin-RevId: 66aa9988fb33b69574d973cff2c8fd1edab44098
2024-08-13 17:24:47 +00:00
Lev Serebryakov
63637a3137 IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in VCS and diff.

GitOrigin-RevId: 70bdb6eb840c478ac115bcde380ee230c83077ed
2024-08-13 17:24:47 +00:00
Lev Serebryakov
bbed1a0796 IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in xdebugger.

GitOrigin-RevId: d7bf8a0cfc06b1c1717105522b0514cc9fbbaa0e
2024-08-13 17:24:47 +00:00
Lev Serebryakov
a3a84b0b03 IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in codeInsight.

GitOrigin-RevId: b1f6aacd3ddcf9e1bf8014b0a1f7532979b8329d
2024-08-13 17:24:46 +00:00
Lev Serebryakov
64913b449a IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in platform tests.

GitOrigin-RevId: 95ca5f83e9768b1e304be99c7f71ab351e09f286
2024-08-13 17:24:46 +00:00
Lev Serebryakov
3d531df5bb IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in config store.

GitOrigin-RevId: 5834d98abf946c8ec1c7c44bd0dafc23424b61ea
2024-08-13 17:24:46 +00:00
Lev Serebryakov
40f5b1e67f IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
Add explicit locks in community platform.

GitOrigin-RevId: 5c1d30f61a3222b284a730c912c8ed32cc609935
2024-08-13 17:24:46 +00:00
Lev Serebryakov
f8542025fa IJPL-149317 Disable Write Intent Lock for runnables executed on EDT
1. Add a flag to disable write intent lock for coroutines and misc actions. Disable by default.
2. Use this flag.
3. Add an explicit wrapper for write intent lock.

GitOrigin-RevId: 7e8ca603b4e4d7d9d10bce3baeaacf0fa37fad62
2024-08-13 17:24:46 +00:00
Alexey Kudravtsev
4852703ee9 avoid storing PSI elements in the intention action (part of KTIJ-28671 K2: CreateClassFromUsageFix)
GitOrigin-RevId: 5071a9fdafe65381ea61452afdc0ca1358fcb95e
2024-08-13 17:07:01 +00:00
Aleksandr Sorotskii
52153dceef cleanup unnecessary extention method. rename dialogs.kt
(cherry picked from commit 02f72609d3d820987f504e91c945b792cf5f1e81)

IJ-MR-142479

GitOrigin-RevId: 91ced76c4fa9022f752284fe130289e9f98a0ac8
2024-08-13 17:02:29 +00:00
Denis Zaichenko
bcc021e666 IJPL-158595 Disable RCIIS when there are some unresolved references on one of the sedis of the conflict.
IJ-MR-142128

GitOrigin-RevId: f01122c2c90f4db6c23f5f8c6e81f6e9aee2b29b
2024-08-13 17:00:27 +00:00
Lev Zagnetin
54fba9e12a [driver][ui-tests] AT-1101: Add test for View Modes on Mac
GitOrigin-RevId: f1b4c85ff3a8b2bde9f00837fc5040b96ea6e92c
2024-08-13 16:55:31 +00:00
Patronus
0537aa3f0d Merge refs/patronus/safepush/9e4cabe58133490d99e649748833a5e5 into master
GitOrigin-RevId: fe7fc6d9683712bd69b99fd26a0491b96c9c154d
2024-08-13 16:42:46 +00:00
Aleksandr.Govenko
fee28fef93 KTIJ-30925 [ssr] Change API dump
GitOrigin-RevId: d0b2db42a89710257bd79dd22f6ad4e1c5ce20c6
2024-08-13 16:24:08 +00:00
Aleksandr.Govenko
1ea6bb957b KTIJ-30925 [ssr] Add typed parameter replacement handling for SSR in Kotlin
Analogously to Java SSR override `handleSubstitution` method to form correct replacement of typed parameters. Added regression test.

GitOrigin-RevId: 8401f6f82d14d886c0fd60e20c0ce989387f24ab
2024-08-13 16:24:08 +00:00
Aleksandr.Govenko
86e037e396 KTIJ-30925 [ssr] Refactor typed variable handling in ReplacementBuilder
Moved typed variable utility methods from MatchUtil and Replacer to StructuralSearchProfile

GitOrigin-RevId: 0a80d063ea663bb708de118a6db0b6268b3b6147
2024-08-13 16:24:08 +00:00
Alexey Kudravtsev
167e5654a6 fix PsiInvalidElementAccessException: NULL_PSI_ELEMENT ;NULL_PSI_ELEMENT
GitOrigin-RevId: 783166f4ede7129a906a2e56c8c3aa5b74025c93
2024-08-13 16:23:10 +00:00
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