Commit Graph

13626 Commits

Author SHA1 Message Date
Mikhail Glukhikh 295360ad3e Navigation from header to implementation and vice versa #KT-15204 Fixed 2016-12-15 15:50:19 +03:00
Nikolay Krasko d0d583e8ee Do indent adjustment on the fly only for the first element in the line (KT-15123)
Don't interfere spacing for dot in range operator.

 #KT-15123 Fixed
2016-12-15 14:33:18 +03:00
Nikolay Krasko ab04f900df Add name of script file to script module info 2016-12-15 14:33:16 +03:00
Nikolay Krasko e359b9b6de Remove the code for idea 144 2016-12-15 14:33:13 +03:00
Nikolay Krasko 88b3d9ff3f Make sdk info and library info difference more clear in debugger 2016-12-15 14:33:11 +03:00
Alexander Udalov 6393ac5871 Check language version for deprecation via SinceKotlinInfo 2016-12-15 11:46:17 +03:00
Alexander Udalov 122c631fcf Refactor getDeprecation() -> getDeprecations()
In subsequent commits, another kind of deprecation is introduced which should
be reported alongside with deprecation by the `@Deprecated` annotation
2016-12-15 11:46:16 +03:00
Mikhail Glukhikh 3540bc008b Build fix: testPlatform3 from MultiModuleHighlightingTest 2016-12-15 11:07:33 +03:00
Ilya Chernikov 038491399b Copy (partly) context classpath extraction code from script-util to JSR223 4 Idea, use it there 2016-12-15 07:26:08 +01:00
Ilya Chernikov cb7f22ffec Refactor JSR223 to support Compilable interface, drop daemon eval engine and sample, simplify 2016-12-15 07:26:07 +01:00
Ilya Chernikov 28b01126d9 Improve type boundaries for KotlinScriptDefinition interface 2016-12-15 07:26:07 +01:00
Ilya Chernikov 7a79fff9d6 Put lines history into all data structures returned by repl, refactor storage and passing of the history for that 2016-12-15 07:26:06 +01:00
Stanislav Erokhin 3600b51d90 Minor. fix test data. 2016-12-14 23:59:38 +03:00
Nikolay Krasko 2bb48fc802 Allow empty single-line bodies in property accessors 2016-12-14 13:40:44 +03:00
Nikolay Krasko 2841931ffa Do not force new line in body for empty functions and function expressions (KT-10828)
#KT-10828 Fixed
2016-12-14 13:35:31 +03:00
Stanislav Erokhin 653d589f98 FIx tests after renaming platform to header. 2016-12-13 23:08:47 +03:00
Mikhail Glukhikh 052a5033b5 PLATFORM_DECLARATION_WITHOUT_DEFINITION rendering changed (platform is included into diagnostic text now) 2016-12-13 19:06:08 +03:00
Mikhail Glukhikh 7649232f86 Platform header annotator: implementation + simple multi-platform highlighting tests #KT-14905 Fixed 2016-12-13 19:02:23 +03:00
Mikhail Glukhikh 57da92b862 Infrastructure change: module descriptor now knows its platform kind & its sources kind 2016-12-13 18:53:55 +03:00
Mikhail Glukhikh 04df23941f Minor fix of problem with non-existent ProjectFileIndex 2016-12-13 18:53:44 +03:00
Stanislav Erokhin 59efedf610 Rename platform to header. 2016-12-13 18:00:00 +03:00
Mikhael Bogdanov facee84020 Temporary remove JVM_1_8 target from facet settings 2016-12-13 14:51:27 +01:00
Dmitry Jemerov 502e99e918 Don't expect library classes to be shown in hierarchy view when using production scope 2016-12-13 12:43:55 +01:00
Dmitry Jemerov aad945e629 Run Gradle inspection test in EDT 2016-12-13 12:40:03 +01:00
Dmitry Jemerov 5cd9c0f729 Recognize new class finder added in 2016.3 2016-12-13 12:40:03 +01:00
Dmitry Jemerov b8dc1b6771 Allow regex matching of available action names; accept both 2016.2 and 2016.3 names of static import quickfix 2016-12-13 12:40:03 +01:00
Dmitry Jemerov 76b5eadbaa Mark file writable before creating intention delegate (change of writable property can increment out-of-code-block modification count, which recreates the cached resolve session) 2016-12-13 12:40:03 +01:00
Dmitry Jemerov 16e648e333 More sensible implementation of caching quickfix data between multiple fixes 2016-12-13 12:40:03 +01:00
Dmitry Jemerov a3aa2ca81e Use BodyResolveMode.PARTIAL_WITH_DIAGNOSTICS for checking whether an auto-import is still required 2016-12-13 12:40:03 +01:00
Dmitry Jemerov 4f916773c2 Add missing preparePsiElementForWrite() call 2016-12-13 12:40:03 +01:00
Dmitry Jemerov baad540516 Workaround for added @NotNull annotation on ProjectFileIndex.getInstance() 2016-12-13 12:40:03 +01:00
Dmitry Jemerov 24c1d9f90b Compilation fix due to added @NotNull annotation on MoveFilesOrDirectoriesUtil.doMoveFile 2016-12-13 12:40:03 +01:00
Stanislav Erokhin dbe8edda5f Remove propertyDelegate and fix unused parameter checker for provideDelegate. 2016-12-12 23:14:09 +03:00
Stanislav Erokhin 9dc9fb578f Rename toDelegateFor to provideDelegate. 2016-12-12 23:14:07 +03:00
Dmitry Petrov e2b6d2d849 Drop 'propertyDelegated' convention (without additional deprecation ceremony). 2016-12-12 23:13:58 +03:00
Dmitry Jemerov 7e92cf2af7 Don't create light classes for platform declarations
#KT-15137 Fixed
2016-12-12 20:47:45 +01:00
Dmitry Jemerov b4dd54f874 Add element validity check to KotlinRunConfigurationProducer.getStartClassFqName() (EA-86393 - PIEAE: PsiFileImpl.getText) 2016-12-12 17:50:28 +01:00
Dmitry Jemerov 2cc42ba151 Highlight code fragments only when they have a context (part of EA-84233 - assert: GetModuleInfoKt$getModuleInfo$.invoke) 2016-12-12 17:50:27 +01:00
Dmitry Jemerov bd0aa5a358 Avoid committing document in KDoc beforeCharTyped handler (EA-88521 - assert: PsiDocumentManagerBase.commitDocument) 2016-12-12 17:50:20 +01:00
Dmitry Jemerov d5e90b4123 Remove unnecessary uses of getContainingKtFile() (EA-83360 - CCE: KtElementImplStub.getContainingKtFile) 2016-12-12 17:50:11 +01:00
Dmitry Jemerov b5ad1e1be5 Check for file validity before calling findFileByRelativePath() (EA-92325 - IVFAE: VirtualDirectoryImpl.doFindChild) 2016-12-12 17:50:10 +01:00
Roman Elizarov 8affb2726f Pluggable Synthetic Objects 2016-12-12 18:43:26 +03:00
Simon Ogorodnik 7a4b6a1462 Fix for EA-89556 - (from J2K) ROME: DocumentImpl.replaceString 2016-12-12 18:35:16 +03:00
Dmitry Jemerov a7bd910dbb Don't try to calculate icon for invalid PSI elements
#KT-13443 Fixed
2016-12-12 16:24:51 +01:00
Simon Ogorodnik fb5398cdcd Fix for KT-14885 J2K on paste adds duplicated imports 2016-12-12 18:16:17 +03:00
Vyacheslav Gerasimov 9c78301008 Invoke rename handler with editor if possible in IllegalIdentifierInspection.RenameIdentifierFix
#KT-14760 Fixed
#KT-11646 Fixed
2016-12-12 13:47:58 +03:00
Mikhail Zarechenskiy 40ff7c6e33 Fix test data 2016-12-09 21:08:29 +03:00
Yan Zhulanow cbef0250aa Allow to turn the first parameter of a SAM-converted lambda into the receiver (KT-12848) 2016-12-09 20:01:21 +03:00
Yan Zhulanow 3b65cb1ef2 Check if modality is refined in "Redundant modifier" inspection 2016-12-09 20:01:18 +03:00
Yan Zhulanow 0a2b52c1ed Minor: Add allopen-ide and allopen-noarg to "idea" module test classpath 2016-12-09 20:01:16 +03:00