Mikhail Glukhikh
4dd95e5640
Introduce OptionalExpectationInspection
...
It works at INFORMATION level only and is intended to form quick-fixes
to add relevant actual declarations.
#KT-25533 Fixed
2018-09-05 13:05:07 +03:00
Mikhail Glukhikh
ba84c6adf3
Request focus while navigating to expected declaration #KT-18490 Fixed
2018-09-05 13:05:07 +03:00
Mikhail Glukhikh
69def648c9
Remove deprecated MP extensions from Gradle menu #KT-22491 Fixed
...
Related to KT-26414
2018-09-05 13:05:06 +03:00
Mikhail Glukhikh
62e1121e7f
Remove deprecated MP project builder from Gradle menu #KT-26414 Fixed
2018-09-05 13:05:06 +03:00
Nicolay Mitropolsky
d0575127be
fix for StoredExceptionsThrowToggleAction nullability changed in 183
2018-09-05 09:42:59 +03:00
Alexey Sedunov
9d5bd29e8b
Misc: Render MemberInfo as 'abstract' only if it's present in source
...
#KT-26533 Fixed
2018-09-04 19:49:14 +03:00
Toshiaki Kameyama
be30761ec4
"Convert to 'also'" intention: Fix for call expression has this receiver #KT-26009 Fixed
2018-09-04 19:29:44 +03:00
Toshiaki Kameyama
e1dd85429f
Extract function: make default visibility private #KT-25454 Fixed
2018-09-04 19:28:25 +03:00
Toshiaki Kameyama
dc57887a4d
Create function quick fix: fix visibility from inline method #KT-25228 Fixed
2018-09-04 19:01:22 +03:00
Toshiaki Kameyama
e2945b1d12
Add quickfix for "Interface doesn't have constructors" #KT-17687 Fixed
2018-09-04 18:58:56 +03:00
Toshiaki Kameyama
b5ba475696
"Redundant lambda arrow" inspection: Also report arrow with single underscore parameter #KT-24728 Fixed
2018-09-04 18:29:46 +03:00
Toshiaki Kameyama
20535feb31
"Remove parameter" quick fix: Remove unused type parameter used as type projection #KT-23511
2018-09-04 18:29:13 +03:00
Alexander Podkhalyuzin
c36d0e5db5
Changed action group text
...
#KT-26501 Fixed
2018-09-04 16:47:54 +03:00
Nicolay Mitropolsky
d415ca9cf6
fixed nullability for various listeners update in 183
2018-08-31 17:20:54 +03:00
Toshiaki Kameyama
53c10238d6
Introduce inspection for safe cast + return #KT-26230 Fixed
2018-08-31 15:03:25 +03:00
Toshiaki Kameyama
2c71b3873e
Introduce "flatMap { it } -> flatten" inspection #KT-25969 Fixed
2018-08-31 15:03:24 +03:00
Yan Zhulanow
d00f5b335a
MPP: Refactoring, extract IDE platform kinds, allow to add custom platforms
2018-08-31 05:14:15 +05:00
Toshiaki Kameyama
bae754a266
Foldable if-then: do not highlight for is checks #KT-24978 Fixed
2018-08-30 18:30:45 +03:00
Toshiaki Kameyama
fba539debf
"Nested lambda has shadowed implicit parameter": minor improvements
2018-08-30 17:37:36 +03:00
Toshiaki Kameyama
b7c4248524
"Nested lambda has shadowed implicit parameter": add quickfix to rename shadowing 'it'
2018-08-30 17:37:36 +03:00
Toshiaki Kameyama
97150cb0e2
"Nested lambda has shadowed implicit parameter": show warning on the shadowing 'it' reference
2018-08-30 17:37:36 +03:00
Toshiaki Kameyama
7fdbcda91d
"Nested lambda has shadowed implicit parameter": downgraded to WEAK WARNING level
2018-08-30 17:37:36 +03:00
Toshiaki Kameyama
7800f42840
"Nested lambda has shadowed implicit parameter": Do not report if 'it' paramerter is not used #KT-26268 Fixed
2018-08-30 17:37:36 +03:00
Dmitry Savvinov
2ecea06d3e
Do not coerce inferred language levels when importing from facet
...
Rationaly is that facet importer knows better about which language
versions should be used, so we shouldn't interfere.
Otherwise, Gradle or Maven projects which have upgraded corresponding
plugin to 1.3 will be imported with 1.2 levels, which is undesirable
2018-08-30 16:23:30 +03:00
Mikhail Glukhikh
1e2334a911
Kotlin migration: fix data context calculation for 173 / AS31
...
Version for IDEA 182 does not work properly here (returns null),
so we have to use `DataManager.getDataContext(focusedComponent)` directly
#KT-26399 Fixed
2018-08-30 16:21:56 +03:00
Mikhail Glukhikh
2e4f46045e
Kotlin migration: extract data context into a function, check it on null
...
The extraction itself is needed due to different behaviour of related
IDEA functions in different platforms.
Check on null is needed because `createFromAnAction` last argument
cannot be null, otherwise we will get an exception.
Partial fix of KT-26399
2018-08-30 16:21:53 +03:00
Yan Zhulanow
5d936a4c7c
Kapt: Ignore annotation-processing-gradle compiler plugin we got from Gradle (KT-24714)
...
Cause it's built for the shaded Kotlin compiler and won't work with JPS.
(cherry picked from commit d08a32c7cb )
2018-08-30 16:21:11 +03:00
Alexey Sedunov
c7a5a7ebd5
Gradle: Use common language/api version (if any) of all modules for project
...
#KT-26290 Fixed
2018-08-30 14:58:45 +03:00
Alexey Sedunov
a490781213
Configuration: Drop coroutines for language >= 1.3
...
#KT-25681 Fixed
2018-08-30 14:57:37 +03:00
Vyacheslav Gerasimov
c6c3b05d02
as32: Update build range for AS 3.2 plugin to match RC1 and further releases
2018-08-30 14:55:58 +03:00
Vyacheslav Gerasimov
348ce6733d
Update build range for AS 3.2 plugin to match next AS 3.2 releases
2018-08-30 14:55:54 +03:00
Vyacheslav Gerasimov
d5009e4fb4
as33c4: Remove registration of AndroidGradleOrderEnumerationHandler from gradle-java.xml
2018-08-30 14:55:52 +03:00
Toshiaki Kameyama
6a140fb9ed
"Useless call on collection type" inspection: Apply to 'kotlin.sequences.orEmpty'
2018-08-30 14:50:56 +03:00
Yan Zhulanow
ddb034715d
Gradle importer: Join compiler plugin options as before the new MPP refactoring (KT-26424)
...
Android Studio has at least two kinds of importers: a generic one (that is run when the "Refresh Gradle model" tool button is pressed) and a fast one (is run on the build variant switch). Fast importer doesn't invoke our import handlers (AndroidExtensionsGradleImportHandler) that modify the compiler options stored in Kotlin facet in some way.
Until the recent MPP importer refactoring both old and new options were saved in the Kotlin facet; now only the new options persist. This is certainly better, though it breaks the existing behavior (as the options added by import handlers become lost).
The alternative approach is to re-design import handlers in a way they won't require the whole module/source set node (so we can invoke them every time), though it requires a way more changes.
2018-08-29 19:16:16 +05:00
kenji tomita
e5841441c9
Fix #KT-26353 'Make variable immutable' is a bad name for a quickfix that changes 'var' to 'val'
2018-08-29 16:27:46 +03:00
Toshiaki Kameyama
3ea0222d43
"Add annotation target" quickfix: add SOURCE retention when target is EXPRESSION #KT-26306 Fixed
2018-08-29 16:18:04 +03:00
Alexander Udalov
896cf61443
Move JVM-specific annotation FQ names and utils to frontend.java
2018-08-27 23:37:06 +02:00
Alexander Udalov
34c033bcaf
Take ReceiverParameterDescriptor in FunctionDescriptorImpl.initialize
...
Instead of just KotlinType. This will allow to pass annotations on the
receiver at call sites
2018-08-27 23:37:04 +02:00
Toshiaki Kameyama
ae4ff45750
"Remove redundant let" inspection: do not report for long call chains #KT-26289 Fixed
2018-08-27 13:42:25 +03:00
Toshiaki Kameyama
c6db26ba91
"Replace 'if' with elvis operator": Don't suggest on nullable type check #KT-25886 Fixed
2018-08-27 13:33:46 +03:00
Toshiaki Kameyama
1a31ce769c
Fix false negative in not reduceable binary expression #KT-26179 Fixed
2018-08-27 13:32:49 +03:00
Toshiaki Kameyama
8f80851b9a
if then to elvis: support calling extension function in class #KT-26343 Fixed
2018-08-27 13:31:04 +03:00
Toshiaki Kameyama
b34f32d4f3
"Remove redundant backticks": Fix false positive for yield #KT-25968 Fixed
2018-08-27 13:10:57 +03:00
Toshiaki Kameyama
362e6863ac
"Replace if with when": Do not remove block braces if block has single lambda expression #KT-26187 Fixed
2018-08-27 12:54:45 +03:00
kenji tomita
e59427edab
Fix false positive for if-else
2018-08-27 12:53:35 +03:00
Toshiaki Kameyama
0099b7b3b1
"Remove explicit type specification" intention: Add type argument to initializer if need #KT-13343 Fixed
2018-08-27 12:35:32 +03:00
Alexander Podkhalyuzin
54922362e3
Added Kotlin svg icon to the distribution
...
#KT-26393 Fixed
2018-08-25 17:21:50 +03:00
Vyacheslav Gerasimov
0dd410a5bb
Make CommandAdapter.beforeCommandFinished override compatible with 183 platform
2018-08-24 22:19:28 +03:00
Mikhail Glukhikh
ded652382b
"Deferred result not used": report all Deferred results by default
...
#KT-26181 Fixed
2018-08-24 18:00:56 +03:00
Mikhail Glukhikh
564ea629d1
Add annotations to primary constructor together with 'constructor'
...
This fixes incorrect behaviour if primary constructor has no explicit
'constructor' keywork
#KT-25548 Fixed
2018-08-24 18:00:54 +03:00