shiraji
06dad5f45b
Surround with try/catch should generate more Kotlin-style code (KT-5435)
...
#KT-5435 Fixed
2018-12-13 12:36:02 +03:00
Pavel V. Talanov
47935c19e6
Show line markers for JUnit test methods in abstract class
...
#KT-27977 Fixed
2018-11-09 15:51:34 +01:00
Toshiaki Kameyama
6971ca44e7
Generate equals and hashCode: enable for data classes #KT-17502 Fixed
2018-11-08 12:51:29 +03:00
technoir
6bb5e028a5
Multiple templates with concatenation generator should add spaces after commas (KT-27954)
2018-11-08 11:21:11 +03:00
Alexey Sedunov
b441c76313
Generate equals/hashCode(): Support content equality from stdlib
...
#KT-22361 Fixed
2018-09-06 14:28:53 +03:00
Alexey Sedunov
26c02cd8bb
Move Left/Right: Support type constraints
...
#KT-26525 Fixed
2018-09-06 14:28:52 +03:00
Toshiaki Kameyama
f1dc09f839
Add postfix template for the spread operator #KT-26249 Fixed
2018-08-22 10:56:39 +03:00
Denis Zharkov
b38a9ee386
Fix test data for postfix templates test
...
In this tests there are two variants:
- One extracts the lambda
- And another extracts the whole call
For some reason, the order of completion variants has been changed in 182
2018-08-10 18:40:44 +07:00
Denis Zharkov
375f3c0769
Fix type-intersection-related test data
...
The order of types enumeration has been changed recently:
previously it was collected at first from a child and then from
its parent, but now it's being collected in order of appearance
2018-08-10 15:40:50 +07:00
Nikolay Krasko
759ffafb0a
Render flexible types with enhancement as enhanced in IDE (KT-25622)
...
Main targets for the fix is completion, parameters info, inlay hints and
override/implement.
Other IDE functions might be affected.
#KT-24911 Fixed
#KT-25616 Fixed
#KT-25622 Fixed
2018-08-03 16:00:09 +03:00
Vyacheslav Gerasimov
a2bf417d75
Remove 172 bunchset
2018-08-02 19:32:18 +03:00
Denis Zharkov
0d00eb7de3
Add postfix template for listOf/setOf/etc
...
#KT-25239 Fixed
2018-07-06 10:06:56 +03:00
Alexey Sedunov
694997651a
Override/Implement: Fix processing of unresolved types
...
#KT-17350 Fixed
2018-06-19 12:22:40 +03:00
Alexey Sedunov
5f87e84966
Override/Implement: Do not insert super-call into extension body
...
Such super-calls are not are supported yet
#KT-4311 Fixed
2018-06-19 12:22:39 +03:00
Alexey Sedunov
c49eede054
Generate hashCode()/equals(): Support deep array equality
...
#KT-19102 Fixed
2018-06-19 12:22:39 +03:00
Mikhail Zarechenskiy
1b809413d2
[NI] Fix updated type for lambda, use original type for substitution
...
#KT-24367 Fixed
2018-05-21 17:56:11 +03:00
Alexey Sedunov
c7e72af170
Override/Implement Members: Copy @Experimental-annotated annotations
...
#KT-22922 Fixed
2018-04-13 20:23:06 +03:00
Nikolay Krasko
1010c1285a
172: Revert "RecursiveMethodCallMarkerInfo and SuspendCallMarkerInfo forced to target Leaf-elements"
...
This reverts commit c78ec71e17c09ddb1094e44c84d9a1b92a3b509f.
2018-04-11 16:28:00 +03:00
Toshiaki Kameyama
9d6b36c249
KT-20282 'Move statement up' works incorrectly for statement after 'finally' block if 'try' block contains closure
2018-03-20 20:39:17 +03:00
Toshiaki Kameyama
c1f43558b9
Unwrap: function parameter (KT-14788)
...
#KT-14788 Fixed
2018-03-14 21:16:58 +03:00
Toshiaki Kameyama
3f96e1dabc
Move statement up/down fails for multiline declarations with lambdas (KT-21013)
...
#KT-21013 Fixed
2018-03-05 16:10:59 +03:00
Nikolay Krasko
866129984e
Expression can be parenthesized on replace with if (KT-22874, EA-91186)
...
#KT-22874 Fixed
2018-02-16 13:29:53 +03:00
Pavel V. Talanov
229184dd78
Dsl line marker: provide simple tooltip
...
Test dsl line marker
2018-02-08 15:36:42 +01:00
Nikolay Krasko
d1e6a61197
Fix testInGlobalPropertyWithGetter test in 173 branch
...
Workaround for IDEA-185462. It was introduced in 173 idea and
fixed in 181.
2018-02-03 00:15:45 +03:00
Kirill Rakhman
8bc020f31b
Fix modifier order in generated overriden functions
...
Fixes #KT-21600
2018-01-16 15:42:02 +01:00
Nicolay Mitropolsky
dd45780de9
RecursiveMethodCallMarkerInfo and SuspendCallMarkerInfo forced to target Leaf-elements
...
because of restriction added in IDEA 173
2018-01-12 13:53:45 +03:00
Dmitry Jemerov
86c10b635a
Initial implementation of method separators
...
#KT-13029 Fixed
2018-01-10 13:17:33 +01:00
Alexey Sedunov
bcdb46653c
Line Markers: Detect recursive calls of companion invoke() member
...
#KT-21076 Fixed
2017-11-27 21:19:23 +03:00
Alexey Sedunov
4cc1e22a5a
Misc: Support light-methodless members in overrider search
...
In particular, support line markers for expect-class members
and navigation to expect-class members from corresponding base members
2017-10-24 15:43:51 +03:00
Mikhael Bogdanov
232d1bd9ef
Switch warning to error for java-default method calls within 1.6 target
...
#KT-15825 Fixed
(cherry picked from commit 9b29ebb)
2017-10-11 19:20:24 +03:00
Kirill Rakhman
08103d1cb4
Implement "Surround with try/catch(/finally)" and "Surround with if/else" for expressions
...
Fixes #KT-14175
Fixes #KT-19782
2017-09-12 18:27:47 +03:00
Mikhail Glukhikh
dafb52a44a
CodeBlockModification...: count file as changed when no changed elements
...
It means that root PSI (KtFile itself) is changed
So #KT-19726 Fixed
So #KT-20157 Fixed
2017-09-12 17:28:32 +03:00
Dmitry Jemerov
d6a9a49968
Disable tracking of Kotlin files by Java OOCB listener
2017-08-09 13:26:09 +02:00
Nikolay Krasko
8d226594ff
Put comments and whitespaces under body in script files
...
It's more consistent to normal function body for IDE.
Doc comments in file beginning are now sticks to declarations
correctly.
Moving declarations at the end of scripts is fixed
2017-08-07 12:17:17 +03:00
Nikolay Krasko
6194bc10f8
Move statement out of top-level lambda in scripts (KT-19322)
...
#KT-19322 Fixed
2017-08-07 12:12:41 +03:00
Nikolay Krasko
4e76975a52
Force OOB in accessors for properties without explicit type (KT-19062)
...
#KT-19062 Fixed
2017-07-19 12:45:06 +03:00
Nikolay Krasko
bcbff98382
Check OOB stays the same for string in super type constructor call
2017-07-19 12:45:06 +03:00
Denis Zharkov
5141a88a53
Add TypeQualifier annotation to IDE test data
...
Othewise nullability is not processed correctly
2017-07-03 17:55:37 +03:00
Alexey Sedunov
88968807b2
Generate equals/hashCode(): Swap class literals in comparison
2017-06-29 17:42:20 +03:00
Alexey Sedunov
e3e4c447fa
Generate equals/hashCode(): Use class literals when possible
...
#KT-18683 Fixed
2017-06-29 17:42:18 +03:00
Alexey Sedunov
9681f5ca42
Generate equals/hashCode(): Enable for classes without properties
...
Also:
- forbid for enum classes
- use javaClass.hashCode() instead of 0 if class has no properties
#KT-18418 Fixed
2017-06-22 19:50:55 +03:00
Toshiaki Kameyama
b9fb7cc3a5
Add quick fix to generate equals / hashcode in data class with arrays
...
So #KT-15893 Fixed
2017-06-16 15:03:52 +03:00
Alexey Sedunov
1544467725
Presentation: Fix NPE on star projection rendering
...
EA-100480 Fixed
2017-06-15 17:26:39 +03:00
Toshiaki Kameyama
af941bfdf5
KT-18158 Expand selection should select the comment after expression getter on the same line ( #1122 )
...
* Expand selection should select the comment after expression getter on the same line #KT-18158 Fixed
* Fixed expand selection behavior for the declaration with comment #KT-18158
* Remove redundant code #KT-18158
2017-06-14 12:28:56 +02:00
Dmitry Jemerov
b1f84676d1
Update tests according to new formatter behavior
2017-06-14 11:40:41 +02:00
Dmitry Neverov
3b4dafe691
Detect recursive property accessors #KT-17221 Fixed
2017-05-19 20:36:09 +03:00
Dmitry Jemerov
af043843b7
Don't show disambiguation for "Show expression type" on "this"
...
#KT-17840 Fixed
2017-05-18 21:02:24 +02:00
Alexey Sedunov
0994474e87
Presentation: Fix NPE on functional type rendering
...
#KT-17638 Fixed
2017-05-18 14:22:40 +03:00
Dmitry Jemerov
c778e0454d
Show line markers for suspending iteration
...
#KT-16803 Fixed
2017-05-10 14:27:23 +02:00
Dmitry Jemerov
baa43a2a55
Show line markers for sealed classes
...
#KT-16755 Fixed
2017-05-10 14:27:22 +02:00