Nikolay Krasko
17d4961760
as32: Use full sentences for reasons
2018-06-27 15:11:08 +03:00
Nikolay Krasko
099f3f3ddf
Move isEap and isDev utility functions to idea module
2018-06-27 15:11:08 +03:00
Nikolay Krasko
54bb09a5fb
Make disabled verification visible in UI
2018-06-27 15:11:07 +03:00
Mikhail Glukhikh
eb92b7ed7f
Unused symbol: don't suggest actual declaration used in another platform
...
Related to KT-17512
Related to KT-15666
2018-06-26 15:36:10 +03:00
Mikhail Glukhikh
30327aa9cc
Do not mark kotlin.test.Test annotated declarations as unused
...
So #KT-20523 Fixed
2018-06-26 15:36:09 +03:00
Mikhail Glukhikh
7e0e7dc983
Unused symbol: remove forced "used" from actual declarations
...
Now we really check whether actual declaration has usages
(in expect or actual code) or not
Related to KT-17512
Related to KT-15666
2018-06-26 15:36:07 +03:00
Mikhail Glukhikh
e885e54233
Implement search from expect element in KotlinReferenceSearcher
...
So mostly #KT-17512 Fixed
2018-06-26 15:36:06 +03:00
Mikhail Glukhikh
97d158d833
Find property usages dialog: rename all check-boxes as in other dialogs
2018-06-26 15:36:05 +03:00
Mikhail Glukhikh
abbfea357a
Add find usages option: search expected
2018-06-26 15:36:04 +03:00
Mikhail Glukhikh
69e420991a
KotlinFindMemberUsagesHandler: get rid of deprecation
2018-06-26 15:36:03 +03:00
Mikhail Glukhikh
0a36edcf20
Cleanup: KotlinReferenceSearcher
2018-06-26 15:36:01 +03:00
Mikhail Glukhikh
ea7db42af6
Cleanup: findUsagesOptions
2018-06-26 15:36:00 +03:00
Mikhail Glukhikh
a46e4f3142
Cleanup: KotlinFindMemberUsagesHandler
2018-06-26 15:35:59 +03:00
Mikhail Glukhikh
cc2869988f
Test for KT-17512 (yet with incorrect results)
2018-06-26 15:35:58 +03:00
Nikolay Krasko
84b26fc61d
Show kotlin internal information only in internal builds
2018-06-26 11:35:22 +03:00
Nikolay Krasko
5df0879538
Fix NPE in replaceImports() (EA-109700)
2018-06-26 11:35:21 +03:00
Mikhail Glukhikh
a3be68de82
Useless call: move class up from companion to remove 1.3 deprecation
2018-06-25 12:07:45 +03:00
Ilya Chernikov
7bff5e3ce7
Add missing tests dependencies on the renewed kotlin-scripting-idea plugin
2018-06-25 08:06:20 +02:00
Ilya Chernikov
1fbece9e7d
Clean scripting plugin options and classpath on importing from gradle
...
should prevent problems that may appear if JPS will try to load
gradle scripting subplugin
(cherrypicked with update from 1.2.50)
2018-06-25 08:06:20 +02:00
xiexed
414fabb2c6
KtStringTemplateExpressionManipulator: properly works with interpolations (KT-24958)
2018-06-22 21:54:28 +03:00
Vyacheslav Gerasimov
01db78d776
Build: Introduce Project extension properties for source sets
2018-06-22 21:42:30 +03:00
Nicolay Mitropolsky
01e9dd5085
don't use project scope to resolve java.lang.String (#KT-25024)
2018-06-22 20:28:55 +03:00
Nikolay Krasko
8e31113a4f
Ident elvis with normal ident in Kotlin code style (KT-25008)
...
#KT-25008 Fixed
2018-06-22 19:19:13 +03:00
Nikolay Krasko
341e7746a2
Minor: deprecated canBeOverriden -> canBeOverridden
2018-06-22 19:19:13 +03:00
Nikolay Krasko
6d29e44d1a
Remove deprecated DirectClassInheritorsSearch.search call (KT-24933)
...
#KT-24933 Fixed
2018-06-22 19:19:13 +03:00
Nikolay Krasko
1973860e70
Indent content of when (KT-14066)
...
#KT-14066 Fixed
2018-06-22 19:19:12 +03:00
Nikolay Krasko
dc8a3ab534
Fix leak in debugger (KT-24903)
...
#KT-24903 Fixed
2018-06-22 19:19:12 +03:00
Nikolay Krasko
64f14ad89b
Reformat: debugger.stepping
2018-06-22 19:19:12 +03:00
Nikolay Krasko
36ced8a6a6
as32: Allow to override verifier checks
2018-06-22 18:56:24 +03:00
Yan Zhulanow
4aa7a95055
Android Extensions: Explicitly check if the Android plugin is enabled (EA-104651)
...
AndroidGradleOrderEnumerationHandler is defined in gradle.xml that doesn't depend on the Android plugin.
So we need to additionally check if the Android plugin is installed/enabled.
2018-06-22 17:48:13 +03:00
Simon Ogorodnik
e20ee0205a
Update bunches to include performanceTest config
2018-06-21 16:05:47 +03:00
Simon Ogorodnik
0ac32ae41b
Switch GC to ConcMarkSweep and add other options from IDEA defaults
2018-06-21 16:05:46 +03:00
Simon Ogorodnik
7531a103a3
Add options to use JFR
2018-06-21 16:05:45 +03:00
Denis Zharkov
3fcf2f9c0d
Minor. Move KOTLIN_SUSPEND_BUILT_IN_FUNCTION_FQ_NAME constant to 'core'
...
It will be used for deserialization of kotlin.suspend in the next commit
2018-06-21 16:02:13 +03:00
Toshiaki Kameyama
5a4cba7528
"To raw/ordinary string literal" intention: Move cursor to same offset after conversion #KT-18106 Fixed ( #1675 )
2018-06-21 15:56:18 +03:00
Juan Chen
cd91cffdeb
as32: Fine-tune exception handling in GooglePluginUpdateVerifier
2018-06-20 19:47:56 +03:00
Nikolay Krasko
bf890b46f3
Allow to leave decline reason empty but demand verifier name
2018-06-20 19:47:55 +03:00
Juan Chen
855c0a353c
as32: Improve plugin update verification messages
2018-06-20 19:47:55 +03:00
Juan Chen
6523d4e306
as32: Implementation for GooglePluginUpdateVerifier
2018-06-20 19:47:55 +03:00
Nikolay Krasko
34111e8944
Prototype verify extension and apply it for Kotlin updater in AS 3.2
2018-06-20 19:47:55 +03:00
Mikhail Glukhikh
e1d223937b
Optimize "replace toString() with string template"
...
Related to KT-13782
2018-06-20 17:18:18 +03:00
Mikhail Glukhikh
7a1cf5704e
MPP wizard: use more clear wording (KT-20554)
2018-06-20 17:18:18 +03:00
Mikhail Glukhikh
152327d69d
Fix erroneous full resolve cache filling
...
Before this commit, we could store partial resolve results in full
resolve cache (for some declarations, e.g. primary constructors).
This may be done iff current partial resolve mode provides all results
from full resolve mode (CFA results & diagnostics).
Otherwise we should not do it.
This fixes four quick-fix tests on CreateTypeParameter
So #KT-23860 Fixed
So #KT-22758 Fixed
2018-06-20 17:18:18 +03:00
Mikhail Glukhikh
40668e3f96
Partial cleanup of ResolveElementCache
2018-06-20 17:18:18 +03:00
Toshiaki Kameyama
096f9fefd1
"Remove redundant '.let' call" intention: handle it inside function call
...
So #KT-20583 Fixed
2018-06-20 17:18:17 +03:00
Toshiaki Kameyama
d4798b699f
Reformat: ReplaceSingleLineLetIntention
2018-06-20 17:18:17 +03:00
kenji tomita
817d75a47f
Introduce ReplaceToStringWithStringTemplateInspection #KT-13782 Fixed
2018-06-20 17:18:17 +03:00
Dmitry Petrov
f956e8d85d
Record special descriptor in REFERENCE_TARGET for type alias object
...
If a type alias is used to reference an object (companion object) as a
qualifier, record FakeCallableDescriptorForTypeAliasObject in
REFERENCE_TARGET. This tells IDE that type alias was used in the file,
thus, if it's imported, such import isn't redundant.
REFERENCE_TARGET is used mostly by IDE and by ClassifierUsageChecker,
which we also have to update to handle qualifiers with
FakeCallableDescriptorForTypeAliasObject in REFERENCE_TARGET.
Rewrite some parts of ClassifierUsageChecker for cleaner interaction.
#KT-21863 Fixed Target versions 1.2.40
2018-06-20 17:16:25 +03:00
Toshiaki Kameyama
6675d7814c
KT-14779 Inspection to replace String.format with string templates ( #1645 )
...
* Add inspection to replace String.format with string templates #KT-14779 Fixed
* KT-14779 Fixed
2018-06-20 16:23:04 +03:00
Toshiaki Kameyama
e41a34af88
KT-11850 Add nested lambdas with implicit parameters warning ( #1664 )
...
* Add `Nested lambda has shadowed implicit parameter` inspection #KT-11850 Fixed
* KT-11850 Fixed
2018-06-20 15:57:03 +03:00