Commit Graph

2428 Commits

Author SHA1 Message Date
Valentin Kipyatkov bfdbbe0247 KT-6407 Completing function with "tab" (replace) shouldn't insert parentheses when type arguments are present
#KT-6407 Fixed
2014-12-24 15:48:42 +03:00
Valentin Kipyatkov 6e6289435f Fixed exception 2014-12-24 15:48:42 +03:00
Valentin Kipyatkov 91220faf06 KT-6122 Code completion in when in enum extension methods suggests non-qualified enum entry names
#KT-6122 Fixed
2014-12-24 15:48:42 +03:00
Valentin Kipyatkov b1372f0d9e Fixed if-statements with else branch handling 2014-12-24 14:19:26 +03:00
Valentin Kipyatkov 3db51cfcd8 KT-5927 Join Lines could merge nested if's
#KT-5927 Fixed
2014-12-24 14:19:26 +03:00
Valentin Kipyatkov bc631d7aee Fixed Join LInes on a block when there is a space in the end of line 2014-12-24 14:19:25 +03:00
Valentin Kipyatkov 478b5070ef KT-6019 Join lines should remove code block in when entry body
#KT-6019 Fixed
2014-12-24 14:19:25 +03:00
Valentin Kipyatkov 0823c1528a Fixed 2 bugs in Join Lines 2014-12-24 14:19:25 +03:00
Valentin Kipyatkov 37e40267fe KT-6521 Expand selection works wrong on a call inside for loop's range
KT-6518 Extend selection not working for expression in if

 #KT-6521 Fixed
 #KT-6518 Fixed
2014-12-24 14:17:43 +03:00
Natalia Ukhorskaya 94466da61b Evaluate expression: render InvocationExceptions correctly 2014-12-24 13:48:17 +03:00
Natalia Ukhorskaya a894979c81 Extract function: add default name for parameter 2014-12-24 13:48:16 +03:00
Valentin Kipyatkov c882e902c3 Override property calls super when its not abstract 2014-12-23 21:38:49 +03:00
Valentin Kipyatkov 5f2446d889 Implement property uses throw UnsupportedOperationException() instead of default value or ? 2014-12-23 21:38:49 +03:00
Alexey Sedunov 367b99a156 Extraction refactorings: Do not suggest extraction of type elements
#KT-3994 Fixed
2014-12-23 20:43:23 +03:00
Alexey Sedunov 1e5769acfd Introduce Variable: Remove braces from replaced string template entries when possible
#KT-5310 Fixed
2014-12-23 20:43:22 +03:00
Alexey Sedunov 82579f489b Introduce Variable: Convert property accessor body to block when needed 2014-12-23 20:43:20 +03:00
Alexey Sedunov 05a0481efa Formatter: Fix spacing between '=' and '{' in property accessors 2014-12-23 20:43:19 +03:00
Alexey Sedunov e76792d4f2 Introduce Variable: Do not delete original expression if its value is used in enclosing expression 2014-12-23 20:43:18 +03:00
Alexey Sedunov 6084352d37 Introduce Variable: Properly convert function body to block when needed
#KT-5353
2014-12-23 20:43:17 +03:00
Alexey Sedunov a9a30a1b7d PSI Pattern Matching: Respect type arguments when matching calls
#KT-6496 Fixed
2014-12-23 20:43:15 +03:00
Andrey Breslav 6728a384e4 KT-4881 Annotation resolved to package should be compile-time error
#KT-4881 Fixed
2014-12-23 15:18:47 +03:00
Natalia Ukhorskaya 9283daccb6 Debugger: fix evaluate expression for traits 2014-12-23 14:40:28 +03:00
Natalia Ukhorskaya e35b960eb5 Stepping: do not write line numbers for call arguments
#KT-3080 Fixed
2014-12-23 14:40:26 +03:00
Natalia Ukhorskaya 449ebc35ef Debugger: add ability to evaluate expressions on closing bracket 2014-12-23 14:40:25 +03:00
Natalia Ukhorskaya 261ced59c5 Correct labels for local variables 2014-12-23 14:40:24 +03:00
Valentin Kipyatkov 311a3a75c8 Code completion: do not list instance members from context with no instance
#KT-6388 Fixed
 #KT-4422 Fixed
 #KT-5516 Fixed
2014-12-22 18:26:03 +03:00
Pavel V. Talanov 69ec789013 Support PRIVATE_TO_THIS in cls stub builder 2014-12-22 16:05:15 +03:00
Pavel V. Talanov eb1feeb480 Tests for kotlin nested class members completion from java 2014-12-21 14:23:30 +03:00
Pavel V. Talanov 56e3983dc9 Move and rename JavaElementFinderMultiFileTest
It is now relevant for IDE only
2014-12-21 14:23:30 +03:00
Pavel V. Talanov 33fc241158 Rework go to symbol/class and getNavigationElement() for kotlin declarations
Based on work by geevee
2014-12-21 14:23:28 +03:00
Pavel V. Talanov 6362336208 Test stubs for compiled Kotlin files 2014-12-21 14:23:26 +03:00
Pavel V. Talanov e20dd42aa4 Refactor stubs:
Convert all interface classes to kotlin and move them into one file
Convert some of Impl classes
Fix typo: hasValOrValNode
Extract ModifierMaskUtils
Minors
2014-12-21 14:23:24 +03:00
Pavel V. Talanov 72aba2b758 Change default parameter rendering in decompiled text
So the code does not contain syntax errors
2014-12-21 14:23:23 +03:00
Pavel V. Talanov d0479aa61b DecompiledTextFactory: use own implementation of type normalizer
Do not rely on IDE utils
This makes implementing cls stub builder easier
2014-12-21 14:23:22 +03:00
Natalia Ukhorskaya c6d134d63c Debugger: change usage of getSourcePosition method to SourcePositionManager
(cherry picked from commit f1c4e36)
2014-12-20 15:06:03 +03:00
Alexey Sedunov ec608c5db2 Change Signature: Retain formatting of existing parameters when parameter count/order changes
#KT-6412 Fixed
2014-12-18 21:06:15 +03:00
Alexey Sedunov dd647416f8 Find Usages: Change .text extension to .txt in test data 2014-12-18 21:06:02 +03:00
Valentin Kipyatkov 7893b1d83f KT-5896 Select Word should always have step for selecting the content of string literal
#KT-5896 Fixed
2014-12-18 19:02:17 +03:00
Valentin Kipyatkov 11a72632bc KT-3949 Extend selection in case of comment before several statements
#KT-3949 Fixed
2014-12-18 19:02:17 +03:00
Valentin Kipyatkov 3059a46ca7 Fixed KT-5894 Select Woes: no need to select code block + end of line
+ corrected selection of when

 #KT-5894 Fixed
2014-12-18 19:02:17 +03:00
Valentin Kipyatkov 5f9e685188 KT-5895 Select Word: no need to select argument list including parenthesis
#KT-5895 Fixed
2014-12-18 19:02:16 +03:00
Valentin Kipyatkov 46906fd89c KT-5292 Expand selection should have kdoc + method as a stop point
KT-3947 Extend selection works badly with comment

 #KT-5292 Fixed
 #KT-3947 Fixed
2014-12-18 19:02:16 +03:00
Valentin Kipyatkov 848623fe8f Changed format of test data for word selection test - each test's data in own directory 2014-12-18 19:02:16 +03:00
Valentin Kipyatkov 6ec10b9b6b Correct completion of nested/inner classes after dot
#KT-1889 Fixed
2014-12-18 15:48:27 +03:00
Valentin Kipyatkov 8f32a6c1f9 Partial body resolve test to test 2 resolve modes 2014-12-18 15:48:27 +03:00
Valentin Kipyatkov 9c8b7ed6f5 Fixed KT-6408 Completion auto-popup prevents smooth typing of "!in"
#KT-6408 Fixed
2014-12-18 15:48:27 +03:00
Valentin Kipyatkov 8e1af2b720 Fixed occasional insertions of fq-names by completion and similar effects
#KT-6182 Fixed
 #KT-6111 Fixed
2014-12-18 15:48:26 +03:00
Valentin Kipyatkov bdf7455578 KT-5986 No code completion for second type argument of HashMap instantiation
KT-6406 Code completion in type argument position should not include functions and variables

 #KT-5986 Fixed
 #KT-6406 Fixed
2014-12-18 15:47:59 +03:00
Valentin Kipyatkov e9f1ae5886 More clear test data format 2014-12-18 15:47:59 +03:00
Valentin Kipyatkov cb5c12cda3 Completion of object's in type position - they can be used there 2014-12-18 15:47:59 +03:00