Commit Graph

448658 Commits

Author SHA1 Message Date
Ilia.Shulgin
87cd8505ee [git] Report push target type
GitOrigin-RevId: c4905d44d6e8af7de2b45ef9811fd7fb9a47e91a
2024-07-11 15:32:06 +00:00
Ilia.Shulgin
96731ffa36 [git] Prefer exact match in GitPushSpecParser::getTargetRef
Previously, a first match was used no matter whether there was a better one.

GitOrigin-RevId: c79ebee0e6e9e958c8a709420feb716b8a112f9f
2024-07-11 15:32:06 +00:00
Ilia.Shulgin
1a41ef53a5 [git] Convert GitPushSpecParser to kotlin
GitOrigin-RevId: e20321c5e0f9be5b2498a2b466e6603d702d72d8
2024-07-11 15:32:06 +00:00
Ilia.Shulgin
2efa478f44 [git] Convert GitPushSpecParser to kotlin
GitOrigin-RevId: 62831dc4d53b5e78d261af228634cb6ea5fdeb55
2024-07-11 15:32:06 +00:00
Ilia.Shulgin
5c22ae4f12 Rename .java to .kt
GitOrigin-RevId: 7348a584999ae661f4ab9f823997da6b0a42fa45
2024-07-11 15:32:06 +00:00
Aleksey Pivovarov
0432f5399a IDEA-344874 git: do not apply refs/tags push spec to refs/heads
GitOrigin-RevId: 1f15b6c3b1f7aba2b4beb59dfcfad2e9c39c49ca
2024-07-11 15:32:05 +00:00
Alexander.Kass
c5afd3cb87 dg: add data source settings to the corner menu
GitOrigin-RevId: 7adb7329c8248aa0de1797b72b68f49e87fcac40
2024-07-11 15:16:09 +00:00
Dmitry Kichinsky
0cd59b251b [maven] IDEA-355974 StructureImportingTest: refresh VFS explicitly
GitOrigin-RevId: 6036169e1ca6c2a43fe589cd37ac934d8b1e7c04
2024-07-11 15:07:26 +00:00
Dmitry Kichinsky
a8b4f545d5 [maven] IDEA-355974 StructureImportingFsRefreshTest removed
GitOrigin-RevId: 5f64ca66fb1c5deafb5656a8495a5ae78aadab65
2024-07-11 15:07:26 +00:00
Dmitry Kichinsky
a2ddac84ac [maven] IDEA-355974 MavenProjectsNavigatorTest: refresh VFS explicitly
GitOrigin-RevId: 74b90fd4465bc881cd816bae4c9a71b56ee174f0
2024-07-11 15:07:25 +00:00
Dmitry Kichinsky
3befd45fb6 [maven] IDEA-355974 MavenProjectReaderTest: refresh VFS explicitly
GitOrigin-RevId: 30d77f800116998f2198794d4d39e93883f84cad
2024-07-11 15:07:25 +00:00
Dmitry Kichinsky
653752b13d [maven] IDEA-355974 MavenProjectsTreeReadingTest: refresh VFS explicitly
GitOrigin-RevId: 8808b7cb128e67c910482f2c147a93898c97fb8c
2024-07-11 15:07:25 +00:00
Dmitry Kichinsky
1ea3e7cc03 [maven] IDEA-355974 MavenJDOMUtilTest: refresh VFS explicitly
GitOrigin-RevId: e68dde6b23e0fc5ef338a26016d4be7cd913123d
2024-07-11 15:07:25 +00:00
Dmitry Kichinsky
8765f0d9da [maven] IDEA-355974 AbstractKotlinMavenImporterTest: refresh VFS explicitly
GitOrigin-RevId: eea0cc7e29fcc875e4aa64e9d6cf246c5da3e65a
2024-07-11 15:07:25 +00:00
Dmitry Kichinsky
5f6d4a1790 [maven] IDEA-355974 MavenUpdateConfigurationQuickFixTest12: refresh VFS explicitly
GitOrigin-RevId: 87fc971c9d73ad4d7d4cd2c3c5cfbbe5192ecb69
2024-07-11 15:07:25 +00:00
Dmitry Kichinsky
8c1f038536 [maven] IDEA-355974 AddMavenDependencyQuickFixTest: refresh VFS explicitly
GitOrigin-RevId: a958bb4c264f5592ce4bc5b8d1d1d9b09fcbc644
2024-07-11 15:07:25 +00:00
Dmitry Kichinsky
91a3e014f2 [maven] IDEA-355974 MavenCompatibilityProjectImportingTest: refresh VFS explicitly
GitOrigin-RevId: fda57dcac00326294d8daae757191151f2340ccc
2024-07-11 15:07:25 +00:00
Dmitry Kichinsky
e54be6fd24 [maven] IDEA-355974 ResourceCopyingTest: refresh VFS explicitly
GitOrigin-RevId: d426f04f7a89d83e3e6c036b76e88b35382cbf5b
2024-07-11 15:07:25 +00:00
Dmitry Kichinsky
d7c2fd3213 [maven] IDEA-355974 MavenDependencySmartCompletionTest: refresh VFS explicitly
GitOrigin-RevId: 05d940be353ce3d30b231ff37c87ecb26d132573
2024-07-11 15:07:25 +00:00
Dmitry Kichinsky
a9ca8b7e41 [maven] IDEA-355974 MavenFilteredPropertiesCompletionAndResolutionTest: refresh VFS explicitly
GitOrigin-RevId: 76de165a1fe982e3fa53890a1fe5eeac37ec4168
2024-07-11 15:07:25 +00:00
Dmitry Kichinsky
668e9bb38e [maven] IDEA-355974 MavenPropertyCompletionAndResolutionTest: refresh VFS explicitly
GitOrigin-RevId: 3d69ea36eca3e7abbde5cd612b7084115cbc5746
2024-07-11 15:07:25 +00:00
Dmitry Kichinsky
b2c6cd0df3 [maven] IDEA-355974 MavenRelativePathResolutionTest: refresh VFS explicitly
GitOrigin-RevId: 2e6dfe806ebfbdf062155887041f0df6d707c162
2024-07-11 15:07:25 +00:00
Dmitry Kichinsky
a9cc448736 [maven] IDEA-355974 do not use configureFromExistingVirtualFile in tests
GitOrigin-RevId: db0f9afa8665fcbcca5ab68a75939bdc8bf5df54
2024-07-11 15:07:25 +00:00
Victoria.Petrakovich
777db825df [kotlin] Port CreateLabelFix to K2, but it won't work because of KT-69829
KTIJ-29594

GitOrigin-RevId: ab7fa7d977fbeccbc34f82bbab8221af78ef599d
2024-07-11 14:50:58 +00:00
Vladimir Krivosheev
987df649f3 IJPL-158097 don't cache stringCachedValue for int
GitOrigin-RevId: 4260c36c16b0adeb1ad466400a367c42bee7201a
2024-07-11 14:41:36 +00:00
Vladimir Krivosheev
6a3874b326 IJPL-158097 don't cache stringCachedValue for boolean
GitOrigin-RevId: 27aadc66f76aa94df3525850af85db4b6bd9fc3a
2024-07-11 14:41:36 +00:00
Vladimir Krivosheev
d7a9bfa4e5 IJPL-158097 simplify awaitRegistryLoad
GitOrigin-RevId: 7f1e32b31284f175623950d11bc5f79c71d8f3b8
2024-07-11 14:41:36 +00:00
Vladimir Krivosheev
cfccc94883 IJPL-158097 refactor RegistryValue
GitOrigin-RevId: a04dfa7e85c1d3fe24fe455d56ac32d3d53861c4
2024-07-11 14:41:36 +00:00
Vladimir Krivosheev
a680e8b86f Rename .java to .kt
IJPL-158097

GitOrigin-RevId: 2f5cb2258ef5287ddc0f968c1a25621e615233c2
2024-07-11 14:41:36 +00:00
Vladimir Krivosheev
dc3c3f53ab IJPL-158097 refactor Registry
GitOrigin-RevId: fc12759c96be04ffcca4e0df12f5d2502556d28d
2024-07-11 14:41:36 +00:00
Vladimir Krivosheev
f83776b01b Rename .java to .kt
IJPL-158097

GitOrigin-RevId: 92b055c29ca138fc8162cda75836abf39295539d
2024-07-11 14:41:36 +00:00
Vladimir Krivosheev
ae941c287b IJPL-158180 do not pass SAVE flag if save is not allowed
GitOrigin-RevId: 0319e4982833ed5b0286b2b25eed3efe22826b5b
2024-07-11 14:41:36 +00:00
Vadim Salavatov
e65cb8c296 IJPL-158104 remove extra CoroutineScope receivers and clean up
GitOrigin-RevId: beb4b67f3e49e28e722868af06a48e3dbaf5672b
2024-07-11 14:34:01 +00:00
Berkay Özerbay
816ac64e36 Replace JavaTokenType with KtTokens in KotlinCodeGenerationVisitor
GitOrigin-RevId: e26499d5ffd57ceee2b707e2d583a5e5989d0abf
2024-07-11 14:31:54 +00:00
Berkay Özerbay
4c813249c5 Update code generation for method bodies in evaluation plugin and its tests
GitOrigin-RevId: 74df1cbeee501e0a03eb280a439a647832def829
2024-07-11 14:31:54 +00:00
Berkay Özerbay
9a6bd24ab3 Remove unused imports in KotlinCodeGenerationVisitor
Unused imports from the KotlinCodeGenerationVisitor in the evaluation-plugin have been removed. This includes the startOffset from both com.intellij.psi.util and org.jetbrains.kotlin.psi.psiUtil. This cleanup helps to improve code readability and maintainability.

GitOrigin-RevId: fa6b0fdad65410ebf690b7fad7432f47de18eca4
2024-07-11 14:31:54 +00:00
Berkay Özerbay
0e28364b49 Refactor KotlinCodeGenerationVisitor for better token handling
The KotlinCodeGenerationVisitor in the evaluation-plugin has been refactored to improve its handling of code tokens. Instead of directly operating on input, we now use PsiElementVisitor for more accurate token extraction, notably within KtNamedFunctions. Changes also include better identification of meaningful code fragments during parsing.

GitOrigin-RevId: f5f173932b5df664a457d85e9062acc7fee49e98
2024-07-11 14:31:54 +00:00
Berkay Özerbay
1fbabaa00c Revert last commit for JavaCodeGenerationVisitor
GitOrigin-RevId: 177b373f50d4b3d4c07b0ebc8084e35fd6a2780c
2024-07-11 14:31:54 +00:00
Berkay Özerbay
9b26e7a8c4 Refactor the JavaCodeGenerationVisitor class
The JavaCodeGenerationVisitor class is refactored to improve code readability. The PsiCodeBlock.trim and PsiElement.isMeaningful methods were moved outside the class body for better separation of concerns. Plus, the comparison for a JavaToken being neither a left nor a right brace was updated to use the PsiElement's elementType property rather than inspecting its tokenType.

GitOrigin-RevId: 32ba780de85c873da4e3868256cd7f6fc5c20ea8
2024-07-11 14:31:54 +00:00
Berkay Özerbay
1e07730060 Add code generation tests for evaluation plugin
The commit introduces tests for the code generation component of the evaluation plugin. These tests cover various functions and their executions, including methods with multiple lines and methods containing comments. Additionally, a code fragment generation has been added to the KotlinCodeGenerationVisitor, ensuring proper handling of KtFile elements.

GitOrigin-RevId: 4141c1b5fc333bcf93ac396517c8c1d4d313660b
2024-07-11 14:31:54 +00:00
Berkay Özerbay
e2464d5d26 Refactor code filtering in KotlinCodeGenerationVisitor
GitOrigin-RevId: cffeac7c129336eadbe8c97b3ff24b6a3db26185
2024-07-11 14:31:54 +00:00
Berkay Özerbay
b444490096 Refactor KotlinCodeGenerationVisitor for body expressions
The method for generating code in the KotlinCodeGenerationVisitor has been updated. The way function body expressions are handled has been modified, allowing for a clearer, more specific syntax and better error handling. Notably, the body expression is now expected to be a block, and the check for a non-empty body has been simplified.

GitOrigin-RevId: 373d91f4e47d3b93970927d741f7a4fc8dc2004f
2024-07-11 14:31:54 +00:00
Berkay Özerbay
91b3129c09 Update imports and refactor KotlinCodeGenerationVisitor
Condensed multiple import statements to a single wildcard import. Also refactored the 'visitNamedFunction' method with a new 'trim' function, streamlining the procedure and improving code readability.

GitOrigin-RevId: a625f37995892da35ed03492c7806e9938f3127c
2024-07-11 14:31:54 +00:00
Berkay Özerbay
50c8fea064 Add KotlinCodeGenerationVisitor to plugin
The KotlinCodeGenerationVisitor has been added to the evaluation plugin. This will aid in the generation of Kotlin code in a more effective and efficient manner.

GitOrigin-RevId: c8c5ce2a153d9056466093a328768de056a9d918
2024-07-11 14:31:54 +00:00
Berkay Özerbay
676df6e4b1 Add Kotlin code generation visitor for evaluation plugin
A new KotlinCodeGenerationVisitor class has been created as part of the evaluation plugin. This visitor class enables the generation and evaluation of Kotlin code fragments. The visitor covers functionality for visiting Kotlin files and named functions.

GitOrigin-RevId: dee28023dcd13a934f100fe4c8338fe70209db43
2024-07-11 14:31:54 +00:00
Egor Ushakov
df50c77eec EA-1312601 - NPE: XValueHint$MyEvaluationCallback$0.applyPresentation
GitOrigin-RevId: 2169e94d0ff1f9a6b71f2bcdfb460f29df448faa
2024-07-11 14:29:23 +00:00
Alexey Merkulov
94e3c00eaa [debugger] Exclude technical threads from debugger model check
EA-1315500 EA-1329448

GitOrigin-RevId: 708894508fc5c3c967e1fc049462b11d8d963122
2024-07-11 14:19:53 +00:00
Dmitrii Denisov
d13b703502 AT-1032 fix RunWidgetTest for split-mode
fix wait popup

fix wait popup

AT-1032 fix RunWidgetTest for split-mode


Merge-request: IJ-MR-139473
Merged-by: Dmitrii Denisov <dmitrii.denisov@jetbrains.com>

GitOrigin-RevId: d22ff5215250457b295f1e7e8062538a2ba86571
2024-07-11 14:18:38 +00:00
Sergei Vorobyov
f6a4c0b28a IDEA-353172 [Gradle|Sync] fix: sources and generated sources for the same Gradle source sets should have the same type
GitOrigin-RevId: a41f40790d8419f3459cfd9b1f3e8808f3b393dc
2024-07-11 13:34:28 +00:00
Vladimir Dolzhenko
93e8fdc2bb [kotlin] Address review comments
#KTIJ-29919

GitOrigin-RevId: 567f59eb03951ba5326dab6e314c9d0247eb21d5
2024-07-11 13:06:55 +00:00