Vladimir Ilmov
ab3f9586b3
Suspend function calls highlighting added.
...
'If' highlighting fixed at settings sample area.
#KT-27496 Fixed
2019-11-14 08:07:56 +03:00
Vladimir Ilmov
46423443e9
'it' parameter highlighting fixed for chain usage.
...
#KT-31037 Fixed
2019-11-14 08:07:56 +03:00
igoriakovlev
cb11282183
Merge pull request #2516 from t-kameyama/KT-18539
...
KT-18539 Default implement fun/property text shouldn't contain scary comment
2019-11-13 19:33:44 +03:00
Igor Yakovlev
1ccda6a8d4
Add fast find usages for data class components
...
This commit add feature for disabling searching for data class ComponentN method and destruction declarations that could encrease usages search.
See KT-23278
2019-11-13 17:38:35 +03:00
Pavel Kirpichenkov
9a231bbbfa
Update trailing lambda quickfix, add tests
...
Case of incorrect call expression as the receiver of dot-qualified expression
was not handled properly.
Now the following order is used:
- If parent is a call expression or if this call is a receiver of parent
dot-qualified expression, parent must get last lambda as a new receiver;
- Otherwise, if parent is a dot-qualified expression, this call is in selector position.
Then grandparent is checked for being call or dot-qualified expression. If so, trailing
lambda must become grandparent's new receiver. If not, trailing nodes become standalone
epressions after parent.
- Otherwise, incorrect call expression is a standalone expression, so trailing nodes
may be lifted and put after it.
2019-11-13 11:00:01 +03:00
Pavel Kirpichenkov
f1934fa49d
Amend "Terminate preceding call with semicolon" quickfix
...
Quickfix wasn't aware of cases, when expression to be fixed
is a part of parent call expression or dot-qualified expression.
Incorrect position for extracting trailing lambdas led to broken
formatting.
#KT-34694 Fixed
2019-11-13 11:00:01 +03:00
Toshiaki Kameyama
4d9b19da82
Remove comments from function/property implementation template
...
#KT-18539 Fixed
2019-11-13 08:37:25 +09:00
igoriakovlev
633d1c9ea3
Merge pull request #2773 from t-kameyama/KT-28607
...
KT-28607 Extract/Introduce variable fails if caret is just after expression
2019-11-12 19:13:56 +03:00
Toshiaki Kameyama
e81fbe0a05
Folding: fold function with expression body (KT-6316)
...
#KT-6316 Fixed
2019-11-12 16:07:52 +03:00
Toshiaki Kameyama
58fb1dede3
Multiline string enter handler: do not insert 'trimIndent()' in const (KT-34785)
...
#KT-34785 Fixed
2019-11-12 16:07:52 +03:00
Toshiaki Kameyama
d04f88ff66
Extract/Introduce variable: fix to work correctly if caret is before right parenthesis or comment
...
#KT-28607 Fixed
2019-11-12 12:03:16 +09:00
Yan Zhulanow
ef8b3cb72a
Prefer Kotlin Junit test run configurations when possible (KT-33787)
2019-11-11 17:13:58 +09:00
Yan Zhulanow
987307cf92
Prefer Kotlin Gradle test run configurations when possible (KT-33787)
2019-11-11 17:13:58 +09:00
Vladimir Ilmov
214810ca01
Suspend test removed. Will be added later as part of appropriate ticket.
2019-11-11 00:57:52 +03:00
Dmitriy Novozhilov
be4ae5d7ba
Upgrade kotlin version in gradle configuration testdata
2019-11-10 11:46:22 +03:00
Vladimir Ilmov
e2b91cfec7
Properties with custom property declarations highlighting rule.
...
Added support for package and class-level properties with custom PD.
Java syntethic extensions are ignored from this rule.
#KT-30806 Fixed
2019-11-08 17:58:49 +03:00
Toshiaki Kameyama
39db76b2ab
"Indent raw string" intention: do not suggest in const
...
#KT-34784 Fixed
2019-11-07 14:57:56 +03:00
Leonid Startsev
24688f3503
Do not disable 'redundant visibility modifier' inspection completely in Explicit API mode.
...
Instead, disable it only for effectively public declarations.
Add tests for this IDE inspection.
2019-11-06 19:54:00 +03:00
Nikolay Krasko
5ca3698d13
Remute JoinLinesTestGenerated tests in 193 (KT-34408)
2019-11-05 20:13:30 +03:00
Nikolay Krasko
651a70ae54
Remute MultiLineStringIndentTestGenerated tests in 193 (KT-34566)
2019-11-05 20:13:30 +03:00
Dmitry Gridin
d321f4626f
Formatter: fix line break before OperationReference in elvis
...
#KT-22362 Fixed
2019-11-05 20:13:11 +07:00
Dmitry Gridin
247619c565
Formatter: fix line break between label and property
...
#KT-22273 Fixed
2019-11-05 20:13:11 +07:00
victor.petukhov
62d204f4d6
Support trailing comma
...
^KT-34743 Fixed
2019-11-01 19:40:20 +03:00
Nikolay Krasko
ffafd96f1b
Fix url for developers builds (KT-34246)
...
#KT-34246 Fixed
2019-11-01 12:25:44 +03:00
Andrey Uskov
fd2b75e39b
Fixed import of MPP project with single Android target
...
#KT-34639 Fixed
2019-10-31 21:39:18 +03:00
Dmitry Gridin
f641e2a139
RedundantRequireNotNullCallInspection: should use BodyResolveMode.PARTIAL_WITH_CFA instead of BodyResolveMode.PARTIAL
...
#KT-34672 Fixed
2019-10-31 19:24:37 +07:00
Dmitry Gridin
17429d333e
Create expect/actual should move cursor to target declaration
...
#KT-34411 Fixed
2019-10-31 19:24:36 +07:00
Toshiaki Kameyama
d75b938089
Formatter: don't format elvis operator in string template
...
#KT-34049 Fixed
2019-10-31 18:34:42 +07:00
Nikolay Krasko
b3e733ea4f
193: More mutes in 193 (SurroundWithTestGenerated, KT-34689, KT-34542, KT-34672)
2019-10-31 11:11:50 +03:00
Nikolay Krasko
f7c775a080
193: Mute tests for find usages in libraries in 193 (KT-34542)
2019-10-31 11:11:50 +03:00
Nikolay Krasko
201859be92
Mute RedundantRequireNotNullCall tests in 193 (KT-34672)
2019-10-31 11:11:49 +03:00
Vladimir Dolzhenko
4b2834c4a8
Provide incremental analysis of a file when it is applicable
...
#KT32868 Fixed
2019-10-30 21:41:29 +01:00
Alexander Podkhalyuzin
ddd25c703a
SmartPointers in Introduce Variable refactoring
...
It's often case, when psi can die after reparse, especially after
reformatting cases, SmartPointers are opposite to it, can survive
#KT-32601 Fixed
2019-10-30 18:08:14 +03:00
Natalia Selezneva
35e2c9eb59
Fix scripting tests in 193
...
^KT-34541 Fixed
2019-10-30 12:02:45 +03:00
Vladimir Dolzhenko
26255f8501
Added AllowNullableArrayArgsInMain (1.4+) language setting
2019-10-29 19:20:35 +01:00
Toshiaki Kameyama
68ea677cc4
Import quick fix: support extension iterator function
...
#KT-34303 Fixed
2019-10-29 18:35:14 +07:00
Dmitry Savvinov
3abfe59d75
Deduplicate incompatible actual descriptors
...
Otherwise, we might get false positive AMBIGUOUS_ACTUALS due to one and
the same descriptor appearing multiple times in a list
2019-10-29 14:28:41 +03:00
Dmitry Savvinov
9198b7a039
Add test on weakly incompatible actual in intermediate source-set
2019-10-29 14:28:41 +03:00
Dmitry Gridin
587b0de2b8
RemoveExplicitTypeIntention: fix false positive for type aliases
...
#KT-33902 Fixed
2019-10-29 17:26:59 +07:00
Dmitry Gridin
9c61f42121
ChangeVisibilityModifierIntention: should affect all actual/expect declarations
...
#KT-29737 Fixed
2019-10-29 17:26:34 +07:00
Dmitry Gridin
13e98e712e
RedundantLetInspection: fix false negative for references
...
#KT-34603 Fixed
2019-10-29 17:25:50 +07:00
Dmitry Gridin
5fc70f6cfd
RedundantLetInspection: fix false positive for inner lambda expression
...
#KT-25271 Fixed
2019-10-29 17:25:50 +07:00
Dmitry Gridin
5d16753285
ImportFix: add support for WRONG_NUMBER_OF_TYPE_ARGUMENTS
...
#KT-23834 Fixed
2019-10-29 17:25:17 +07:00
Dmitry Gridin
e14d589279
KotlinInternalInJavaInspection: fix false positive for java test module
...
#KT-17659 Fixed
2019-10-29 17:24:46 +07:00
Dmitry Gridin
81f3a98f49
Convert ConvertTwoComparisonsToRangeCheck intention to inspection
...
Relates to #KT-17310
2019-10-29 17:24:21 +07:00
Nikolay Krasko
810e1973f6
193: Mute multiline enter tests in 193 (KT-34566)
2019-10-28 14:06:06 +03:00
Nikolay Krasko
697d3a0e5a
193: Mute scripting test in 193 (KT-34541)
2019-10-28 14:06:06 +03:00
Nikolay Krasko
8563614b69
193: Mute navigation tests in 193 (KT-34542)
2019-10-28 14:06:05 +03:00
Yan Zhulanow
87e0a2d98c
Debugger: Fix evaluation of function declarations with expression bodies (KT-32704)
...
Before this commit, the substituted FunctionDescriptor didn't have a source element.
As a result, 'CodeFragmentParameterAnalyzer.isCodeFragmentDeclaration' failed to recognize such a descriptor as fragment-local, and it was erroneously captured.
2019-10-24 21:33:00 +09:00
Igor Yakovlev
2dfe3c568d
Copy refactoring update kotlin packages on target files
...
Fix #KT-18191
2019-10-23 16:44:18 +03:00