Commit Graph

12039 Commits

Author SHA1 Message Date
Ilya Chernikov 0d7ecee6ee Update index on definition/import files changes 2016-06-07 21:12:57 +02:00
Ilya Chernikov 1a98c5eb0e Allow script dependnencies to be found as a candidates for decompilation 2016-06-07 21:12:56 +02:00
Ilya Chernikov 9ed8dec9fb Make a marker interface to allow ScriptDependenciesClassFilter to be used in the resolving 2016-06-07 21:12:55 +02:00
Ilya Chernikov 5c37017484 Prepare infrastruct for fixing customized script resolving
Move ConfigManager and ClassFinder to the idea-analysis
 Add (back) IndexableSetContributor
 Add a method in ConfigManager to generate all dependencies scope
 Add and use delegating scope with possibility to get base scope from it (used in the class finder)
2016-06-07 21:12:54 +02:00
Ilya Chernikov 3e17724e58 Implement class finder for customized scripts resolving - not yet completely functional 2016-06-07 21:12:54 +02:00
Ilya Chernikov b63ed0f4aa Make script launcher aware of custom scripts, minor correction is core env 2016-06-07 21:12:53 +02:00
Ilya Chernikov 14ae795aaa Support extra imports configuration for scripts (only classpath so far) 2016-06-07 21:12:51 +02:00
Ilya Chernikov 57f03332c2 Add module dependencies to script module info 2016-06-07 21:12:50 +02:00
Ilya Chernikov dfc96d216b Refactor configs loading, Add config script definitions reloading on config files changes 2016-06-07 21:12:49 +02:00
Ilya Chernikov 310e8014a8 Refactor KotlinScriptDefinitionProvider access to scriptDefinitions 2016-06-07 21:12:48 +02:00
Ilya Chernikov f185d3639d Move KotlinScriptConfigurationManager to idea module 2016-06-07 21:12:48 +02:00
Pavel V. Talanov 24b4afb3b8 Enable full highlighting in script files everywhere (was inside source roots only)
Extract KotlinHighlightingUtil to hold this logic
2016-06-07 21:12:43 +02:00
Pavel V. Talanov 34f8e9303f scopeUtils: support CustomizedScriptModuleInfo info in completion 2016-06-07 21:12:42 +02:00
Ilya Chernikov 5590bcf024 Add initial prototype of custom script support in IDE 2016-06-07 21:11:29 +02:00
Ilya Chernikov 770ef16ef7 Replace script recognition from by PsiFile to by virtual file, fix custom script name generation 2016-06-07 21:11:28 +02:00
Ilya Chernikov ad7fcc92d2 Add configurable script definition and appropriate manager component
The component is intended for configuring script types defined in some specific xml files and add appropriate script definitions to the provider
2016-06-07 21:11:27 +02:00
Ilya Chernikov d225385d19 Add name and classpath to KotlinScriptDefinition 2016-06-07 21:11:26 +02:00
Alexander Udalov e3164119c1 Inline PrintingMessageCollector#PLAIN_TEXT_TO_SYSTEM_ERR
Otherwise 'hasErrors' flags was not cleared between subsequent runs of tests
which were using this message collector
2016-06-07 21:12:24 +03:00
Nikolay Krasko c93d0f69ca Support Idea 163 branch 2016-06-07 19:18:55 +03:00
Kirill Rakhman 5c68681f96 Formatter: handle spaces before value arguments list (KT-12634)
#KT-12634 Fixed
2016-06-07 19:11:28 +03:00
Dmitry Jemerov 060c285715 search for Kotlin convention usages of Java methods
#KT-5960 Fixed
2016-06-07 14:50:16 +02:00
Dmitry Jemerov 7e2ce2d4e0 when finding usages of parameter of annotation class primary constructor, search also for light method generated from that parameter
#KT-9399 Fixed
2016-06-07 14:50:09 +02:00
Alexander Udalov d8db769823 Use empty list instead of ThrowingList in callable reference resolution
Clients of the call resolution do not expect to see a throwing list in call's
arguments, and it's wrong to make each of them check against the special case
that is the resolution of callable references

Fixes EA-69901
2016-06-07 12:42:45 +03:00
Alexey Sedunov fe01035e3c Rename: Do not rename ambiguous references in import directives
#KT-6363 Fixed
2016-06-06 21:29:23 +03:00
Alexey Sedunov 8ba1aff7e6 Rename: Show more detailed element descriptions in Rename dialog
#KT-8544 Fixed
2016-06-06 21:29:19 +03:00
Alexey Sedunov 9692c210fd Rename: Copy default values if function to be renamed inherits default values from some base function which is excluded from rename
#KT-9446 Fixed
2016-06-06 21:29:15 +03:00
Alexey Sedunov 188531017a Rename: Implement automatic renamer for test classes
#KT-8512 Fixed
2016-06-06 21:29:11 +03:00
Alexey Sedunov 42b71ae90c Rename: Do not show 'Rename overloads' options if target function has no
overloads. Consider extensions and members overloads if they have the same
recever class
 #KT-8541 Fixed
 #KT-8786 Fixed
2016-06-06 21:29:07 +03:00
Dmitry Petrov 9e7222906d Generate (possibly empty) file classes for files with type aliases. 2016-06-06 13:50:37 +03:00
Dmitry Jemerov 6a1ffc865d don't quote empty package name 2016-06-03 16:24:24 +02:00
Dmitry Petrov 7e64054af7 typeConstraintAdditionalResolve:
do not throw CCE for incorrect code with type parameter bounds on type alias parameters
2016-06-03 16:07:21 +03:00
Dmitry Petrov 3500f5a96b Type alias: resolve type alias RHS during force-resolve. 2016-06-03 16:07:20 +03:00
Dmitry Petrov 79ce614591 KT-11588 Type aliases: Fix EA-1117340 2016-06-03 16:07:20 +03:00
Dmitry Jemerov 8b30e7ef4e change implementation of 'new file' action to support escaping the package name and creating directory/package hierarchy
#KT-8362 Fixed
 #KT-11328 Fixed
2016-06-03 14:18:11 +02:00
Dmitry Jemerov 5f89274259 de-i18n 2016-06-03 14:18:11 +02:00
Dmitry Jemerov 28100be46b NewKotlinFileAction: J2K 2016-06-03 14:18:11 +02:00
Dmitry Jemerov 2ee03a71f9 NewKotlinFileAction: rename to .kt 2016-06-03 14:18:11 +02:00
Dmitry Jemerov 349376c4ec show new icon for Kotlin annotations in structure view (KT-12516) 2016-06-03 14:18:11 +02:00
Dmitry Jemerov 987b48dcfd can't close contents in Kotlin Bytecode toolwindow (KT-9797) 2016-06-03 14:18:11 +02:00
Mikhail Glukhikh de3fbe38f1 KT-12152: quick fix "make final" for member / containing class 2016-06-03 14:46:07 +03:00
Mikhail Glukhikh a22e7d3bcf KT-12152 : leaking this inspection: accessing non-final member / this in non-final class 2016-06-03 14:45:58 +03:00
Alexey Sedunov 9b3f40ee76 Minor: Drop obsolete code 2016-06-02 15:28:36 +03:00
Alexey Sedunov cf8cf37d69 Light Classes: Drop obsolete constraint which prevents generation of light methods for local class members
#KT-8892 Fixed
2016-06-02 15:28:34 +03:00
Alexey Sedunov d27f3c0189 Rename: Do not replace Java references to synthetic component functions when renaming constructor parameter
#KT-9241 Fixed
2016-06-02 15:28:31 +03:00
Alexey Sedunov 958b402e42 Rename: Allow typing any identifier without backquotes in Rename dialog
#KT-9444 Fixed
2016-06-02 15:28:30 +03:00
Alexey Sedunov 96132fa61a Rename: @JvmName support
#KT-8044 Fixed
 #KT-9432 Fixed
2016-06-02 15:28:27 +03:00
Alexey Sedunov ff4c16d342 Rename: Allow renaming class by constructor delegation call referencing primary constructor
#KT-8860 Fixed
2016-06-02 15:28:22 +03:00
Alexey Sedunov e89e809dc7 Rename: Respect naming conventions in automatic variable rename
#KT-7851 Fixed
2016-06-02 15:28:19 +03:00
Alexey Sedunov 400d6b5aa0 Rename: Skip read-only declarations when renaming parameters
#KT-10713 Fixed
2016-06-02 15:28:16 +03:00
Alexey Sedunov 566ed0112f Rename: Fixed in-place rename of Kotlin expression referring Java declaration
#KT-9157 Fixed
2016-06-02 15:28:14 +03:00