Commit Graph

13733 Commits

Author SHA1 Message Date
Alexander Udalov abe2ad155c Sanitize names for script class files
Use the same process that is done for package parts in the JVM back-end, except
adding the "Kt" suffix

 #KT-15225 Fixed
2017-01-12 11:24:24 +03:00
Simon Ogorodnik c5e3f0ad01 KT-15141 Bogus import popup for when function call cannot be resolved fully
#KT-15141 fixed
2017-01-11 22:41:09 +03:00
Simon Ogorodnik db8edb01c3 KT-14815 alt + enter -> "import" over a constructor reference is not working
#KT-14815 fixed
2017-01-11 22:41:09 +03:00
Simon Ogorodnik f9b2929bca KT-15154 IllegalStateException on attempt to convert import statement to * if last added import is to typealias
#KT-15154 fixed
2017-01-11 22:41:08 +03:00
Alexander Udalov 453c5267ad Fix detection of scripts in cls stub builder 2017-01-11 19:28:51 +03:00
Mikhail Glukhikh 7c6d5c825c Join declaration & assignment is no more suggested in case of potential smart cast available #KT-15412 Fixed 2017-01-11 19:10:09 +03:00
Mikhail Glukhikh 31a8689999 Do not count 'impl' or 'header' with implementations as unused #KT-15305 Fixed 2017-01-11 18:37:55 +03:00
Mikhail Glukhikh 586246002c Create header implementation fix: do not use Swing inside write action 2017-01-11 18:37:50 +03:00
Mikhail Glukhikh b0a333456e Platform header IDE annotation: do not report suppressed error #KT-15601 Fixed 2017-01-11 18:37:44 +03:00
Mikhail Glukhikh 76ee6d7712 Minor: multi-platform highlighting tests rename 2017-01-11 18:37:38 +03:00
Mikhail Glukhikh 43a4035390 Clearer diagnostic message for platform type inspection #KT-14630 Fixed 2017-01-11 16:24:10 +03:00
Ilya Gorbunov eb07d9407d Unexpected appearance of minOf/maxOf for T: Comparable<T> in smart completion tests 2017-01-11 14:42:36 +03:00
Ilya Gorbunov 18245c5b73 Expected appearance of minOf/maxOf for T: Comparable<T> in one of smart completion tests 2017-01-11 14:42:36 +03:00
Ilya Gorbunov dcd7f3eb57 Fix test data after introducing overloads #KT-15630 2017-01-11 14:33:17 +03:00
Alexander Udalov 69bfc5b4bb Write multifile part->facade mapping to .kotlin_module 2017-01-11 13:15:57 +03:00
Alexander Udalov 6c1cadf273 Refactor PackageParts: add explicit mutating methods 2017-01-11 13:15:57 +03:00
Alexander Udalov 0dbb02ec6a Fix generic signature for KFunctionN types on JVM
#KT-15473 Fixed
2017-01-11 13:15:24 +03:00
Nikolay Krasko 80af30fb4f Always remove extension from script file
Fix for 35631dc2df refactoring.
Extension was actually always removed before refactoring.
2017-01-11 00:39:16 +03:00
Alexey Sedunov e89ffbf916 Convert Property to Function: Wrap usage search in read action (EA-1280778) 2017-01-10 21:16:14 +03:00
Alexey Sedunov 23ec8f0813 Quick Fixes: Implement "Create label" quick fix
#KT-8855 Fixed
2017-01-10 21:16:13 +03:00
Alexey Sedunov 534a773816 Intentions: Implement intention which converts object literal to class
#KT-15056 Fixed
2017-01-10 21:16:12 +03:00
Alexey Sedunov 7def536751 Project View: Fix presentation of Kotlin files and their members when @JvmName having the same name as the file itself 2017-01-10 21:16:11 +03:00
Alexey Sedunov 612dffb893 Highlighting: Add line markers for suspend function calls in coroutines
#KT-14689 Fixed
2017-01-10 21:16:10 +03:00
Alexey Sedunov 9e79293a12 Quick Fixes: Implement quickfix which enables/disables coroutine support in module or project 2017-01-10 21:16:09 +03:00
Alexey Sedunov 6b57a3e338 Intentions: Implement intention which rename file according to the top-level class name
#KT-15068 Fixed
2017-01-10 21:16:08 +03:00
Alexey Sedunov c7aefa2842 Quick Fixes: Implement quick-fix for increasing module language level to enable unsupported language features
#KT-15205 Fixed
2017-01-10 21:16:07 +03:00
Sergey Mashkov 3ccb7416f4 Maven: kotlin facet platform detection 2017-01-10 19:36:44 +03:00
Sergey Mashkov 9490ed22d5 Maven: metadata mojo initial implementation 2017-01-10 19:36:44 +03:00
Simon Ogorodnik 347c6e100b Fix for KT-14736 J2K Incorrect conversion of back ticks in javadoc {@code} tag
#KT-14736 fixed
2017-01-10 16:20:58 +03:00
Simon Ogorodnik e920166879 Fix for KT-13067 Syntax colouring doesn't work for KDoc tags
#KT-13067 fixed
2017-01-10 16:04:31 +03:00
Simon Ogorodnik d0cf1b0c5f Fix for KT-14819 Quick documentation for special Enum functions doesn't work
#KT-14819 fixed
2017-01-10 16:04:18 +03:00
Simon Ogorodnik fa01a4efad Fix for KT-12872 Don't show "defined in <very long qualifier here>" in quick doc for local variables
#KT-12872 fixed
2017-01-10 16:03:30 +03:00
Mikhail Zarechenskiy 6cccad9647 Update year in license and regenerate tests 2017-01-10 12:01:17 +03:00
Mikhail Zarechenskiy cff0865c87 Fix error type for implicit invoke with function literal argument
#KT-11401 Fixed
2017-01-10 11:44:51 +03:00
Nikolay Krasko 9ff8192aff Name script run configuration after script file name
This makes more evident difference between script and non-script run configurations.
2017-01-09 19:58:03 +03:00
Nikolay Krasko 139ec8c920 Get script dependencies from script manager 2017-01-09 19:58:01 +03:00
Nikolay Krasko 9f94caeb39 Resolve standard library calls in Kotlin scripts (KT-15383)
#KT-15383 Fixed
2017-01-09 19:58:00 +03:00
Nikolay Krasko 9f11564708 Deprecate version field and preserve order of script providers in extension point
It's impossible to guess the order of the final list when there're
providers from different vendors as they might have different versioning systems.

com.intellij.openapi.extensions.LoadingOrder constants can be used by plugins authors to
resolve priority issues.
2017-01-09 19:57:58 +03:00
Nikolay Krasko 0c2247ca41 Remove \r before lexer pass
\r aren't recognized by lexer and cause "Error: could not match input" warnings.
2017-01-09 19:57:56 +03:00
Kirill Rakhman a0491d5258 Add quickfix for changing primitive cast to primitive conversion method
Fixes #KT-15564
2017-01-09 16:36:56 +03:00
Kirill Rakhman 2b54f1ac72 "Add names to call arguments" shouldn't appear when the only argument is a trailing lambda
Fixes #KT-15501
2017-01-09 16:34:13 +03:00
shiraji 44e69d8adc Quick fix for applying spread operator where vararg is expected #KT-6824 Fixed 2017-01-09 16:32:23 +03:00
Ilya Zorin c5677f0428 Format spaces around :: 2017-01-09 12:19:29 +01:00
Kirill Rakhman 406bac684c Fix Quickfix for missing operator adds infix modifier to created function (#1012)
Fixes #KT-14907
2017-01-09 12:03:22 +01:00
Ilya Zorin ffe80dd549 Format spaces around by keyword (#1016) 2017-01-09 11:19:44 +01:00
mglukhikh 238eaf0d0e Build fix: multi-module quick fix test file rename 2017-01-05 22:30:31 +03:00
Yan Zhulanow 433dfdd1e8 Check the backing field before checking accessors in KotlinAnnotatedElementsSearcher. This should be faster, and it fixes the problem with IDEA hangs in DataBinding. 2016-12-29 21:01:54 +03:00
Mikhail Glukhikh 4774d19890 Quick-fix for header without implementation + a set of tests #KT-14908 Fixed 2016-12-29 17:42:26 +03:00
Yan Zhulanow 400759826f Add DataBindingComponentShortNamesCache and DataBindingShortNamesCache to ignored caches for Java callables sources. Extract filteredShortNamesCaches property 2016-12-28 22:18:06 +03:00
Yan Zhulanow 6bff4a4ed4 Exclude BrShortNamesCache from processJvmCallablesByName() because of the severe lags in Java static member import quickfix. (KT-14308)
Also exclude Kotlin light classes cache because light classes are filtered out anyway.
2016-12-28 22:18:06 +03:00