Pavel Kirpichenkov
b7e5d9faae
Update annotation rendering in diagnostics
...
Disable annotation rendering in default type and descriptor renderers.
Preserve annotations in Android and Serialization plugins.
Update error texts in ide tests.
Nullability annotations in Java descriptors are rendered with context-dependent renderer.
#KT-20258 Fixed
2019-10-04 11:18:45 +03:00
Dmitry Gridin
1b7b546249
Tests: fix some tests in quickfix
2019-10-03 15:23:05 +07:00
Toshiaki Kameyama
d86e87d35e
Add quickfix to change object to class
...
#KT-33586 Fixed
2019-10-02 19:42:30 +07:00
Toshiaki Kameyama
ac7e955d3e
Change parameter type quick fix: don't use qualified name
...
#KT-32012 Fixed
2019-10-02 18:41:54 +07:00
Roman Golyshev
c463fad3b7
KT-34000: Allow autoimport to suggest fixes in qualified expressions
...
- it is required to be able to autoimport extensions from objects,
not only from the top level
- use `substituteExtensionIfCallable` to handle generics for extension methods
- move finding expression receivers to the separate method, add `Receivers` value class to hold found receivers
- change `CallableDescriptor.isValidByReceiversFor` to return false
if explicit receiver is not required for the descriptor
- ^KT-34000 Fixed
2019-10-02 13:46:47 +03:00
Toshiaki Kameyama
b2d2165342
Add "Remove redundant label" quick fix for REDUNDANT_LABEL_WARNING
...
#KT-26431 Fixed
2019-10-02 16:40:13 +07:00
Pavel Kirpichenkov
6c8e829f19
Update diagnostics for trailing lambdas, add quickfix
...
Alternative message for errors, caused by unexpected lambda expression arguments on a new line.
Both diagnostic are reported, if multiple lambda expressions were passed to the call.
For other errors trailing lambda diagnostic overrides the original one.
Quickfix for erroneous trailing lambdas on a new line after call.
Fix separates lambda expression from previous call with semicolon.
All trailing lambda arguments become standalone lambda expressions.
2019-09-25 15:38:17 +03:00
Toshiaki Kameyama
7fcca71b4b
Replace with dot call quickfix: don't break formatting
...
#KT-25697 Fixed
2019-09-25 12:06:51 +07:00
Toshiaki Kameyama
44edd94fea
"Create member function" quick fix: do not add redundant semicolons after enum entry
...
#KT-14899 Fixed
2019-09-24 19:40:31 +07:00
Toshiaki Kameyama
0497f0cba4
"Create enum constant" quick fix: add before semicolon
...
#KT-33718 Fixed
2019-09-24 19:31:52 +07:00
Toshiaki Kameyama
30c41e6720
"Create type parameter from usage": don't suggest for not extension property
...
#KT-33300 Fixed
2019-09-24 19:28:40 +07:00
Toshiaki Kameyama
5b666ff33f
"Create type parameter from usage": don't remove backticks if necessary
...
#KT-33299 Fixed
2019-09-24 19:24:02 +07:00
Dmitry Gridin
1ee827bfc8
Import quick fix: support provideDelegate
...
#KT-28049 Fixed
2019-09-24 16:27:10 +07:00
Toshiaki Kameyama
79199260b9
Import quick fix: suggest for operator extension function called from name reference
...
#KT-28049 Fixed
2019-09-24 16:27:09 +07:00
Toshiaki Kameyama
d9d04fc556
"Create enum constant" quick fix: do not add redundant empty line
...
#KT-32981 Fixed
2019-09-24 13:23:06 +07:00
Nikolay Krasko
ee4ab967a4
Force resolve check for dispatch thread instead of isWriteAccessAllowed
...
isWriteAccessAllowed = dispatch thread + write lock
2019-09-23 16:54:35 +03:00
Pavel Kirpichenkov
55cb9561c2
Provide better error messages for read-only delegate
...
Split error reporting into two parts for incorrect and missing candidates.
Missing function error is not reported on provideDelegate.
Update error factory and default message for error.
Update error texts in quick fix test data.
#KT-16526 Fixed
2019-09-12 14:58:21 +03:00
Dmitry Gridin
c4a1101600
KtSimpleNameReference: add root prefix support to bindToFqName function
2019-09-05 18:01:23 +07:00
Igor Yakovlev
7b2f39530a
Fix invalid testdata for ConvertToScopeIntention applicability
2019-08-28 16:31:49 +03:00
Igor Yakovlev
1e72116a9c
Fix test data for intention tests
...
The ExtractDeclarationFromCurrentFileIntention applicability range was changed by commit 3b35c2d24 so the test data of several test comes invalid
2019-08-28 13:07:33 +03:00
Dereck Bridie
8f2a73b734
KT-28471: "Add initializer" quickfix initializes non-null variable with null
2019-08-23 14:15:08 +07:00
Dmitry Gridin
cf3b92d80e
CreateTypeParameterFromUsageFix: fix KNPE for type alias
...
#KT-33302 Fixed
#EA-120181 Fixed
2019-08-20 17:04:00 +07:00
Toshiaki Kameyama
3742993dea
Change to star projection: do not suggest when type paramer is generic type
...
#KT-30794 Fixed
2019-07-31 20:51:57 +03:00
Dmitry Gridin
c76ca988eb
KotlinCreateTestIntention: disallow intention for expect classes
...
#KT-26242 Fixed
2019-07-23 16:24:16 +03:00
Mikhail Glukhikh
5afa5de1d7
ReplaceWith: don't keep class literal & callable reference in inlining
...
#KT-30197 Fixed
2019-07-10 15:10:51 +03:00
Toshiaki Kameyama
64780293d3
"Redundant visibility modifier" inspection: don't report for property getter
...
#KT-32347 Fixed
2019-07-08 16:14:35 +03:00
Dmitry Gridin
074829bcea
Import: IDE should import class from root package
...
#KT-21422 Fixed
2019-07-02 11:54:38 +07:00
Toshiaki Kameyama
fb94cb141f
Add "Add constructor parameter" quick fix for NO_VALUE_FOR_PARAMETER
...
#KT-27353 Fixed
2019-06-27 19:19:25 +07:00
Toshiaki Kameyama
e3c9134904
Add "Convert to notNull delegate" quick fix for INAPPLICABLE_LATEINIT_MODIFIER
...
#KT-12515 Fixed
2019-06-26 17:07:32 +07:00
Dmitry Gridin
22a73bc09d
ChangeFunctionSignatureFix: fix wrong result
...
#KT-32001 Fixed
2019-06-19 18:52:53 +07:00
Toshiaki Kameyama
fbd992f8c7
Add intentions to convert lazy <--> ordinary property
...
#KT-23501 Fixed
2019-06-17 01:10:19 +03:00
Toshiaki Kameyama
0fad3fafa8
Replace deprecated symbol usage: fix message in case of generic parameter
...
#KT-8958 Fixed
2019-06-13 23:16:31 +03:00
Dmitry Gridin
74c177fd26
Convert FoldInitializerAndIfToElvisIntention to inspection and decrease severity to INFO
...
#KT-19643 Fixed
2019-06-07 12:23:54 +07:00
Dmitry Gridin
8b0b135112
Add new line after modifier list if last child is comment
...
#KT-30804 Fixed
2019-06-07 12:23:06 +07:00
Dmitry Gridin
21c10af1a7
Fix tests in quickfix
2019-05-31 18:00:56 +07:00
Dmitry Gridin
605ee041a9
Remove CreateTypeAliasFromUsageFix
...
Relates to #KT-31519
2019-05-31 18:00:56 +07:00
Dmitry Gridin
f5796a303d
Fix tests
...
Relates to #KT-30622
2019-05-29 11:00:28 +07:00
Matthew Runo
39f576d75c
Migrate RetentionPolicy arguments in deprecated Java quick-fix
...
#KT-29666 Fixed
2019-05-13 15:35:46 +03:00
Igor Yakovlev
bb071263b0
Fix JVMStatic annotation for UL-properties
2019-05-13 11:21:12 +03:00
Igor Yakovlev
0d31df7fb7
Fix invalid test data for static import quick fix
2019-05-13 11:21:12 +03:00
Dmitry Gridin
ff26acacf9
Optimize Imports shouldn't delete imports with unresolved parts
...
#KT-10512 Fixed
2019-05-06 18:12:39 +07:00
Dmitry Gridin
96ed33e357
Optimize Imports should remove unused import alias
...
#KT-17375 Fixed
2019-05-06 18:10:52 +07:00
Mikhail Zarechenskiy
d4d1648e1d
[IDE-NI-MIGRATE] Migrate QuickFix tests for new inference
2019-05-06 13:59:24 +03:00
Vyacheslav Gerasimov
2bc11cbd58
Remove as32 bunch files
2019-04-23 17:28:41 +03:00
Vyacheslav Gerasimov
952d2b6287
Remove 181 bunch files
2019-04-23 17:28:41 +03:00
Nikolay Krasko
b83d07ae9a
Assert new quick fixes don't use resolve
2019-04-22 15:11:10 +03:00
Toshiaki Kameyama
bf5b559923
Add function supertype: make abstract function in sealed class
...
#KT-30769 Fixed
2019-04-22 16:11:59 +07:00
Toshiaki Kameyama
f2c7b6b8c4
Convert to anonymous object: don't remove type arguments
...
#KT-30208 Fixed
2019-04-22 16:09:53 +07:00
Toshiaki Kameyama
607325c6e5
Add "Round using roundToInt/roundToLong" quick fix
...
#KT-30389 Fixed
2019-04-11 18:58:05 +03:00
Nikolay Krasko
a9beb04cb7
Fix RemoveExpressionTargetFix and don't remove the whole annotation (KT-25574)
2019-04-09 11:47:29 +03:00