Commit Graph

11090 Commits

Author SHA1 Message Date
Nicolay Mitropolsky 46ff4f2bbf 182: KotlinElementActionsFactory: "value"-parameters in generated java-annotations is putted without explicit parameter name #KT-23644 2018-04-18 21:17:24 +03:00
Mikhail Glukhikh de0cbf5844 Join parameter/argument list: use document to delete whitespaces
Otherwise fix has no effect in IDE. Related to KT-23266
2018-04-18 20:45:31 +03:00
Toshiaki Kameyama 03902030ed Add intentions to put arguments / parameters on one line #KT-23266 Fixed 2018-04-18 20:45:31 +03:00
Toshiaki Kameyama 3992f0215c "map.put() to assignment": handle case with labeled return inside
So #KT-23194 Fixed
2018-04-18 18:50:15 +03:00
Mikhail Glukhikh 77f62f1666 Move to separate file: minor optimization, related to KT-23321 2018-04-18 18:41:24 +03:00
Toshiaki Kameyama a8d0e8995d Don't suggest to move type to separate file for sealed classes
So #KT-23321 Fixed
2018-04-18 18:41:23 +03:00
Vyacheslav Gerasimov 02578bc378 Add dependency on com.intellij.modules.androidstudio to AS 3.1 & 3.2 plugin.xml 2018-04-18 18:31:39 +03:00
Vyacheslav Gerasimov 8f1defa267 Fix plugin.xml formatting 2018-04-18 18:25:42 +03:00
Nicolay Mitropolsky 0aa236d1ac 182: KotlinElementActionsFactory.createAddFieldActions no more generates private @JvmField and lateinit @JvmField 2018-04-18 17:41:35 +03:00
Mikhail Glukhikh b6661710dd Use expression body: reformat 2018-04-18 16:14:08 +03:00
Mikhail Glukhikh 28fe30c70d Use expression body: extend range if default level is INFORMATION
So #KT-23167 Fixed
2018-04-18 16:13:54 +03:00
Nikolay Krasko f62e0dc5f7 Use com.intellij.modules.idea as dependency to forbid install in AS
`com.intellij.modules.idea` was introduced in 182 to distinguish
AS and IDEA installation (IDEA-187502).

Dependency should be removed in CLion and AppCode installation.
2018-04-18 15:49:41 +03:00
Nikolay Krasko 78a5fa766f Remove com.intellij.modules.remoteServers dependency from AS 3.2
Otherwise plugin won't be compatible with AS.
2018-04-18 15:49:40 +03:00
Nikolay Krasko c4917d6d1c Use only hard dependency to java module and use include for jvm.xml (KT-23638)
Trick with both optional/non-optional dependency doesn't work in IDEA,
as it doesn't do an additional check optional dependency is found.

See com.intellij.ide.plugins.PluginManagerCore#checkDependants(
  IdeaPluginDescriptor, Function<PluginId, IdeaPluginDescriptor>,
  Condition<PluginId>, Set<PluginId>)

 #KT-23638 Fixed
2018-04-18 15:49:40 +03:00
Toshiaki Kameyama ff63ba4dc1 Add inspection: redundant internal in local anonymous object / class
So #KT-23617 Fixed
2018-04-18 11:17:52 +03:00
Mikhail Glukhikh 1d3ba5641d "Main should return Unit": report on identifier, delete block body type 2018-04-18 11:16:03 +03:00
Toshiaki Kameyama 1cd438c3f7 Add inspection "main should return Unit" #KT-16085 Fixed 2018-04-18 10:59:23 +03:00
Pavel V. Talanov 33a312c26d Do not throw when trying to resolve java outside project model
#KT-23444 Fixed
 #KT-22825 Fixed
2018-04-17 16:19:49 +02:00
Juan Chen b7fa06cca4 Add "Convert Java to Kotlin" to ProjectViewPopupMenu and
EditorTabPopupMenu.
2018-04-17 15:36:55 +03:00
Alexey Sedunov 01b0518a61 Gradle Support: Declare 'gradleFrameworkSupport' extension point
This fixes exception in the New Project wizard (IDEA 172)

 #KT-23835 Fixed
2018-04-17 13:37:52 +03:00
Nikolay Krasko 1fb2b40684 Fix 182 branch after QueryExecutor and subclasses update
Parameter taking Processor<T> were replaced with Processor<? super T>.
https://github.com/JetBrains/intellij-community/commit/aaed1ccb910f6f4a9ea2f96894d99b6e35a59ef9
https://github.com/JetBrains/intellij-community/commit/c6b40a53ee5b2a0807c55adafb59edb453090915

Instead of updating all usages, use ExecutorProcessor to avoid
different source code for different IDEAs.
2018-04-14 15:29:38 +03:00
Vyacheslav Gerasimov 879c7f3837 as32: Revert KotlinCallerChooser to 173 state 2018-04-13 21:33:17 +03:00
Vyacheslav Gerasimov 4299455dc1 as32: Update to AS 3.2 C10 2018-04-13 21:33:03 +03:00
Alexey Sedunov e51b6927b6 Refactor: Introduce JTextComponent.onTextChange() function 2018-04-13 20:23:07 +03:00
Alexey Sedunov 62f654b3d2 Introduce Variable: Avoid explicit types for expression of anonymous type
#KT-12078 Fixed
2018-04-13 20:23:07 +03:00
Alexey Sedunov c1d8ba9c2b Parameter Info: Do not render nullability annotations
#KT-23408 Fixed
2018-04-13 20:23:06 +03:00
Alexey Sedunov ea66e1e3f7 Copy: Fix exception on copying KtFile to non-KtFile
#KT-22669 Fixed
2018-04-13 20:23:05 +03:00
Mikhail Glukhikh c172810d1d Simplify boolean with constants optimization: use partial analysis 2018-04-13 19:11:55 +03:00
Toshiaki Kameyama 90be6235f7 Expand Selection on opening curly brace should select the entire block right away #KT-18769 Fixed 2018-04-13 13:23:42 +03:00
Nikolay Krasko 2227d205c7 Bunch: update "MoveLambdaOutsideParentheses: intention -> inspection"
decf9939fe
2018-04-13 10:45:32 +03:00
Nikolay Krasko 0253fe7c16 Bunch: update after "Wire StorageManager into a ..."
934c56a4da
2018-04-13 10:45:28 +03:00
Nikolay Krasko 2260f66e02 Unify usage of ProgressManager.progressIndicator 2018-04-12 19:29:01 +03:00
Mikhail Zarechenskiy cfc940af66 Avoid deprecated access by short name though companion object 2018-04-12 17:35:07 +03:00
Dmitry Savvinov 934c56a4da Wire StorageManager into a ClassTypeConstructorImpl and ClassDescriptorImpl 2018-04-12 13:44:10 +03:00
Mikhail Glukhikh 876563ca91 Move lambda outside: use INFORMATION for named and multiple lambdas case 2018-04-12 11:03:40 +03:00
Mikhail Glukhikh b0553a3863 Move lambda outside parentheses: fix inspection text / formatting 2018-04-12 11:03:40 +03:00
kenji tomita decf9939fe MoveLambdaOutsideParentheses: intention -> inspection #KT-21413 Fixed 2018-04-12 11:03:40 +03:00
Toshiaki Kameyama 52d72ab920 Fix AE exception in "Convert too long character literal to string"
So #KT-23608 Fixed
2018-04-11 17:00:38 +03:00
Toshiaki Kameyama 1cbaab1531 Preserve annotation arguments in "Add use-site target" intention
So #KT-23634 Fixed
2018-04-11 17:00:38 +03:00
Toshiaki Kameyama a5aad22fe7 Don't report "Redundant Companion reference" on accessing nested object
So #KT-23620 Fixed
2018-04-11 17:00:37 +03:00
Toshiaki Kameyama 94c5344fd1 Check explicit type specification in "Might be const" inspection
So #KT-23303 Fixed
2018-04-11 17:00:37 +03:00
Felix Guo 9539212180 Take Java source file into account in "Add annotation target"
So #KT-22860 Fixed
2018-04-11 17:00:37 +03:00
Nikolay Krasko a3d01443b9 Update bunch plugin.xml after adding "Refactor sealed sub-class to object"
df7968678a
2018-04-11 16:28:45 +03:00
Nikolay Krasko 672169f3be Forgotten bunch file commit reminder 2018-04-11 16:28:45 +03:00
Nicolay Mitropolsky 001c5d6e3e 182: PsiReferenceBase nullability change fixes 2018-04-11 16:28:43 +03:00
Vladislav.Soroka a1023953b4 182: KT-23383 Optional plugin dependency for kotlin gradle plugin 'java' subsystem dependent features 2018-04-11 16:28:43 +03:00
Nicolay Mitropolsky 1b783070b5 182: generic PopupChooserBuilder<T> compilation fix 2018-04-11 16:28:42 +03:00
Nicolay Mitropolsky 41c30f06bb 182: KotlinElementActionsFactory.createAddAnnotationActions implementation (KT-22876) 2018-04-11 16:28:42 +03:00
Vyacheslav Gerasimov 9e64b240ac 182: Set since-build to "182.1" & until-build to "182.*" 2018-04-11 16:28:40 +03:00
Vyacheslav Gerasimov b37496c3fc 182: Fix compilation for idea 182, nullability changes mostly 2018-04-11 16:28:39 +03:00