Commit Graph

39572 Commits

Author SHA1 Message Date
Nikolay Krasko 6d7ce6cec1 Prevent debugger to stop twice on breakpoints after suspension point
#KT-18453 In Progress
2017-06-15 13:29:26 +03:00
Nikolay Krasko 49baba017a Allow to stop in suspend funciton on enter and before suspended return
This commit is needed to implement "step over" action over suspended
call. Debugger have to understand when function is going to be
suspended and be able to set a breakpoint on function re-enter.

 #KT-18453 In Progress
2017-06-15 13:29:25 +03:00
Dmitry Jemerov a2427c64a1 Reset library caches on file types change and dumb mode enter/exit
Ref: https://github.com/JetBrains/intellij-community/commit/50df476199043bde25b8220c8a8ff2f3545bd325
2017-06-14 18:08:52 +02:00
Mikhail Glukhikh 94dcadbec7 filterNotInSource: retains only files in contentScope
So #KT-18221 Fixed
2017-06-14 18:22:52 +03:00
Mikhail Glukhikh 81a1f26b1d Rename: findSyntheticFiles -> filterNotInSource 2017-06-14 18:22:46 +03:00
Mikhail Glukhikh 7734ec3bd5 Do not highlight semantics in files not under module content
Related to KT-18221
2017-06-14 18:22:40 +03:00
Mikhail Glukhikh 2a1c101350 Use NotUnderContentRootModuleInfo only from PsiElement.getModuleInfo()
This makes getModuleInfoByVirtualFile nullable
Fixes a variant of EA-75803 (from moveConflictUtils)
2017-06-14 18:22:24 +03:00
Dmitry Jemerov 0e2bdb8e66 Support CONFIGURE_LIBRARY directive in intention tests
Also restore tests for ConvertCamelCaseTestFunctionToSpaced
and apply fix for KT-18375
2017-06-14 16:17:01 +02:00
Dmitry Jemerov 4fa75256b7 Options for wrapping parentheseses in calls (KT-18113) 2017-06-14 14:37:30 +02:00
Dmitry Jemerov 72e8cd7e78 Consistent names for spacing options 2017-06-14 14:37:30 +02:00
Dmitry Jemerov 2e9a3e6d12 Option to use continuation indent in expression bodies (KT-9818) 2017-06-14 14:37:22 +02:00
Dmitry Jemerov f4c75e61ad Option to use continuation indent in parameter lists 2017-06-14 14:33:52 +02:00
Dmitry Jemerov a4916a3c00 NodeIndentStrategy: J2K and cleanup 2017-06-14 14:33:51 +02:00
Dmitry Jemerov 14edd7e357 NodeIndentStrategy: rename to .kt 2017-06-14 14:33:51 +02:00
Dmitry Jemerov 6c954d7e04 Refactor custom options registration for more type-safe API 2017-06-14 14:33:44 +02:00
Dmitry Jemerov fc2a1fce8b Remove line break between ) and : if there's a line break before ) 2017-06-14 14:33:42 +02:00
Dmitry Jemerov 2ce430d608 Refactor spacing rules representation for easier debugging 2017-06-14 14:33:41 +02:00
Dmitry Jemerov a0b5a3a8a2 Implement parenthesis wrapping options 2017-06-14 14:33:41 +02:00
Dmitry Jemerov 487d948ad3 KotlinLanguageCodeStyleSettingsProvider: J2K and cleanup 2017-06-14 14:33:40 +02:00
Dmitry Jemerov 1da3c7f577 KotlinLanguageCodeStyleSettingsProvider: rename to .kt 2017-06-14 14:18:59 +02:00
Dmitry Jemerov f32dc9e84e Put lambda parameters on the same line as opening curly brace 2017-06-14 14:18:58 +02:00
Toshiaki Kameyama af941bfdf5 KT-18158 Expand selection should select the comment after expression getter on the same line (#1122)
* Expand selection should select the comment after expression getter on the same line #KT-18158 Fixed

* Fixed expand selection behavior for the declaration with comment #KT-18158

* Remove redundant code #KT-18158
2017-06-14 12:28:56 +02:00
Dmitry Jemerov b1f84676d1 Update tests according to new formatter behavior 2017-06-14 11:40:41 +02:00
Andrius Semionovas 8c6f93b899 Add tests for KEEP_LINE_BREAKS 2017-06-14 11:28:57 +02:00
Andrius Semionovas 839141e4f6 Stop formatting line breaks between keywords and parentheses 2017-06-14 11:28:57 +02:00
Andrius Semionovas c6acc4c5be KT-16558 Add space before parentheses config 2017-06-14 11:28:57 +02:00
Mikhael Bogdanov c4fc0f3808 Review fixes 2017-06-14 10:34:25 +02:00
Mikhael Bogdanov 724ac3cf59 Convert text util methods to extension properties 2017-06-14 10:34:24 +02:00
Mikhael Bogdanov e96d2212da Workaround for LightClass generation problem KT-18419 2017-06-14 10:34:24 +02:00
Mikhael Bogdanov c8d3553a31 Rename InlineCodegenUtil.kt to inlineCodegenUtils.kt 2017-06-14 10:34:23 +02:00
Mikhael Bogdanov bbb2b36794 Merge InlineCodegeUtil and InlineCodegeUtils 2017-06-14 10:34:22 +02:00
Mikhael Bogdanov 172a9c7e1e Code clean after convertion 2017-06-14 10:34:21 +02:00
Mikhael Bogdanov 51d494a271 Convert InlineCodegenUtil to Kotlin 2017-06-14 10:34:21 +02:00
Mikhael Bogdanov b7b3b3a19c Rename InlineCodegenUtil.java to InlineCodegenUtil.kt 2017-06-14 10:34:20 +02:00
Mikhael Bogdanov 63c4794c30 Clean code after convertion 2017-06-14 10:34:19 +02:00
Mikhael Bogdanov e6dbe87ee2 Convert InlineCodegen to Kotlin 2017-06-14 10:34:18 +02:00
Mikhael Bogdanov 7ce980815c Rename InlineCodegen.java to InlineCodegen.kt 2017-06-14 10:34:18 +02:00
Dmitry Jemerov 52cfec5bc1 Add actions for toggling type hints to list of irrelevant actions
They are available in many tests and only starting with  the 172 branch,
 so we ignore them to reduce clutter and branch divergence.
2017-06-13 19:45:39 +02:00
Nikolay Krasko b0c82aac6a Minor: remove warnings and reformat KotlinDebuggerTestCase.java 2017-06-13 19:14:50 +03:00
Nikolay Krasko a4f6b17559 Invalidate debugger tests caches on dist compiler updates 2017-06-13 19:14:49 +03:00
Nikolay Krasko 6d22e06359 Move all test data for single test to one directory 2017-06-13 19:14:48 +03:00
Simon Ogorodnik 75e5dca735 KT-18051: Allow copy-pasting from IDEA java to kotlin conversion
#KT-18051 fixed
2017-06-13 15:32:21 +03:00
Simon Ogorodnik fa3f87492c KT-12104: Fix smart completion for argument of implicit invoke
#KT-12104 fixed
2017-06-13 15:32:09 +03:00
Dmitry Jemerov 8077a71aec Show more correct type hints
- Don't show hints containing error type as type parameter
 - Do not expand type aliases
 - Show base type for types of anonymous objects

 #KT-18369 Fixed
 #KT-18341 Fixed
 #KT-18343 Fixed
2017-06-13 14:26:56 +02:00
Mikhail Glukhikh c6578384fb Minor: remove unused functions 2017-06-13 15:18:16 +03:00
Mikhail Glukhikh ada697c6b0 Highlighting visitor: make holder immutable 2017-06-13 15:18:10 +03:00
Mikhail Glukhikh 945859ae4d Remove non-actual suppress 2017-06-13 15:18:05 +03:00
Mikhail Glukhikh d5e605d5cc Distinguish captured highlighting from local variable / parameter
So #KT-14271 Fixed
2017-06-13 15:17:59 +03:00
Mikhail Glukhikh aa3589004e Highlighting visitor: refactoring
Do not call AnnotationHolder functions directly,
only via HighlightingVisitor
2017-06-13 15:17:53 +03:00
Mikhail Glukhikh f225d8dea5 J2K: HighlightingVisitor, AfterAnalysisHighlightingVisitor 2017-06-13 15:17:48 +03:00