Tianyu Geng
8158a07063
FIR IDE: add quickfix for NESTED_CLASS_NOT_ALLOWED
2021-03-05 13:27:36 +01:00
Tianyu Geng
bca393bd5c
FIR IDE: Add quickfix for PRIVATE_SETTER_FOR_(OPEN|ABSTRACT)_PROPERTY
2021-03-01 19:30:31 +01:00
Tianyu Geng
aec498a4ea
Add quickfixes for NON_FINAL_MEMBER_IN_FINAL_CLASS
2021-02-24 15:56:35 +01:00
Ilya Kirillov
d42cc219bf
FIR IDE: fix collecting diagnostics for raanalysable non-toplevel declarations
2021-02-12 15:25:14 +01:00
Ilya Kirillov
d72a2d39da
FIR IDE: ignore not passing quickfixes tests
2021-02-09 17:15:31 +01:00
Dmitriy Novozhilov
17230397e6
[Test] Update or drop some IDE tests about experimental coroutines
2021-01-28 13:19:34 +03:00
Dmitry Gridin
a72cdeabb4
fix testData
...
^KT-40861
2020-10-27 18:58:48 +07:00
Dmitry Savvinov
f50851a982
Fix testdata after migrating to NewKotlinTypeCheckerImpl in OverrideResolver
...
- In kt10409 both 'pipe'-declarations contain error type.
NewKotlinTypeChecker in OverrideResolver considers error types as equal,
thus they are matched as bound declarations, thus 'IterablePipeline'
isn't considered to contain abstract member, thus no suggestion to add
abstract modifier.
Because initially test was covering purely technical issue of working
with error types, instead of removing it completely the additional
abstract member has been added
- in kt10808 we don't add explicit type anymore because
'noTypeInference' is false, because both expected type and actual type
are error-types, and KotlinIntroduceVariableHandler explicitly uses type
checker with 'errorTypesEqualToAnything=false'.
Also, this change might be ultimately seen as small improvement, because
if one extracts something with error type, they would certainly prefer
it to have a proper type as soon as errors are resolved (i.e. additional
code/imports written), rather than having a useless Any-type.
2020-10-09 13:44:06 +03:00
Toshiaki Kameyama
b9a220c624
AddSuspendModifierFix: suggest in inline lambda
...
#KT-38139 Fixed
2020-07-16 18:49:29 +03:00
Toshiaki Kameyama
cea879cbd5
"Make containing function suspend" quickfix: don't suggest for anonymous function
...
#KT-38948 Fixed
2020-06-01 21:42:02 +09:00
Roman Golyshev
1dded486f1
i18n: fix bundle messages/testData messages where necessary
2020-03-16 18:40:47 +07:00
Dmitry Gridin
6c439ae85a
Create TrailingCommaIntention
...
#KT-34744
2020-02-04 21:34:53 +07:00
Toshiaki Kameyama
716036a000
RemoveModifierFix: fix message for 'companion object'
...
#KT-35604 Fixed
2019-12-27 15:38:32 +03:00
Toshiaki Kameyama
fbd992f8c7
Add intentions to convert lazy <--> ordinary property
...
#KT-23501 Fixed
2019-06-17 01:10:19 +03: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
Toshiaki Kameyama
f861b10798
Add "Add getter/setter" quick fix for uninitialized property
...
#KT-30078 Fixed
2019-04-04 11:10:39 +07:00
Vadim Brilyantov
0ec3d15218
#KT-19924: Fix usability issue with extract declaration from file intention
...
Fix ExtractDeclaration intention name in tests
Fix ExtractDeclaration intention folder and description to avoid "not found Dir URL" exception
2019-02-26 15:35:15 +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
Toshiaki Kameyama
5e7d974767
"Make open": Fix false positive for data class inheritance #KT-27354 Fixed
2018-10-03 08:53:03 +03:00
Mikhail Zarechenskiy
2e88f5c47d
Prohibit operator mod as declaration and calls that resolved via it
...
#KT-24197 Fixed
2018-07-02 16:12:36 +03:00
Toshiaki Kameyama
1e31d24e9b
Add "Remove 'const'" quickfix for TYPE_CANT_BE_USED_FOR_CONST_VAL
...
So #KT-24815 Fixed
2018-06-19 12:48:13 +03:00
Toshiaki Kameyama
184651d366
Do not suggest "add inner" quick fix for interfaces etc. #KT-18396 Fixed
2017-12-29 16:43:47 +03:00
Dmitry Jemerov
43ef113b7a
Correctly apply annotation wrap before modifier keyword
...
#KT-20314 Fixed
2017-12-22 10:35:22 +01:00
Mikhail Glukhikh
7358980cbc
Add inspection to detect non-const vals used as Java annotation args
...
So #KT-20615 Fixed
2017-12-15 13:31:41 +03:00
Alexey Sedunov
aabe23d410
Minor: Fix coroutine package name in quick fix tests
2017-10-02 18:14:04 +03:00
Toshiaki Kameyama
f8cf0f2ab9
Misleading quick fix message for an 'open' modifier on an interface member #KT-18738 Fixed
2017-07-18 18:59:22 +09:00
Mikhail Zarechenskiy
ee173077c0
Simplify diagnostic when there are wrong number of type arguments
...
#KT-12767 Fixed
2017-07-12 14:37:27 +03:00
Dmitry Petrov
c83b764c73
Update testData after changes in diagnostics
2017-05-26 13:58:46 +03:00
Dmitry Petrov
7979663e6c
Update testData for changed diagnostic messages
2017-05-26 13:58:46 +03:00
Mikhail Glukhikh
a73cf0e1fe
Don't suggest make object container open #KT-11003 Fixed
2017-05-19 20:36:24 +03:00
Kirill Rakhman
cd07aea5e3
Add quickfix for adding 'lateinit'
...
Fixes #KT-17650
2017-05-05 11:09:07 +03:00
Dmitry Jemerov
79c814636e
Convert AddOpenToClassDeclarationTest to regular multifile quickfix test
2017-03-27 19:48:52 +02:00
Dmitry Jemerov
e2f75463d7
Rewrite AbstractQuickFixTest based on light fixture test case
...
Don't reconfigure runtime before every test. For consistency,
mark tests that require the runtime with directives instead of relying
on test file names.
2017-03-27 19:48:43 +02:00
Denis Zharkov
4ee818addf
Add callee name to diagnostic about illegal suspension call
...
#KT-15938 Fixed
2017-02-08 11:07:26 +03:00
Mikhail Glukhikh
6db698f5aa
Correct order added for 'suspend' modifier #KT-16104 Fixed
2017-02-03 18:24:47 +03:00
Mikhail Glukhikh
9fdf16e5d7
Quick-fix to add 'suspend' to the receiver of startCoroutine / createCoroutine #KT-15738 Fixed
2017-01-27 23:39:04 +03:00
Mikhail Glukhikh
bfb31a465f
Quick-fix to add 'suspend' to the containing function #KT-15800 Fixed
2017-01-24 15:17:55 +03:00
Alexey Sedunov
534a773816
Intentions: Implement intention which converts object literal to class
...
#KT-15056 Fixed
2017-01-10 21:16:12 +03:00
Alexey Sedunov
6b57a3e338
Intentions: Implement intention which rename file according to the top-level class name
...
#KT-15068 Fixed
2017-01-10 21:16:08 +03:00
Mikhail Zarechenskiy
40ff7c6e33
Fix test data
2016-12-09 21:08:29 +03:00
Mikhail Zarechenskiy
373c1be7e4
Add quick fixes for mod/rem migration
...
- Remove 'operator' modifier
- Rename operator 'mod/modAssign' to 'rem/remAssign'
2016-12-09 17:01:42 +03:00
Mikhail Glukhikh
32d11c35a4
KT-12297 related: make not open quick-fix for REDUNDANT_OPEN_IN_INTERFACE
2016-09-16 16:25:57 +03:00
Alexander Udalov
83000c50ff
Remove quotes around visibility in invisible member diagnostic
2016-07-22 18:13:41 +03:00
Alexander Udalov
70a994b135
Drop resolution of deprecated plus/minus/get/set conventions
...
Also remove the corresponding quick fix
2016-06-29 19:21:05 +03:00
Pavel V. Talanov
7de171efda
Improve message clarity for WRONG_NUMBER_OF_TYPE_ARGUMENTS diagnostics
...
#KT-9887 Fixed
2016-03-31 16:06:48 +03:00
Alexander Udalov
8316953259
Fix double quotes in diagnostic messages
...
For diagnostics without any parameters, the given text is simply rendered as a
String, so no symbols should be escaped.
For diagnostics with parameters, the format in java.text.MessageFormat is used,
so one single quote is erased and two single quotes become one single quote in
the rendered text.
2016-03-30 21:41:43 +03:00
Mikhail Glukhikh
bace881463
Quick fix to make var with private setter final #KT-10859 Fixed
2016-03-17 18:18:07 +03:00
Pavel V. Talanov
a4c005fefd
Update existing test data depending on diagnostic parameter rendering
2016-02-26 14:45:11 +03:00
Alexey Sedunov
cac479102a
Remove Supertype Quick-Fix: Convert to Kotlin & refactor
2016-01-13 17:47:16 +03:00
Alexey Sedunov
b8a8f1638f
Change Visibility Modifier Quick-Fix: Convert to Kotlin & refactor
2016-01-13 17:47:06 +03:00