Simon Ogorodnik
445c85f829
Support overriding module/library/sdk for particular light PsiClass
...
To support light R classes
2018-12-11 15:46:11 +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
Sergey Rostov
74f6c8ac5c
Move resources: remove includes from src to resources, include resource folder in custom build scripts
2018-11-30 15:01:02 +03:00
Mikhail Glukhikh
222939efe7
Create expect / actual refactoring: extract common part to utilities
2018-11-28 12:00:55 +03:00
Natalia Selezneva
2d2a073c55
Tests: replace immediate run with TransactionGuard.submitTransaction to fix write in write-unsafe context in tests
2018-11-28 11:16:26 +03:00
Toshiaki Kameyama
4abcd9a053
Make internal: don't suggest for @JvmField property inside companion object of interface #KT-27138 Fixed
2018-11-26 18:39:54 +03:00
Denis Zharkov
23c43cd124
Support retrieving class of enum entry in ultra-light classes
2018-11-26 11:36:43 +03:00
Denis Zharkov
7de8b4de4e
Support declarations returning object literals in ultra-light classes
2018-11-26 11:36:25 +03:00
Mikhail Glukhikh
f31428257d
Add a set of new tests for KT-27075 (create expected class) + some fixes
2018-11-21 15:13:01 +03:00
Mikhail Glukhikh
4ab4358d22
OverrideMemberChooserObject cleanup: remove forceAbstract (function gen)
2018-11-21 15:13:01 +03:00
Mikhail Glukhikh
2277dcc76f
Introduce quick-fix "create expected class / function / property"
...
#KT-27075 Fixed
2018-11-21 15:13:01 +03:00
Mikhail Glukhikh
46a5d76254
Create actual: add delegation to secondary constructor, if needed
...
#KT-26518 Fixed
2018-11-21 15:13:00 +03:00
Mikhail Glukhikh
90a2f70fd1
Use OverrideMemberChooserObject to generate also primary constructors
...
Relates to KT-27093 and similar problems
2018-11-21 15:13:00 +03:00
Mikhail Glukhikh
cd041cca71
Use OverrideMemberChooserObject to generate also abstract actual decls
...
Relates to KT-27093 and similar problems
2018-11-21 15:13:00 +03:00
Mikhail Glukhikh
3612c2983e
Use OverrideMemberChooserObject to generate actual decls in quick-fixes
...
This can fix a lot of issues related to inexact generation, in particular
#KT-27093 Fixed
2018-11-21 15:12:59 +03:00
Natalia Selezneva
b8086d9093
Do not start multiple background threads loading dependencies for different scripts
...
^KT-27743 Fixed
2018-11-20 08:51:03 +03:00
Ilya Chernikov
c05c46d50f
Convert to release coroutines (kotlinx-coroutines.1.0.1)
2018-11-17 19:24:34 +01:00
Natalia Selezneva
4661ab9961
Fix loading Kotlin Scripting options from kotlinScripting.xml
...
^KT-28046 Fixed
2018-11-13 08:47:19 +03:00
Natalia Selezneva
da71a35187
Update highlighting in UI thread
2018-11-13 08:47:19 +03:00
Natalia Selezneva
372daa0463
Do not attach script report if they didn't changed
2018-11-13 08:47:19 +03:00
Natalia Selezneva
ad43c2dc1c
Simplify logic in ScriptDependenciesLoader
2018-11-13 08:47:18 +03:00
Natalia Selezneva
18c9d968f9
Pass ResolveResult to ScriptNotificationPanel
2018-11-13 08:47:18 +03:00
Andrey Uskov
7b0c7ec400
Get rid of bunch 191 for build scripts (Continuation of "Replace bunch copies for some of build.gradle.kts files with a DSL")
2018-11-12 17:43:20 +03:00
Denis Zharkov
5f45ab1e2b
Support forcing usage of ultra-light classes in tests
2018-11-08 15:25:41 +03:00
Mikhail Glukhikh
fcfeb33501
Don't suggest "Implement as constructor parameters" in actual class
...
This applies if expect class has primary constructor declared
#KT-27791 Fixed
2018-11-07 11:56:55 +03:00
Natalia Selezneva
ccf49f9d1c
Update notifications in script file when script reports are attached (KT-24705)
...
^KT-24705 Fixed
2018-11-01 15:00:02 +03:00
Natalia Selezneva
ec14fdd94f
Do not attach script reports if 'reload dependencies' isn't pressed (KT-24706)
...
^KT-24706 Fixed
2018-11-01 14:58:52 +03:00
Natalia Selezneva
ffc7d302fb
Check that file is valid during reading/writing file attribute
2018-10-31 16:13:42 +03:00
peter
ebc998d710
add ultra-light classes/members that work without backend in simple cases
2018-10-25 18:22:33 +02:00
Nikolay Krasko
31b4db7f67
191: PersistentStateComponent and other declarations were moved to platform-api
2018-10-19 19:16:22 +03:00
Nikolay Krasko
210b5a8ca2
element utility is removed in 191, use Element constructor instead
2018-10-19 19:16:14 +03:00
Natalia Selezneva
6decd06b1b
Provide dependency on buildSrc module for .gradle.kts files
...
#KT-23603 Fixed
#KT-14862 Fixed
#KT-24623 Fixed
#KT-25354 Fixed
2018-10-19 16:36:57 +03:00
Valentin Kipyatkov
c63eb18b3c
Fixed nested class in companion object case
2018-10-16 08:41:43 +03:00
Valentin Kipyatkov
69f74b2a51
Fixed ShortenReferences for extension on companion object
2018-10-16 08:41:42 +03:00
Valentin Kipyatkov
d4e0f53583
Fixed ShortenReferences for the case of extension for object
2018-10-16 08:41:42 +03:00
Toshiaki Kameyama
9b49c23668
Move lambda out: don't report in delegation #KT-27584 Fixed
2018-10-15 19:52:10 +03:00
Natalia Selezneva
6596a6ba75
Allow to switch off script definitions
...
^KT-24465 Fixed
2018-10-15 11:32:48 +03:00
Natalia Selezneva
7826f44180
Save ScriptDefinitions order into kotlinScripting.xml
...
^KT-24465 In Progress
2018-10-15 11:32:48 +03:00
Natalia Selezneva
9ab4d727e9
Provide UI for changing the order of script definitions applicability
...
^KT-24465 In Progress
2018-10-15 11:32:47 +03:00
Natalia Selezneva
54f3982709
Add 'Kotlin Scripting' configuration tab
...
^KT-24465 In Progress
2018-10-15 11:32:47 +03:00
Natalia Selezneva
02c1ae62c3
Show notification if there are more than one script definition applicable for one script file (KT-24466)
...
^KT-24466 Fixed
2018-10-15 11:32:47 +03:00
Natalia Selezneva
28e43b0487
Indexes should be updated if there are new dependencies for script file
...
KT-26271 Fixed
2018-10-15 09:43:49 +03:00
Natalia Selezneva
c4aab8340b
Do not store script definition in psiFile
...
This may cause problems when definitions are reordered or switched off
KT-27375 Fixed
2018-10-15 09:43:49 +03:00
Toshiaki Kameyama
061aa63a73
"Make private" intention: fix some false positive cases
2018-10-11 17:20:46 +03:00
Toshiaki Kameyama
c65e246e02
Make private: don't suggest if property has @JvmField annotation
...
#KT-27138 Fixed
2018-10-11 17:20:13 +03:00
Mikhail Glukhikh
688fc386b6
Refactoring: introduce resolve to property descriptor
2018-10-11 17:14:17 +03:00
Mikhail Glukhikh
2e5ee242c7
Minor refactoring: implicitVisibility
2018-10-09 11:50:21 +03:00
Toshiaki Kameyama
3be5f2b843
"Redundant visibility": Fix false positive for overridden setter
...
#KT-26051 Fixed
2018-10-09 11:48:00 +03:00
Alexey Sedunov
0765cb9c62
Minor: Fix model access
2018-10-01 14:46:52 +03:00
Alexey Sedunov
99f63f2ebd
Configuration: Use model provider to access facets
...
Otherwise newly created Android project may get invalid SDK
until the reimport is performed
#KT-27193 Fixed
2018-10-01 13:55:16 +03:00