Pavel V. Talanov
06fd1f3c44
Drop unused LibrarySourceHacks
2017-03-21 16:20:02 +03:00
Pavel V. Talanov
dec9fa0324
SourceNavigationHelper: fix navigation to callables
...
Previously we could differentiate between callables with the same name
when relevant type declaration were in the same file only
Problem manifested most severely when several copies of sources were attached
to the same library
2017-03-21 16:20:01 +03:00
Pavel V. Talanov
d9a9d50602
KotlinScriptConfigurationManager#notifyRootsChanges: run synchronously in tests
...
Allows to unmute some of the ScriptConfigurationNavigation tests
2017-03-21 16:20:00 +03:00
Pavel V. Talanov
88447d69cb
Introduce ScriptDependenciesSourceModuleInfo
...
Implement SourceForBinaryModuleInfo api to support navigation
Support in getModuleInfo and KotlinCacheServiceImpl
2017-03-21 16:19:59 +03:00
Pavel V. Talanov
434018f679
ScriptConfigurationNavigationTest: test navigation to kotlin library
2017-03-21 16:19:59 +03:00
Pavel V. Talanov
115474b90f
SourceNavigationHelper: use API to narrow search scope
2017-03-21 16:19:58 +03:00
Pavel V. Talanov
4dee108afe
J2K SourceNavigationHelper: convert to Kotlin and prettify
2017-03-21 16:19:57 +03:00
Pavel V. Talanov
aa74ccf163
J2K SourceNavigationHelper: rename file
2017-03-21 16:19:57 +03:00
Pavel V. Talanov
4c94d931fa
findDecompiledDeclaration: narrow decompiled declaration search scope
...
Search scope of library that descriptor originated from
Introduce API that matches binaries and its' sources via IdeaModuleInfos
2017-03-21 16:19:56 +03:00
Pavel V. Talanov
569e7ac593
getModuleInfo, minor: clarify parameter parameter
2017-03-21 16:19:55 +03:00
Pavel V. Talanov
c7f147d058
Introduce NavigationWithMultipleLibrariesTest
...
Test navigation to library decompiled and source declaration when
there are multiple copies of the same library in project
Related to ba1ee99e97
2017-03-21 16:19:54 +03:00
Pavel V. Talanov
47e77201d5
AbstractNavigateToLibraryTest: refactor, extract utility code
2017-03-21 16:19:54 +03:00
Dmitry Jemerov
04b64fa30c
Sort Kotlin versions loaded from Maven by number
...
Otherwise we get 1.0.7 on top of 1.1.1, which is suboptimal
2017-03-21 14:03:25 +01:00
Dmitry Jemerov
8f8db75bb4
getNonConfiguredModules(project, configurator) excludes modules already configured with other configurators
...
#KT-16381 Fixed
2017-03-21 14:02:05 +01:00
Dmitry Jemerov
95bc0813f8
Don't show "Configure Kotlin" notification with an empty list of configurators (context: KT-16070)
2017-03-21 14:02:05 +01:00
Dmitry Jemerov
9f8af1feea
Refactor getNonConfiguredModules(Project)
...
Rename to getNonConfiguredModulesWithKotlinFiles() to match what it
actually does, remove duplicate configurator status check, extract code
for collecting all configurators
2017-03-21 14:02:05 +01:00
Dmitry Jemerov
b86fe60a24
Don't report "can be configured" status if the file is already configured with another Gradle configurator
2017-03-21 14:02:05 +01:00
Dmitry Jemerov
1f96ead801
"Configure Kotlin in project" handles modules from Gradle source roots
...
THose modules are now always collapsed to their base modules.
#KT-11828 Fixed
2017-03-21 14:02:05 +01:00
Dmitry Jemerov
b1a65e4c74
Don't show pre-1.1.0 version of Kotlin in version chooser when configuring JS projects
...
#KT-16400 Fixed
2017-03-21 14:02:05 +01:00
Dmitry Jemerov
8e26d5257f
Don't add stdlib-jre7 or stdlib-jre8 dependencies when configuring Kotlin with pre-1.1 version
...
#KT-16401 Fixed
2017-03-21 14:02:05 +01:00
Dmitry Jemerov
cd4636a1e5
Add current version to "Configure Kotlin in project" version chooser if it is a release version and it wasn't found in the search results
...
#KT-16571 Fixed
2017-03-21 14:01:37 +01:00
Dmitry Jemerov
0f21595e4b
Don't show "Configure Kotlin" if module is configured, project is not
...
Report CAN_BE_CONFIGURED from Gradle configurator only if we didn't
find any file containing valid configuration (normally the top-level
project file in an Android project doesn't have any Kotlin
configuration, so we report CAN_BE_CONFIGURED even though the module
file contains valid configuration)
2017-03-21 14:01:37 +01:00
Dmitry Jemerov
b48b3b3237
Show "Configure Kotlin" notification at most once after project opening
...
Don't show notification after every sync; trigger it from
rootsChanged handler because the root model is not yet updated at
syncDone point
#KT-16590 Fixed
2017-03-21 14:01:37 +01:00
Dmitry Jemerov
0a586291b6
Check jar name before trying to load JS library version
...
#KT-16596 Fixed
2017-03-21 14:01:37 +01:00
Dmitry Jemerov
09b60e3f77
JsLibraryStdDetectionUtil: J2K
2017-03-21 14:01:37 +01:00
Dmitry Jemerov
dffff77a5d
JsLibraryStdDetectionUtil: rename to .kt
2017-03-21 14:01:37 +01:00
Dmitry Jemerov
ad3be8f8b5
Add test for checking JS runtime version
2017-03-21 14:01:37 +01:00
Dmitry Jemerov
1c0acee989
Remove obsolete code for removing obsolete JS library
2017-03-21 14:01:37 +01:00
shiraji
27e1462b00
Apply quick-fix "Make visible" for INVISIBLE_FAKE #KT-16131 Fixed
2017-03-21 13:50:49 +03:00
Simon Ogorodnik
2804264289
Fix regression of completion inside string templates
...
CompletionContributor should not store offsets inside
replacement zone(part of file which are replaced with
dummy identifier) in offsetMap
#KT-16848 fixed
2017-03-20 18:46:11 +01:00
Dmitry Jemerov
cf18c2243f
Fix test: check highlighting only in one direction
...
Otherwise, when we check the highlighting on one of the files, the text
of the other still contains the <lineMarker> annotation and can't be
indexed as valid Kotlin code.
2017-03-20 18:46:10 +01:00
Dmitry Jemerov
10aedaf0f4
Adjust test data for IDEA 2017.1
...
Since https://github.com/JetBrains/intellij-community/commit/9c8003c
deprecated methods are considered to be entry points, so the Safe
Delete quickfix is no longer available for them.
2017-03-20 18:46:08 +01:00
Nikolay Krasko
4edfd0d960
Move getting source position to manager thread in tests
...
Real usages are performed in this thread too. Using AWT now fails
under runInReadActionWithWriteActionPriorityWithRetries added in
https://github.com/JetBrains/intellij-community/commit/b0e995b41e9f4c0d7a64b912d3708da179cf413c
2017-03-20 18:46:04 +01:00
Alexey Sedunov
ecd56c6a40
Safe Delete: Fix tests in IDEA 2017.1
...
Now Java refactoring checks for side effects when deleting
arguments, so instantiation of Kotlin FunctionN is treated as
"unsafe"
2017-03-20 18:46:03 +01:00
Alexey Sedunov
b65460c12f
Move: Fix tests in IDEA 2017.1
...
Do not prevent usages search if target directory is not known yet.
Force content root configuration for multi-module tests
2017-03-20 18:46:02 +01:00
Dmitry Jemerov
0638106bf3
Fix NPE in tests when ProjectFileIndex is not available
2017-03-20 18:45:51 +01:00
Dmitry Jemerov
61f157e89d
Remove write action around finishLookup(), according to IJ 2017.1 req
2017-03-20 18:45:48 +01:00
Dmitry Jemerov
a539939388
Fix testdata according to contract inference changes in 2017.1
2017-03-20 18:45:46 +01:00
Dmitry Jemerov
ad821e83bd
Fix testdata according to comment selection changes in 2017.1
2017-03-20 18:45:45 +01:00
Dmitry Jemerov
d6709b726e
Fix testdata according to changes in automatic renaming rules in 17.1
2017-03-20 18:45:44 +01:00
Dmitry Jemerov
374cf517e1
Don't try to create "add modifier" fix for read-only elements
...
This fixes a failure of KotlinCleanupInspectionTest on IDEA 17.1.
2017-03-20 18:45:43 +01:00
Dmitry Jemerov
3d98237304
Fix GradleFacetImportTest: run write action only in EDT
2017-03-20 18:45:43 +01:00
Dmitry Jemerov
49a4625368
Fix testdata: Android projects use kotlin-stdlib-jre7
2017-03-20 18:45:42 +01:00
Dmitry Jemerov
12fc89f35d
Update to 171.SNAPSHOT to pick up fix for IDEA-169570; fix compilation
2017-03-20 18:45:41 +01:00
Nikolay Krasko
e57b3651c2
Replace removed method in LibraryPresentationProviders
2017-03-20 18:45:39 +01:00
Nikolay Krasko
615f9d3a1f
Try to avoid exception in getOffset() call
2017-03-20 18:45:38 +01:00
Nikolay Krasko
eb8415a1f3
Use new api from idea 171 in KotlinStepOverInlinedLinesHint
2017-03-20 18:45:37 +01:00
Nikolay Krasko
bcf29e6fbf
Run tests in read action and not in EDT thread
...
Otherwise test will fail because of runInReadActionWithWriteActionPriority call in EDT
2017-03-20 18:45:36 +01:00
Nikolay Krasko
3e6f57b684
Updated nullability in RunLineMarkerContributor
2017-03-20 18:45:34 +01:00
Nikolay Krasko
4f079d2768
LightQuickFixTestCase.parseActionHint() method was removed
2017-03-20 18:45:33 +01:00