Toshiaki Kameyama
343af60cb4
Add intention to expand boolean expression
...
#KT-38597 Fixed
2020-06-02 23:52:06 +03:00
Toshiaki Kameyama
21d6d50241
Create class quick fix: suggest on supertype entry
...
#KT-32511 Fixed
2020-05-27 02:38:41 +09:00
Toshiaki Kameyama
4973d3c359
"Create enum constant" quick fix: handle trailing comman correctly
...
#KT-36461 Fixed
#KT-36462 Fixed
2020-05-27 02:38:41 +09:00
Dmitry Gridin
ee0b7426c4
KotlinFunctionCallUsage: fix psi tree
...
#KT-38632
2020-05-07 12:36:44 +00:00
Dmitry Gridin
11a3482970
tests: apply official code style
...
#KT-38632 Fixed
2020-05-07 12:36:44 +00:00
Toshiaki Kameyama
eff57001dc
Create secondary constructor: fill 'this()' arguments
...
#KT-11865 Fixed
2020-04-16 17:04:09 +02:00
Dmitry Gridin
5827be4182
Tests: fix test for AS 3.6
2020-02-27 15:39:27 +07:00
Vladimir Dolzhenko
afd71d3d19
Adjust tests due to "Remove argument" quick fix for TOO_MANY_ARGUMENTS
...
Relates to #KT-34026
Relates to #KT-34332
2020-02-25 09:23:46 +01:00
Toshiaki Kameyama
d54a35ef56
Add "Remove argument" quick fix for TOO_MANY_ARGUMENTS
...
#KT-34026 Fixed
#KT-34332 Fixed
2020-02-23 10:17:10 +01:00
Pavel Kirpichenkov
fda8d7de8b
[IDEA-TESTS] Specify language version in feature-dependent tests
...
Some quickfixes are relying on diagnostics, that won't be reported
with new language features enabled.
`MixedNamedArgumentsInTheirOwnPosition`
`AllowBreakAndContinueInsideWhen`
2020-02-17 10:56:46 +03:00
Ilya Kirillov
0fe5694cb7
Do not render redundant Nullable annotations when generating declarations
...
#KT-36321 fixed
2020-02-11 13:48:58 +03:00
Dmitry Gridin
6c439ae85a
Create TrailingCommaIntention
...
#KT-34744
2020-02-04 21:34:53 +07:00
Toshiaki Kameyama
4d9b19da82
Remove comments from function/property implementation template
...
#KT-18539 Fixed
2019-11-13 08:37:25 +09:00
victor.petukhov
62d204f4d6
Support trailing comma
...
^KT-34743 Fixed
2019-11-01 19:40:20 +03:00
Yan Zhulanow
d153aa87a8
Fix EA-126019: Handle 'null' PsiType as nullable Any in "Create" actions
2019-10-08 19:13:56 +09:00
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
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
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
Igor Yakovlev
7b2f39530a
Fix invalid testdata for ConvertToScopeIntention applicability
2019-08-28 16:31:49 +03: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
fbd992f8c7
Add intentions to convert lazy <--> ordinary property
...
#KT-23501 Fixed
2019-06-17 01:10:19 +03:00
Dmitry Gridin
605ee041a9
Remove CreateTypeAliasFromUsageFix
...
Relates to #KT-31519
2019-05-31 18:00:56 +07:00
Mikhail Zarechenskiy
d4d1648e1d
[IDE-NI-MIGRATE] Migrate QuickFix tests for new inference
2019-05-06 13:59:24 +03:00
Toshiaki Kameyama
607325c6e5
Add "Round using roundToInt/roundToLong" quick fix
...
#KT-30389 Fixed
2019-04-11 18:58:05 +03:00
Dmitry Gridin
d333a0ad4e
Allow "Create class" action in return statement
...
#KT-22137 Fixed
2019-03-15 17:33:14 +07:00
Dmitry Gridin
220cb95b85
Move caret to class name after creating it from "CreateFromUsage" action
...
Relates to #KT-24631
2019-03-15 17:27:06 +07:00
Dmitry Gridin
c89d1af9fa
Improve Create property from Usage
...
Place generated property next to other properties
#KT-14886 Fixed
2019-02-27 00:07:55 +03:00
Mikhail Glukhikh
c084eefb65
Fix a bunch of IDE quick-fix tests (related to "convert to run/...")
...
These actions became available more often some days ago
2019-02-25 10:37:46 +03:00
Dmitry Gridin
147521d6cb
Add intention to introduce import alias
...
#KT-16118 Fixed
#KT-30007 Fixed
2019-02-21 12:25:09 +03:00
Mikhail Glukhikh
6e10235208
Make "Add name(s) to call arguments" available for generic arguments
...
#KT-15550 Fixed
2018-10-27 12:13:42 +03:00
Mikhail Glukhikh
4a3af36909
Remove SHOULD_FAIL_WITH from testQuotesName thus fixing it
2018-09-18 11:50:37 +03:00
Mikhail Glukhikh
0f8b46b7d7
Add language version 1.2 to quick-fix tests for add explicit import
...
This fixes tests for KT-21515
2018-09-18 11:50:33 +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
Mikhail Glukhikh
9a9e703e80
Do not suggest "create abstract property" inside annotation
2018-08-17 18:16:07 +03:00
Mikhail Glukhikh
04675b4446
Do not suggest "create local variable" inside primary constructor
...
#KT-26158 Fixed
EA-99300 Fixed
2018-08-17 18:15:47 +03:00
Alexey Sedunov
1f59ff1bd4
Minor: Fix test data
2018-08-08 15:32:00 +03:00
Mikhail Glukhikh
d7317c58e9
Move "Add test library to classpath" to irrelevant action list
...
This prevents inconsistencies like "Add JUnit 5.0" / "Add JUnit 5.2"
Should fix one relevant test
2018-08-06 19:04:12 +03:00
Vyacheslav Gerasimov
a2bf417d75
Remove 172 bunchset
2018-08-02 19:32: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
Alexey Sedunov
610cc3867b
Create Class from Usage: Filter out usages in super type entry list
...
#KT-22918 Fixed
2018-05-25 23:03:26 +03:00
Toshiaki Kameyama
5564102a3e
Add "Create secondary constructor" quick fix on NONE_APPLICABLE error #KT-22371 Fixed
2018-05-18 18:11:13 +03:00
Alexey Sedunov
a5a13b74f5
Create from Usage: Support smart casts on explicit receivers
...
#KT-24069 Fixed
2018-05-11 16:05:20 +03:00
Alexey Sedunov
a4a10c7ba4
Create from Usage: Fix generation of extensions with nullable receiver
...
#KT-23796 Fixed
2018-05-11 16:05:19 +03:00
Vyacheslav Gerasimov
8d3f71a04f
172: Revert "Quick Fixes: Support cross-language "Create from Usage" with Kotlin target"
...
This reverts commit 908bf71
2018-04-11 16:28:09 +03:00
Nikolay Krasko
a7d705b5d8
172: Revert "Fix inAnnotation test in 173 branch"
...
This reverts commit 955842f2009a2c5aa9ac955340696bd7e1a2651d.
2018-04-11 16:27:58 +03:00
Alexey Sedunov
96de29dfcb
Create from Usage: Support accessors for local delegated properties
...
#KT-19730 Fixed
2018-03-06 15:15:40 +03:00
Dmitry Savvinov
d570b863ce
Introduce deprecation of companion objects nested classes
...
Introdude deprecation as per KT-21515. Warning is reported on type
usage, that soon will became invisible. Quickfix by adding explicit
import is added.
Idea behind implementation is to mark scopes that are deprecated (see
ClassResolutionScopesSupport).
Then, during walk along hierarchy of scopes, look at deprecation status
of the scope that has provided this classifier.
Note that we also have to check if there are *some* non-deprecated
visibility paths (because we can see classifier by two paths, e.g. if
we've added explicit import) -- then this type reference shouldn't be
treated as deprecated.
2018-02-21 16:04:49 +03:00