Ilya Chernikov
adb4d264ec
Move script definition extraction functions to the plugin
...
plus finish refactoring of these functions
2019-03-02 08:10:16 +01:00
Dmitry Gridin
2a940f5b0a
Fix KT-26965
2019-03-01 17:43:56 +03:00
Dereck Bridie
4156a76129
#KT-26965 Add inspection + quickfix for replacing Collection<T>.count() with .size
2019-03-01 16:58:36 +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
1a818970c3
Add inspection to replace Java Map.forEach with Kotlin's forEach
...
#KT-17278 Fixed
2019-03-01 16:15:23 +03:00
Andrey Uskov
735f86a50e
Fix creation of KotlinSDK. GradleFacetImportTest fixed
2019-03-01 13:12:43 +03:00
Andrey Uskov
325ed8eb32
Change class hierarchy of KotlinSourceRootType. Deadlock during concurrent classloading fixed
...
#KT-30137 Fixed
2019-03-01 13:12:16 +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
20aa8ebdb0
Add "Throwable not thrown" Inspection
...
#KT-11629 Fixed
2019-03-01 11:35:12 +03:00
Toshiaki Kameyama
e0aeb8f7ec
Remove redundant let: rename invoke call
...
#KT-29556 Fixed
2019-03-01 11:31:07 +03:00
Toshiaki Kameyama
df3953f03a
Redundant Unit: fix false positive when return type is nullable Unit
...
#KT-30038 Fixed
2019-03-01 11:12:25 +03:00
Toshiaki Kameyama
d67c793a9b
map.get() with not-null assertion: add quick-fixes
...
#KT-30010 Fixed
2019-03-01 11:11:05 +03:00
Natalia Selezneva
bc1e836f01
Fix saving Kotlin Scripting Setting to xml
...
^KT-30146 Fixed
2019-03-01 09:42:43 +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
Dmitry Gridin
29a63ae58c
Refactoring & fix warnings
2019-02-28 15:59:50 +03:00
Vadim Brilyantov
bd2e51ded5
Fix for bug introduced in moveConflictUtils (never show warnings when moving to the same scope)
2019-02-28 15:52:28 +03:00
Natalia Selezneva
48433110a4
Do not threat modifications inside lambdas in KtScriptInitializer block as out of code block
2019-02-28 10:59:15 +03:00
Natalia Selezneva
49277bb5e4
Optimize MemberVisibilityCanBePrivateInspection: check that descriptor is in class before resolving it
2019-02-28 10:59:14 +03:00
Natalia Selezneva
560acd631c
KtScriptInitializer doesn't has a descriptor
2019-02-28 10:59:13 +03:00
Natalia Selezneva
3b4d1dd7bf
Optimize ChangeVisibilityModifierIntention: do not analyze element if declaration isn't local
2019-02-28 10:59:12 +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
Dmitry Gridin
304007f602
Fix false positive "Redundant companion reference"
...
#KT-30166 Fixed
2019-02-28 10:42:22 +03:00
Dmitry Gridin
3756b6f54d
Add inspection to remove redundant qualifier name
...
#KT-12134 Fixed
2019-02-27 20:43:35 +03:00
Dmitry Gridin
d0c3a28996
Move canBePossibleToDropReceiver to Companion object & fix warnings
2019-02-27 20:43:35 +03:00
Nicolay Mitropolsky
c151be5547
Uast multiresolve key description fix
2019-02-27 12:15:32 +03:00
Natalia Selezneva
ae22bdee15
Add scripting resolver extension to plugin-kotlin-extensions.xml
2019-02-27 09:37:07 +03:00
Sergey Rostov
63dca7b3b5
Build: exclude annotations.jar from Intellij
2019-02-27 09:11:42 +03:00
Sergey Rostov
17c0422d8f
Build: got rid of @TestOnly annotations on fields and classes
2019-02-27 09:08:34 +03:00
Dmitry Gridin
c89d1af9fa
Improve Create property from Usage
...
Place generated property next to other properties
#KT-14886 Fixed
2019-02-27 00:07:55 +03:00
Dmitry Gridin
5d599ee2ff
Refactoring
2019-02-27 00:07:55 +03:00
Vadim Brilyantov
c633f7568f
#KT-25674: Fix unexpected reference renames in literals when moving referenced files.
2019-02-26 15:37:48 +03:00
Vadim Brilyantov
c7acd89fad
#KT-19799: Add initialDirectory to KotlinAwareMoveFilesOrDirectoriesDialog
2019-02-26 15:37:47 +03:00
Vadim Brilyantov
0c1e7e1d63
#KT-23099: Fix name clashes when moving top-level objects with same signature
2019-02-26 15:37:45 +03:00
Vadim Brilyantov
f7c4760cb9
#KT-17825: Filter PackageLookupObjects as available for completion
2019-02-26 15:37:42 +03:00
Vadim Brilyantov
c5d1190d15
#KT-26611: Change mnemonic for "search references" checkbox to Alt+R
2019-02-26 15:37:40 +03:00
Vadim Brilyantov
01200252f5
#KT-22721: Fix move refactoring to make it check previous PsiElement before a whitespace
2019-02-26 15:37:39 +03:00
Vadim Brilyantov
e413395cbf
#KT-19661: Create missing directories when moving to a user-defined path
2019-02-26 15:37:34 +03:00
Vadim Brilyantov
dc2c8140a9
Add optimize imports with timeout for move refactoring
2019-02-26 15:35:17 +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
Yan Zhulanow
a970de51ab
Debugger: Fix 182 bunch, add missing scratch extensions
2019-02-25 21:35:00 +03:00
Yan Zhulanow
55db2abd89
Debugger: Fix 191 bunch file, add new debugger extensions
2019-02-25 21:35:00 +03:00
Alexander Udalov
3f1533c35b
Restore support for local class literals in annotation arguments
...
This was broken in c1ab08c8ce where we started to represent KClassValue
as a ClassId of the referenced class + number of times it's been wrapped
into kotlin.Array. Local classes do not have a sane ClassId, so in this
change we restore the old behavior by representing KClassValue with a
sealed class value instead
#KT-29891 Fixed
2019-02-25 19:22:09 +01:00
Nikolay Krasko
6813402abf
Fix INRE from KotlinQuickDocumentationProvider (KT-30058, EA-137533)
...
Show a warning like CtrlMouseHandler does.
Fixed in 191 branch in CtrlMouseHandler.updateOnPsiChanges().
https://github.com/JetBrains/intellij-community/commit/b116dcaf994279d0f5fd78edd814013276c0adab
#KT-30058 Fixed
2019-02-25 17:43:57 +03:00
Anton Yalyshev
a326ba60a3
metadata contains Common target, so we need to track it as well
2019-02-25 16:26:12 +03:00
Max Medvedev
526e49d68a
fix test icons for methods
...
#KT-25956
2019-02-25 16:02:42 +03:00
Yan Zhulanow
133f021b26
Async stack traces: Fix compilation on IDEA 182 and older AS versions
2019-02-25 14:44:00 +03:00
Yan Zhulanow
cadb70f64a
Evaluator: Allow to evaluate expression on synthetic lines in .kt files
2019-02-25 14:44:00 +03:00
Yan Zhulanow
16266259f5
Evaluator: Handle function context gracefully. Use file scope as a fallback instead of error scope
2019-02-25 14:44:00 +03:00
Yan Zhulanow
5035de24ac
Code fragments: Use file scope as a fallback when a more specific one is not available
2019-02-25 14:44:00 +03:00
Yan Zhulanow
316dcccc30
Minor: Capitalize word "Kotlin" in error messages
2019-02-25 14:43:59 +03:00