Dereck Bridie
7da52b2df5
Fix KT-13962 with kotlin.collections constructors
2019-04-08 14:53:27 +03:00
Dmitry Gridin
b45aeda711
Fix caret after "Introduce import alias" if invoke in import directive
...
#KT-30833 Fixed
2019-04-08 11:25:32 +07:00
Austaon
0e716fd528
KT 13962: Intention to replace Java collection constructor calls with function calls from stdlib (ArrayList() → arrayListOf())
2019-04-05 18:19:26 +03:00
Toshiaki Kameyama
f861b10798
Add "Add getter/setter" quick fix for uninitialized property
...
#KT-30078 Fixed
2019-04-04 11:10:39 +07:00
Dmitry Gridin
3ca1c7b55d
"Convert property to function" intention should warn about the property overloads at child class constructor
...
#KT-29764 Fixed
2019-04-02 22:53:56 +07:00
Burak Eregar
9ab54d0e44
Fix: String templates suggest removing curly braces for backtick escaped identifiers
2019-04-02 11:48:47 +03:00
Toshiaki Kameyama
bd3d5a9dbb
Use withIndex intention: fix false positive for destructuring declaration
...
#KT-30341 Fixed
2019-03-21 10:59:01 +03:00
Dmitry Gridin
43be01bbc8
Fix false positive 'Introduce import alias' on this/super
2019-03-19 16:42:41 +07:00
Dmitry Gridin
ccb1ae13ea
Fix local conflicts in 'Introduce import alias'
2019-03-19 16:42:41 +07:00
Dmitry Gridin
9659453351
Improve: intention "Introduce Import Alias" should suggest new names for the new alias
...
#KT-30456 Fixed
2019-03-19 16:42:41 +07:00
Toshiaki Kameyama
8728bc0820
Convert to scope function: also convert binary expression
...
#KT-30228 Fixed
2019-03-18 11:18:23 +03:00
Toshiaki Kameyama
e340af51df
Add "Rename class to containing file name" intention
...
#KT-25262 Fixed
2019-03-18 11:09:09 +03:00
Toshiaki Kameyama
39016594b1
Replace return with 'if'/'when': don't drop return label
...
#KT-30414 Fixed
2019-03-18 09:46:10 +03:00
Dmitry Gridin
6b8547f57b
Fix "Specify type explicitly" intention with generic type
...
#KT-27641 Fixed
#KT-30252 Fixed
2019-03-11 23:38:19 +07:00
Dmitry Gridin
6ba0a182bb
Fix false positive "Insert explicit type arguments" intention
...
#KT-16139 Fixed
2019-03-09 14:01:04 +07:00
Toshiaki Kameyama
6b5ba272a0
Import members from: suggest on type reference
...
#KT-29927 Fixed
2019-03-05 18:19:33 +03:00
Dmitry Gridin
5927032143
Fix "Introduce import alias" on extensions
...
#KT-30214 Fixed
2019-03-04 10:15:52 +03:00
Toshiaki Kameyama
240ff08069
Specify type: escape with backticks if need
...
#KT-29677 Fixed
2019-03-01 16:43:02 +03:00
Toshiaki Kameyama
87dc1a035b
Convert property initializer to getter: suggest on property name
...
#KT-29344 Fixed
2019-03-01 11:37:42 +03:00
Toshiaki Kameyama
e0aeb8f7ec
Remove redundant let: rename invoke call
...
#KT-29556 Fixed
2019-03-01 11:31:07 +03:00
Dmitry Gridin
41f3316981
Fix caret position in "Convert function to property" intention
...
#KT-19944 Fixed
2019-02-28 15:59:50 +03:00
Toshiaki Kameyama
6ca22fbf34
Remove redundant let: do not report for function stored in variable call
...
#KT-30082 Fixed
2019-02-28 10:44:05 +03: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
5f7dee4194
Convert to scope function: enable on single function call
...
#KT-29099 Fixed
2019-02-19 10:41:20 +03:00
Toshiaki Kameyama
cd13648906
Object literal can be converted to lambda: report if "return" is only one and is in the last statement
...
#KT-29763 Fixed
2019-02-15 13:52:19 +03:00
Dmitry Gridin
5089df2441
Fix convert unary operator to function call
...
#KT-25501 Fixed
2019-02-12 11:57:40 +03:00
Toshiaki Kameyama
d6e21b1c21
Convert to secondary constructor: do not suggest when property has val/var and no name
...
#KT-29056 Fixed
2019-02-11 10:04:33 +03:00
Toshiaki Kameyama
6f7830a4b2
Make public: reformat after removing primary constructor visibility modifier
...
#KT-29444 Fixed
2019-02-09 02:56:14 +03:00
Timo Obereder
ff4279762e
Fix comment placement on if/else in if or when condition #KT-28224 Fixed
2019-02-05 14:07:28 +03:00
Toshiaki Kameyama
9c468ef2aa
Convert member to extension: preserve visibility
...
#KT-29248 Fixed
2019-02-05 11:22:02 +03:00
Toshiaki Kameyama
bd467f39d6
Convert to scope function: Also convert call expression
...
#KT-28698 Fixed
2019-02-01 12:13:05 +03:00
Toshiaki Kameyama
f15c8f78fa
Convert to scope function: refactor
2019-02-01 12:13:05 +03:00
Toshiaki Kameyama
98810ba750
Add intention to replace snake-case test function name with a space-separated
...
#KT-27143 Fixed
2019-02-01 11:07:00 +03:00
Felix Guo
185d0c6165
Remove unnecessary constructor keyword intention (KT-29143)
...
#KT-29143 Fixed
2019-01-24 14:32:21 +03:00
Toshiaki Kameyama
622fd8d8cf
Add intention to add/remove underscores in numeric literal
...
#KT-28953 Fixed
2019-01-24 09:52:21 +03:00
Toshiaki Kameyama
225a6ea288
Convert parameter to receiver: don't remove 'override' and 'vararg' when function has 'vararg' parameter
...
#KT-28851 Fixed
2019-01-24 09:49:53 +03:00
Mikhail Glukhikh
40b88d874e
Fix broken test (KT-18715)
2019-01-17 10:41:31 +03:00
Felix Guo
a71bb70901
KT-18715: don't swallow comments for if->elvis
...
Adds a CommentSaver to the IfThenToElvis intention that will save and
restore comments when converting an if expression to elvis expression.
2019-01-16 09:41:06 +03:00
Mikhail Glukhikh
18ea86cfb4
Remove parentheses: add semicolon before lambda if necessary
...
In 2010b175 , it was suggested just not to suggest parentheses removal.
However, it contradicts with behaviour of "Replace contains" which
adds semicolon before lambda in this case. So in this commit I made
behaviour of remove parentheses the same.
This commit reverts production part of 2010b175
Fixes failing test of "replace contains"
2019-01-10 10:45:46 +03:00
Toshiaki Kameyama
2010b1756e
Remove unnecessary parentheses: don't suggest when parentheses are for lambda
2019-01-09 12:16:01 +03:00
Nicolay Mitropolsky
41b6bcf8c3
Converting object literal to class allows to choose a name (KT-19254)
2019-01-09 11:12:47 +03:00
Marcin Moskala
686cfa6fd2
Fix common misspellings
2018-12-21 16:13:42 +03:00
Mikhail Glukhikh
8f821c9ef5
Merge pull request #2033 from t-kameyama/KT-28699
...
KT-28699 Add "Convert to also" intention
2018-12-18 09:37:34 +03:00
Toshiaki Kameyama
ea0f9d124d
Split property declaration: don't add parentheses for anonymous function
...
#KT-7593 Fixed
2018-12-18 09:28:57 +03:00
Toshiaki Kameyama
6a4c6eacd7
Add "Convert to also" intention
...
#KT-28699 Fixed
2018-12-18 12:21:56 +09:00
Nikolay Krasko
5fb90a8a81
Better caret position after Insert curly braces around variable (KT-28739)
...
Introduce helper class and move caret to it's original position.
#KT-28739 Fixed
2018-12-13 12:36:01 +03:00
Toshiaki Kameyama
9ee9965c7a
Convrt anonymous function to lambda: fix incorrectly conversion
...
#KT-28618
2018-12-06 09:28:56 +03:00
Mikhail Glukhikh
4e1d8fcfd0
Allow to convert nullable local / top to late-init since version 1.2
...
Enhancement for KT-12743
2018-11-29 19:58:11 +03:00
Toshiaki Kameyama
4cf266e99f
Add intentions to convert nullable <--> lateinit var #KT-12743 Fixed
2018-11-29 19:45:10 +03:00