Kirill Rakhman
b567817d1f
Make completion for overriding functions respect suspend modifier
...
Fixes #KT-22200
2018-01-16 15:42:03 +01:00
Kirill Rakhman
8bc020f31b
Fix modifier order in generated overriden functions
...
Fixes #KT-21600
2018-01-16 15:42:02 +01:00
Alexey Sedunov
99be75cbfc
Refactoring: Use modifier list in CallableInfo where possible
2018-01-16 17:06:53 +03:00
Alexey Sedunov
ba0a91d74c
Quick Fixes: Drop deprecated KotlinCommonIntentionActionsFactory
...
Also update relevant test to use new action factory API
2018-01-16 17:06:53 +03:00
Alexey Sedunov
908bf71ae6
Quick Fixes: Support cross-language "Create from Usage" with Kotlin target
2018-01-16 17:06:53 +03:00
Alexey Sedunov
d44313876c
Create from Usage: Support primary constructor insertion
2018-01-16 17:06:52 +03:00
Alexey Sedunov
877874978f
Misc: Add action text assertions to CommonIntentionActionsTest
2018-01-16 17:06:52 +03:00
Toshiaki Kameyama
113e9f496e
Add quickfix for UnsafeCastFromDynamicInspection #KT-20915 Fixed
2018-01-16 17:06:51 +03:00
Alexey Sedunov
5892944bfc
Convert Enum to Sealed Class: Support expect/actual classes
2018-01-16 16:09:17 +03:00
Alexey Sedunov
9d5d85a1c5
Convert Sealed Class to Enum: Support expect/actual classes
...
#KT-18912 Fixed
2018-01-16 16:09:17 +03:00
Natalia Selezneva
dbd7ceb5fd
Fix Evaluate Expression for inline functions from multifile package class.
...
Find main class generated for debugger by its name instead of relativePath length.
#KT-22311 Fixed
2018-01-16 16:00:32 +03:00
Denis Zharkov
b4e5f8cf1c
Optimize collecting module info in IDE
...
The problem was that there is no special entity for libraries
in the IntelliJ model, and when we have an element for a library
we have to search through all of its dependencies
(see getOrderEntriesForFile call in collectInfosByVirtualFile)
But for popular library there could be quite a lot of dependencies,
while in most cases we need only the first one to obtain module
info for library itself (see changed usage in resolverForElement).
So it's worth replacing List with Sequence here
2018-01-15 18:20:27 +03:00
Denis Zharkov
d848238a46
Add cache for Module::languageVersionSettings
...
It might be useful because getExtraLanguageFeatures might be
rather expensive to compute
#KT-21450 Fixed
2018-01-15 18:20:27 +03:00
Dmitry Jemerov
60874f29fe
Inspection for scope functions conversion
...
#KT-17047 Fixed
2018-01-15 15:37:36 +01:00
Dmitry Jemerov
560dc920e4
Don't increase nesting level if we aren't processing current expression
2018-01-15 15:03:39 +01:00
Dmitry Jemerov
3a7e4acf22
Reformat and cleanup
2018-01-15 15:03:39 +01:00
Dmitry Jemerov
d15fa83749
API for building visitors from lambdas
2018-01-15 15:03:39 +01:00
Nikolay Krasko
46ac14198c
Don't try to cast light element to KtElement (EA-114820)
2018-01-15 14:05:51 +03:00
Nikolay Krasko
adf6ad6283
Check file before cast in KotlinCompletionContributor (EA-101984)
2018-01-15 14:05:50 +03:00
Nikolay Krasko
eae79e96ee
Fix NPE in PlainTextPasteImportResolver.tryResolveReferences (EA-10589)
2018-01-15 14:05:50 +03:00
Nikolay Krasko
93d40b0492
Fix NPE in SourceNavigationHelper.findFirstMatchingInIndex (EA-91517)
2018-01-15 14:05:50 +03:00
Nikolay Krasko
2ca7045228
Rewrite KotlinNameSuggesterTest test with KotlinLightCodeInsightFixtureTestCase
...
Use proper project descriptors and avoid reconfigure for test project.
2018-01-15 14:05:50 +03:00
Yan Zhulanow
1c5cd1b3a0
Minor: Fix problem in IDE with @TestOnly annotation resolution
2018-01-15 12:39:32 +09:00
Yan Zhulanow
81aae03b57
Use Gradle API to import annotations from compiler plugins instead of nasty data storage tasks
...
Tasks itself will be left for some time until all users migrate to the newer IDE plugin versions.
2018-01-15 12:39:31 +09:00
Yan Zhulanow
0a3a493f25
AllOpen: Fix incorrect 'accessing non-final property in constructor' warning (KT-16619)
2018-01-15 12:39:29 +09:00
Yan Zhulanow
c66947ba40
NoArg: Parse 'invokeInitializers' option in Maven importer (KT-19900)
2018-01-15 12:39:27 +09:00
Dmitry Jemerov
322ac6340a
Fix GradleConfigureProjectByChangingFileTestGenerated
2018-01-12 18:58:04 +01:00
Dmitry Jemerov
ce5b1acfa7
Regenerate tests
2018-01-12 16:59:31 +01:00
Alexander Podkhalyuzin
b8dded2685
Simple implementation for kt paste into project view #KT-8352 Fixed
2018-01-12 15:57:34 +03:00
Vyacheslav Gerasimov
53d6c17417
Set correct until-build for Idea 173 plugin
2018-01-12 13:54:26 +03:00
Alexey Sedunov
c1cf03d89c
Data Inflow: Support grouping by expression nullability
2018-01-12 13:54:23 +03:00
Alexey Sedunov
683bbe396d
Data Inflow: Support grouping by leaf expressions
2018-01-12 13:54:20 +03:00
Alexey Sedunov
b46784ab86
Safe Delete: Suppress walking through light field initializer
...
This fixes some tests failing in 173 branch
#KT-21508 Fixed
2018-01-12 13:54:19 +03:00
Nikolay Krasko
cbfd7088bf
Fix inAnnotation test in 173 branch
2018-01-12 13:54:17 +03:00
Nikolay Krasko
c0582ed732
Update file name replace in QuickFix tests
2018-01-12 13:54:16 +03:00
Vyacheslav Gerasimov
0cad41bb0c
Drop missing gradle extensions from gradle.xml
2018-01-12 13:54:07 +03:00
Nikolay Krasko
23bd0b3db5
Update test data because of changed action name in 173
2018-01-12 13:54:06 +03:00
Alexey Sedunov
f3dad53ad4
Line Markers: Respect subclass module when filtering out duplicates
...
#KT-21010 Fixed
2018-01-12 13:54:02 +03:00
Alexey Sedunov
d37c8397f5
Move: Fix applicability check in IDEA 173
2018-01-12 13:54:00 +03:00
Vyacheslav Gerasimov
ab50ccf995
Fix formatting for new kotlin dsl gradle project build script
2018-01-12 13:53:59 +03:00
Vyacheslav Gerasimov
560e2d1ced
Drop new Kotlin Dsl gradle project wizard which has been merged to idea
2018-01-12 13:53:58 +03:00
Nicolay Mitropolsky
bef100b46e
AbstractIntentionTest: isApplicableOnPooled made run under ProgressIndicator
2018-01-12 13:53:53 +03:00
Nicolay Mitropolsky
6cb556dd6b
AbstractQuickFixTest: FORCE_PACKAGE_FOLDER directive added
...
It was added as workaround for IDEA-176033 (IDEA-176032 in particular)
2018-01-12 13:53:48 +03:00
Nicolay Mitropolsky
ab0c081897
AbstractExtractionTest: fix for invalid files
...
`configureByFile` should be run after other configurations (like `configureKotlinRuntimeAndSdk`) because they could make configured file invalid
2018-01-12 13:53:46 +03:00
Nicolay Mitropolsky
dd45780de9
RecursiveMethodCallMarkerInfo and SuspendCallMarkerInfo forced to target Leaf-elements
...
because of restriction added in IDEA 173
2018-01-12 13:53:45 +03:00
Nicolay Mitropolsky
34bdc04fbe
AbstractNavigateToLibraryTest: fix for invalid files
...
otherwise current file is invalidated by `configureAs` and `additionalConfig`
2018-01-12 13:53:44 +03:00
Mikhail Glukhikh
8810e15f08
ExpressionOfTypeProcessor: get member name in read action
2018-01-12 13:53:36 +03:00
Mikhail Glukhikh
3f9054b28b
Fix find usages tests in 173 (run via ProgressIndicator)
2018-01-12 13:53:35 +03:00
Nicolay Mitropolsky
cfcee0a1fe
Workaround for CoreEnvironment initialization: explicitly setting versions for extensions
2018-01-12 13:53:34 +03:00
Nikolay Krasko
60149e3021
Update file structure tests as FileStructurePopup api was changed in 173
2018-01-12 13:53:29 +03:00