Vyacheslav Gerasimov
d84c5b1608
Switch to 183 platform
2018-12-06 20:16:58 +03:00
Toshiaki Kameyama
5aa0b7d2aa
Extend Selection: whole literal with braces is selected after parameters (KT-13420)
...
#KT-13420 Fixed
2018-12-06 19:48:04 +03:00
Nikolay Krasko
05269cea2f
Reformat in idea.editor package
2018-12-06 19:48:03 +03:00
Andrey Uskov
c85f56a0a8
Remove some bunches for build scripts.
2018-12-06 19:44:09 +03:00
Denis Zharkov
d8ebb70151
Advance enum entries in smart completion list
...
^KT-22579 Fixed
2018-12-06 17:38:31 +03:00
Denis Zharkov
d2d81d6ddc
Minor. Reformat StaticMembers.kt
2018-12-06 17:38:31 +03:00
Mikhail Glukhikh
de33905c44
Fix formatting in "simplify call chain" #KT-28576 Fixed
2018-12-06 15:37:47 +03:00
Mikhail Glukhikh
a3909d8e47
Refactor code in "simplify call chain" (relates to KT-28576)
2018-12-06 15:37:47 +03:00
Dmitriy Dolovov
33d89005b7
K/N fix: Built-ins initialization refactoring
...
- Use language settings from IDELanguageSettingsProvider
- Don't use dependencies of root modules to looks up for K/N stdlib
2018-12-06 19:05:17 +07:00
Dmitriy Dolovov
0a55c586d2
K/N fix: Use BindingTrace that allows overwriting slices
...
Issue #KT-21791
2018-12-06 19:05:11 +07:00
Dmitriy Dolovov
d4df5e132e
CLion: Hide JVM- and JS-specifics in Preferences
...
Issue #KT-28465:fixed
2018-12-06 19:03:43 +07:00
Andrey Uskov
273dbc823e
Fix "Kotlin not configured" issue in common MPP tests.
...
#KT-27718 Fixed
2018-12-06 14:50:26 +03:00
Mikhail Glukhikh
25f393d299
MPP JVM/JS wizard: add head & title to HTML #KT-27491 Fixed
2018-12-06 13:09:23 +03:00
Mikhail Glukhikh
6d72032b82
MPP JVM/JS wizard: upgrade Ktor to 1.0.1 (part of KT-27491)
2018-12-06 13:09:22 +03:00
Natalia Selezneva
6291cfee49
Fix 'read action required' exception in scratch
2018-12-06 09:33:34 +03:00
Natalia Selezneva
9e2ff04e1b
Fix build module in AndroidStudio for REPL and Scratch
...
^KT-23560 Fixed
2018-12-06 09:33:33 +03:00
Natalia Selezneva
ee5ede08c1
Tests: do not use hardcoded stdlib jar name
2018-12-06 09:33:32 +03:00
Natalia Selezneva
7b6508a8f9
Tests: refresh file system looking for recently copied file
2018-12-06 09:33:32 +03:00
Natalia Selezneva
6d41834282
Allow file access to KotlinTestUtils.getHomeDirectory() in IdeaModuleInfoTest
2018-12-06 09:33:31 +03:00
Natalia Selezneva
f3328b119c
Fix missing changes in bunch files in ConfigureKotlinTest
2018-12-06 09:33:30 +03:00
Natalia Selezneva
d25c4a8d3e
Rewrite ConfigureKotlinTest.testJsLibraryWrongKind
...
After the fix of KT-20511 we now detect library kind from it's jars, so even if LibraryKind is not set, it's effective kind is JSLibraryKind for this test
2018-12-06 09:33:30 +03:00
Natalia Selezneva
7d66e3f6f2
Fix AbstractExtractionTest for scripts
...
It fails with 'Descriptor wasn't found for declaration SCRIPT' because PsiElement was invalidated during test because of restaring highlighting in case of new script dependencies
2018-12-06 09:33:29 +03:00
Toshiaki Kameyama
9ee9965c7a
Convrt anonymous function to lambda: fix incorrectly conversion
...
#KT-28618
2018-12-06 09:28:56 +03:00
Toshiaki Kameyama
f6323cdee4
Replace assert boolean with assert equality: add import statement
...
#KT-28540 Fixed
2018-12-06 09:27:35 +03:00
Ilya Chernikov
6e27bc0fb3
Fix scratch testdata after introducing result vals into repl
2018-12-05 16:02:31 +01:00
Nikolay Krasko
79e577ae27
Remove unused deprecated configureAs methods
2018-12-05 17:46:31 +03:00
Nikolay Krasko
9cc88c13f5
Rewrite KotlinHierarchyViewTestBase with light fixture tests
2018-12-05 17:46:30 +03:00
Nikolay Krasko
5055308064
Rewrite AbstractNavigateToLibraryTest with light fixture tests
2018-12-05 17:46:28 +03:00
Nikolay Krasko
8a63a1655f
Rewrite NavigateToStdlibSourceTest with project descriptors
2018-12-05 17:46:26 +03:00
Denis Zharkov
e88ed25f26
Support targeted annotations on property accesors in ultra-light classes
2018-12-05 16:34:44 +03:00
Denis Zharkov
52d5143dd7
Support delegating to interfaces in ultra-light classes
2018-12-05 16:34:44 +03:00
Denis Zharkov
dbf9ff29a9
Support data classes in ultra-light classes
2018-12-05 16:34:44 +03:00
Denis Zharkov
28d3a62567
Separate nullability annotation processing for ultra-light classes
...
KtLightNullabilityAnnotation is specifically designed for old light classes
and includes a bunch of hacks that are applicable for them
So, we have to introduce own hack into it
(see org.jetbrains.kotlin.asJava.classes.KtUltraLightParameter#getTypeForNullability)
that is a bit of hard to support when extending hierarchy
2018-12-05 16:34:44 +03:00
Denis Zharkov
30c60c7b1f
Do not render nullability in UltraLightChecker when it's irrelevant
...
It's necessary because after next changes,
they become different for ultra and old light classes.
The former (ultra) is more correct but it doesn't help when
we need to compare our implementation with reference
2018-12-05 16:34:44 +03:00
Denis Zharkov
d7d0407afb
Fix parameters nullability for generated overloads in light classes
...
When making KtLightNullabilityAnnotation after test org.jetbrains.kotlin.idea.caches.resolve.IdeLightClassTestGenerated.NullabilityAnnotations#testJvmOverloads
started failing the wrong assumption was made that for
@JvmOverloads-generated overloads their last parameter is always nullable
(see removed isNullableInJvmOverloads function) and that lead to a bug,
namely KT-28556.
The actual problem of this test started failing was incorrect definition
of kotlinOrigin in KtLightParameter for case of JvmOverloads:
wrong KtParameter was being chosen before
This commit fixes the issue by propagating how actually generated
parameters in codegen relate to source KtParameters'
^KT-28556 Fixed
2018-12-05 16:34:44 +03:00
Vyacheslav Gerasimov
a112bebf78
Build: Configure cache-redirector in allprojects block
2018-12-04 15:38:56 +03:00
Simon Ogorodnik
2556d64459
Provide findModuleDescriptor for ResolutionFacadeWithDebugInfo
...
Fixes Move refactoring tests
Broken after introduction of ResolutionFacadeWithDebugInfo
2018-12-04 15:13:40 +03:00
Dmitry Zhuravlev
ab259c2d6f
Consider Kobalt libraries as external for Kotlin
2018-12-04 13:51:23 +03:00
Toshiaki Kameyama
7bf51f1533
Expand selection for class members #KT-28289 Fixed
2018-12-04 11:17:27 +03:00
Mikhail Glukhikh
7cbc8e8b76
Introduce "Redundant else in if" inspection #KT-19668 Fixed
2018-12-03 09:39:22 +03:00
Mikhail Glukhikh
ca87e53f04
Introduce DeferredIsResultInspection #KT-25620 Fixed
2018-12-01 11:07:02 +03:00
Mikhail Glukhikh
a7ad1113b2
Redundant async: do not suggest for calls with 'start'
...
The reason with 'withContext' does not have such parameter anymore
2018-11-30 15:14:27 +03:00
Mikhail Glukhikh
3d15cbcced
Redundant async inspection: run "optimize imports" after quick-fix
2018-11-30 15:14:27 +03:00
Mikhail Glukhikh
fd3c6496fb
Redundant async inspection: support case with explicit scope
...
#KT-28504 Fixed
2018-11-30 15:14:27 +03:00
Mikhail Glukhikh
9f5255da02
SimplifyCallChainFix: take Conversion instead of raw text, polish a bit
2018-11-30 15:14:27 +03:00
Mikhail Glukhikh
b6630699aa
SimplifyCallChainFix: implement 'modifyArguments' as lambda
2018-11-30 15:14:26 +03:00
Mikhail Glukhikh
5947ca1142
Redundant async cleanup: use CAPS for constant names
2018-11-30 15:14:26 +03:00
Mikhail Glukhikh
e6a1b96c53
Redundant async inspection: support case with GlobalScope
...
Partial implementation of KT-28504
2018-11-30 15:14:26 +03:00
Mikhail Glukhikh
138e36aa66
Simplify call chain fix: extract 'apply'
2018-11-30 15:14:26 +03:00
Mikhail Glukhikh
c4717d17d9
Redundant async: extract generateConversion, integrate arguments inside
2018-11-30 15:14:26 +03:00