Dmitry Jemerov
f370d74609
Correctly detect stdlib in Gradle projects; move detection out of EDT
...
To detect whether a module has an stdlib in its dependencies, look at
source root modules and not at base module.
2017-07-24 19:53:52 +02:00
Dmitry Jemerov
0971af803c
Check for non-configured modules in background thread
...
#KT-17835 Fixed
2017-07-24 19:53:52 +02:00
Dmitry Jemerov
e1f7c91728
Use Kotlin/JVM and Kotlin/JS terms in the UI
2017-07-24 19:53:52 +02:00
Dmitry Jemerov
0f2992ddec
JavaFrameworkType: J2K
2017-07-24 19:53:52 +02:00
Dmitry Jemerov
079f7690a8
JavaFrameworkType: rename to .kt
2017-07-24 19:53:52 +02:00
Dmitry Jemerov
6dbaec0cc6
Use distinct icon for Kotlin/JS module and libraries
2017-07-24 19:53:52 +02:00
Dmitry Jemerov
6eff8c7b4b
JSFrameworkType: J2K
2017-07-24 19:53:52 +02:00
Dmitry Jemerov
57a501ebce
JSFrameworkType: rename to .kt
2017-07-24 19:53:52 +02:00
Pavel V. Talanov
8e3f8c4c14
Fix calling GSS.union for empty array
...
EA-104046
2017-07-24 18:56:19 +03:00
Pavel V. Talanov
d5ca46157a
Refactor: Make DependenciesCache and ScriptDependenciesUpdater services
...
Rename: DependenciesCache -> ScriptDependenciesCache
(makes sense to make name more specific since it is a service now)
2017-07-24 18:56:16 +03:00
Kirill Rakhman
4c7ddbe397
"Use destructuring declaration" should not be available for top-level and class properties ( #1205 )
...
Fixes #KT-19167
2017-07-24 14:33:46 +02:00
Simon Ogorodnik
f079ed949c
KT-19015: Enable multiarg completion for non-first argument
...
#KT-19015 fixed
2017-07-24 00:00:11 +03:00
Nikolay Krasko
b6bd3e15c5
Fix outdated highlighting for Kotlin injected fragments (KT-18842)
...
Do not use cached value for injection in non-dispatch threads and throw
PCE if value isn't ready. Otherwise outdated value may be stored in
highlighting.
#KT-18842 Fixed
2017-07-21 19:57:21 +03:00
Alexander Udalov
7f8e7c66f5
Suppress FNFE in .kotlin_metadata index
...
Similarly to VirtualFileKotlinClass.create.
This could happen for example when some files are removed from
kotlin-stdlib-common
2017-07-21 19:03:15 +03:00
Mikhail Glukhikh
6ee94dae6f
Code cleanup: KotlinSafeDeleteProcessor
2017-07-21 18:59:13 +03:00
Mikhail Glukhikh
d05a525d8d
Search for KtTypeAlias in safe delete processor
...
Related to KT-16046
2017-07-21 18:59:07 +03:00
Mikhail Glukhikh
dd0cf8219e
Add type aliases into UnusedSymbolInspection / safe delete
...
So #KT-16046 Fixed
2017-07-21 18:59:01 +03:00
Mikhail Glukhikh
951e8cd91a
Code cleanup: unnecessary local variable applied
2017-07-21 18:58:48 +03:00
Mikhail Glukhikh
202fb19cf6
If-then to safe access: more correct receiver calculation
...
So #KT-18928 Fixed
2017-07-21 18:58:33 +03:00
Mikhail Glukhikh
31bb1cc0f9
Invoke back setting "show inline dialog for local variables"
...
So #KT-19130 Fixed
2017-07-21 18:58:27 +03:00
Kirill Rakhman
a7084ceb9b
Fix some type hints related issues ( #1204 )
...
* Type hints shouldn't appear for negative literals
Fixes #KT-18974
* Make type hints work for destructuring declarations
Fixes #KT-18444
* Hide type hints for generic constructor calls if type arguments are explicitly specified
Fixes #KT-19167
2017-07-21 16:31:46 +02:00
Nikolay Krasko
f4038f7109
Fix slow typing because of counting injected fragments (KT-18842)
...
- cache result of kotlin injection on modification tracker
- never count injection in dispatch thread, use cached result instead
- compute injection with write action priority, reuse cache if unfinished
#KT-18842 Fixed
2017-07-21 15:41:06 +03:00
Nikolay Krasko
436b637282
Refactoring: show using ProcessCancelException in method name
2017-07-21 15:41:06 +03:00
Simon Ogorodnik
7ed1669050
KT-19011: Fix import optimizing when extension functional type is used
...
It should check is extension functional type imported from companion
is actually called on companion instance
#KT-19011 fixed
2017-07-21 03:08:06 +03:00
Mikhail Glukhikh
44790eccaf
Use "unnecessary variable" inspection in J2K
...
Unused variables are no more treated as unnecessary
Related to KT-15958
2017-07-20 17:48:27 +03:00
Mikhail Glukhikh
39f1ef390e
Do not report "redundant Unit" for generic calls coerced to Unit
...
So #KT-18999 Fixed
2017-07-20 17:48:20 +03:00
Mikhail Glukhikh
c554bfa20d
Move: RemoveSetterParameterTypeInspection to inspections package
2017-07-20 17:48:14 +03:00
Mikhail Glukhikh
e154e4cf75
Move: RedundantUnitReturnTypeInspection to inspections package
2017-07-20 17:48:07 +03:00
Dmitry Jemerov
9213c4a1ab
EA-104855 - (1.1.4) NPE: KotlinCommonBlockKt.isFirstParameter
2017-07-20 12:50:12 +02:00
Dmitry Jemerov
fbcc519098
Fix tests affected by annotation wrapping changes
2017-07-20 12:32:48 +02:00
Alexander Udalov
def3f73fdd
Use AnnotationDescriptor.fqName instead of type
...
Also use the annotationClass extension property instead of
TypeUtils.getClassDescriptor(annotation.type)
2017-07-20 13:26:13 +03:00
Alexander Udalov
541b9dab52
Introduce optimized BuiltInAnnotationDescriptor for built-in annotations
...
It's built on a FQ name and avoids resolution of the annotation class
descriptor as much as possible
2017-07-20 13:26:13 +03:00
Alexander Udalov
cc7ed2ba54
Change map key type in AnnotationDescriptor.getAllValueArguments
...
Turns out, only the parameter's name is needed at all usages of this
method. Such a map is both easier to use (no need to call
ValueParameterDescriptor.getName) and easier to construct (no need to
resolve annotation class, its constructor, its parameters). In this
commit, only usages have changed but the implementations are still using
the old logic, this is going to be refactored in subsequent commits
2017-07-20 13:25:39 +03:00
Alexander Udalov
41ea0e8ef8
Introduce AnnotationDescriptor.fqName
...
Could be used instead of ".annotationClass.fqName" to avoid the unneeded
resolution of the annotation class descriptor
2017-07-20 13:25:38 +03:00
Alexander Udalov
1d64b61a8f
J2K AnnotationDescriptor, refactor implementations
2017-07-20 13:25:38 +03:00
Mikhail Glukhikh
bdc44ff4cf
Unnecessary variable: do not start inlining in write action
...
So #KT-19110 Fixed
(cherry picked from commit 6325fb1)
2017-07-20 12:39:52 +03:00
Toshiaki Kameyama
fe599463ac
KT-18978 Intention Move to class body generates incorrect code for vararg val/var ( #1188 )
...
Intention Move to class body generates incorrect code for vararg val/var #KT-18978 Fixed
2017-07-20 01:29:56 +03:00
Simon Ogorodnik
ccfcfd8721
Add benchmark for local completion and improve benchmarking
2017-07-19 21:18:58 +03:00
Dmitry Jemerov
951392005b
Add options for wrapping local variable and property annotations
...
#KT-14950 Fixed
2017-07-19 15:03:00 +02:00
Dmitry Jemerov
050ff03b07
Implement wrapping options for enum constants
...
#KT-14126 Fixed
2017-07-19 15:02:59 +02:00
Dmitry Jemerov
7555bb6c3c
Support formatting of 'where' clauses
...
#KT-14083 Fixed
2017-07-19 15:02:58 +02:00
Dmitry Jemerov
325e950bfe
Reformat expression body property accessors
...
#KT-17394 Fixed
2017-07-19 15:02:52 +02:00
Dmitry Jemerov
4db8639bf8
Consistent name for option controlling spaces around ..
2017-07-19 15:02:50 +02:00
Dmitry Jemerov
31840fa328
Fix GradleLanguageFeatureQuickFixTest on Windows
2017-07-19 13:56:00 +02:00
Toshiaki Kameyama
366b9d1d79
KT-12195 Quickfix @JvmStatic on main() method in an object ( #1192 )
...
* Quickfix @JvmStatic on main() method in an object #KT-12195 Fixed
* Fixed #KT-12195
2017-07-19 13:37:12 +02:00
Toshiaki Kameyama
a8da79a130
KT-12504 Intention to make open class with only private constructors sealed ( #1193 )
...
* Intention to make open class with only private constructors sealed #KT-12504 Fixed
* Fixed #KT-12504
2017-07-19 13:36:36 +02:00
Nikolay Krasko
dd2a87dbf7
Rewrite test class to make it work on Windows
...
Stop using dummy file and assert result with assertEqualsToFile().
Previous version didn't work on Windows because of `\r`.
2017-07-19 13:25:17 +03:00
Nikolay Krasko
4e76975a52
Force OOB in accessors for properties without explicit type (KT-19062)
...
#KT-19062 Fixed
2017-07-19 12:45:06 +03:00
Nikolay Krasko
bcbff98382
Check OOB stays the same for string in super type constructor call
2017-07-19 12:45:06 +03:00
Pavel V. Talanov
5faad493b4
Catch and report exceptions from DependenciesResolver
2017-07-19 12:29:25 +03:00