Commit Graph

23344 Commits

Author SHA1 Message Date
Matthew Gharrity e0ca94279a Move vFile.isValid() check inside read action
Fixes KT-38541
2020-04-23 19:30:02 -04:00
Valentin Kipyatkov 0c3c8b64ce Optimization for faster search of references to top-level members 2020-04-23 22:12:26 +03:00
Valentin Kipyatkov ec057a6c00 Minor change after review 2020-04-23 22:12:26 +03:00
Valentin Kipyatkov 56b20b0f31 Data Flow from Here: do not include named argument references 2020-04-23 22:12:25 +03:00
Valentin Kipyatkov 7c81d93db0 Data Flow to Here: process data-class copy-method calls 2020-04-23 22:12:25 +03:00
Natalia Selezneva 7f8b3b6a79 Minor: rename function 2020-04-23 20:14:03 +03:00
Natalia Selezneva 574f57e604 Minor: extract class to separate file 2020-04-23 20:14:02 +03:00
Natalia Selezneva 25dc8b7766 Minor: rename files 2020-04-23 20:14:02 +03:00
Natalia Selezneva 294df3a7e9 201: Implement floating notification update 2020-04-23 20:14:02 +03:00
Natalia Selezneva 2fba813a53 Rework the notification for scripts out of project
Add an option to link external gradle project
remove an option to load configuration manually because it cannot be implemented properly: script configurations for those scripts shouldn't be loaded during import for Gradle 6.0

^KT-37178 Fixed
2020-04-23 20:14:02 +03:00
Natalia Selezneva 85141b753b Show notification that gradle project is needed to be imported to get code insight for kotlin scripts 2020-04-23 20:14:01 +03:00
Natalia Selezneva 69d86a2972 Fix getting default sdk for scripts after refactoring 2020-04-23 20:14:01 +03:00
Sergey Rostov 73760effee Refactor GradleScriptingSupport to support multiple gradle projects linked to one idea project
For each externalGradleProject separate GradleScriptingSupport is created.
This allows to save script configurations by gradle projects

^KT-37806 Obsolete
^KT-35151 Fixed
2020-04-23 20:14:01 +03:00
Natalia Selezneva 34df3066b3 Fix messages for script configuration loading
Remove word "dependencies" from UI, use "configuration" instead
2020-04-23 20:14:01 +03:00
Natalia Selezneva f3687dcd00 Extract utils methods for getting gradle project settings 2020-04-23 20:14:01 +03:00
Natalia Selezneva f5f69ccc1b Fix getting gradle version for new project 2020-04-23 20:14:01 +03:00
Natalia Selezneva 3904e0f97c Fix indexing for force load configuration action 2020-04-23 20:14:00 +03:00
Natalia Selezneva c52e5d180a Fix compilation for AS35 2020-04-23 20:14:00 +03:00
Natalia Selezneva b472e915e6 Minor: rename files 2020-04-23 20:14:00 +03:00
Natalia Selezneva 217696fad5 Minor: rename class 2020-04-23 20:14:00 +03:00
Natalia Selezneva 3008010d73 Minor: extract class 2020-04-23 20:13:59 +03:00
Natalia Selezneva 59bdf67aa2 Refactoring: extract separate manager to update script configurations of gradle scripts
The main goal is to extract logic that is related to Gradle scripts only to separate place.
Configurations for gradle scripts are updated during import simultaneously, there is no need to manage script configuration update for one file
Note that for Gradle less than 6.0 The DefaultScriptingSupport is used
2020-04-23 20:13:59 +03:00
Natalia Selezneva c6609e9a97 Temporary remove flacky assert from GradleKtsImportTest 2020-04-23 20:13:59 +03:00
Natalia Selezneva da76fff83c Remove unused parts 2020-04-23 20:13:59 +03:00
Natalia Selezneva 7ecaf35647 Fix javaHome storing KotlinDslScriptModels 2020-04-23 20:13:58 +03:00
Natalia Selezneva a35523b6d0 Implement global notification for configurations update of gradle scripts
For 193: it will be a simple notification at the bottom of the IDEA window
For 201: a floating notification in the editor is implemented near "Load Gradle Changes" icon
^KT-34443 Fixed
2020-04-23 20:13:58 +03:00
Natalia Selezneva e300b30de1 Do not use hard coded string literals in UI 2020-04-23 20:13:58 +03:00
Natalia Selezneva 1b7f72020e GradleScriptListener should be applicable for all gradle scripts
Not only for those that are in project
Otherwise changes in those unrelated to gradle project script will affect up to date of other scripts
2020-04-23 20:13:58 +03:00
Natalia Selezneva 426c0c9ff0 201: Run partial import in IDEA 2020.1 to get script configurations
It only requests for KotlinDslScriptsModel
^KT-34481 Fixed
2020-04-23 20:13:58 +03:00
Natalia Selezneva 10aeead925 Run gradle import instead of usage of scripting API during configurations update
For Gradle 6.0 or higher
^KT-34481
2020-04-23 20:13:57 +03:00
Natalia Selezneva 97e5ff858d Add ability to postpone script configuration loading
Show notification for scripts with out of date configurations

^KT-35573
2020-04-23 20:13:57 +03:00
Natalia Selezneva 7f5715f5da 201: KotlinDslScriptsModel: use ProjectModelContributor to process models
Instead of populateProjectExtraModels in Resolver
2020-04-23 20:13:57 +03:00
Konstantin Tskhovrebov 73a6dc6d1e Fix dependency for idea-fir module on 191 IDEA. 2020-04-23 17:22:59 +03:00
Sinan Kozak 3f8ffb5ea7 KT-24750 Blank line after class header formatter should use user setting 2020-04-23 18:48:38 +07:00
Konstantin Tskhovrebov e6f527f1d0 Update tests: disable tests run gutters for Object. 2020-04-23 14:16:22 +03:00
Vladimir Ilmov acced52384 (CoroutineDebugger) Tests added for no creation stack frame information 2020-04-23 11:36:15 +02:00
Vladimir Ilmov 57214aa453 (CoroutineDebugger) Exception if no creationStackTrace available
#KT-38484 Fixed
2020-04-23 11:36:15 +02:00
Vladimir Ilmov 9b0e37f627 (CoroutineDebugger) Minor issued fixed, log level adjusted for missing classes in JVM. 2020-04-22 17:44:11 +02:00
Igor Yakovlev 7d917634d0 Remove object name and type in project view 2020-04-22 12:28:28 +03:00
Igor Yakovlev 72303fd2ad Fixed possible NPE in LightClasses
Fixed #EA-218014
2020-04-22 12:26:51 +03:00
Igor Yakovlev 8a7aac728d Fix invalid signature for UL method
Fixed #KT-32245
2020-04-22 12:26:51 +03:00
Igor Yakovlev ed3ae785fb Fix invalid signature for generic UL method
Fixed #KT-38348
2020-04-22 12:26:51 +03:00
Natalia Selezneva 962a767e54 Set jvm target for scratch files
#KT-38455 fixed
2020-04-22 08:31:07 +02:00
Ilya Chernikov b5be2abb1a Set jvm target for REPL from the context module
#KT-38454 fixed
2020-04-22 08:31:07 +02:00
Vladimir Ilmov 2bd6714e39 (CoroutineDebugger) Unneccesary log record removed. 2020-04-21 16:30:27 +02:00
Vladimir Ilmov 73f5e48518 (CoroutineDebugger) Minor fixes, kotlinx.coroutines version fix 2020-04-21 09:48:13 +02:00
Vladimir Ilmov 0ce8ca7bcd (CoroutineDebugger) negative frames removed from coroutine stack 2020-04-21 09:48:13 +02:00
Vladimir Ilmov be2185ec01 (CoroutineDebugger) kotlinx.coroutines.core:1.3.5 support / dynamicProxy(interface) classes 2020-04-21 09:48:13 +02:00
Vladimir Ilmov c018cf0ce5 (CoroutineDebugger) kotlinx.coroutines compatibility version fix 2020-04-21 09:48:12 +02:00
Vladimir Ilmov c96d30a8ce (CoroutineDebugger) Added setting to disable coroutine agent 2020-04-21 09:48:12 +02:00