Mikhail Glukhikh
d7317c58e9
Move "Add test library to classpath" to irrelevant action list
...
This prevents inconsistencies like "Add JUnit 5.0" / "Add JUnit 5.2"
Should fix one relevant test
2018-08-06 19:04:12 +03:00
Mikhail Glukhikh
247bb912ba
Fix refactoring test (bunch file -> original file)
2018-08-06 19:04:09 +03:00
Mikhail Glukhikh
e15fc7da15
Fix two inspection tests (bunch file -> original file)
2018-08-06 19:04:07 +03:00
Nikolay Krasko
5ba877c144
Add empty test data files to make new test framework in 182 happy
2018-08-03 21:06:05 +03:00
Nikolay Krasko
759ffafb0a
Render flexible types with enhancement as enhanced in IDE (KT-25622)
...
Main targets for the fix is completion, parameters info, inlay hints and
override/implement.
Other IDE functions might be affected.
#KT-24911 Fixed
#KT-25616 Fixed
#KT-25622 Fixed
2018-08-03 16:00:09 +03:00
Nikolay Krasko
ceeeffd814
Extend list of annotations ignored in parameter info (KT-24911, KT-25622)
...
#KT-24911 Fixed
2018-08-03 16:00:04 +03:00
Natalia Selezneva
6672fd7bbf
Fix tests for highlighting in scripts with custom script definition
2018-08-03 15:25:35 +03:00
Natalia Selezneva
41dc059da9
Register custom file extension for scripts loaded from script template
2018-08-03 15:25:35 +03:00
Natalia Selezneva
be2d4964fd
Fix testData, add script-runtime
2018-08-03 15:25:35 +03:00
Toshiaki Kameyama
1ac6f18a47
"Convert put to assignment": Fix false positive inside elvis expression
...
So #KT-22072 Fixed
2018-08-03 13:21:50 +03:00
Toshiaki Kameyama
1b1e503716
Add quick-fix for default parameter value removal #KT-25146 Fixed
2018-08-03 13:17:49 +03:00
Toshiaki Kameyama
a059d50c8f
"Call chain may be simplified": fix false positive on Java Map
...
So #KT-25089 Fixed
2018-08-03 13:15:53 +03:00
Vyacheslav Gerasimov
a2bf417d75
Remove 172 bunchset
2018-08-02 19:32:18 +03:00
Vyacheslav Gerasimov
0103c0d2fd
Switch to 182 platform
2018-08-02 18:17:06 +03:00
Nikolay Krasko
f9845bab54
Workaround for the case when some classes are unloaded during ranking (KT-25774)
...
It's important that ranking preserve order of files found
in findFilesByNameInPackage()
It's only a workaround because it's expected for debugger to have
classes unloaded and some valid variants might get bad rank and
rejected because of that.
#KT-25774 Fixed
2018-08-02 14:38:28 +03:00
Nikolay Krasko
449069b1b7
Attach preceding line comments to property accessors (KT-25417)
...
#KT-25417 Fixed
2018-08-02 14:38:25 +03:00
Toshiaki Kameyama
4c34ced1fa
Introduct "Redundant 'with' call" inspection #KT-6633 Fixed
2018-08-02 09:23:27 +03:00
Ilmir Usmanov
4b03db771a
Minor. Fix test.
2018-07-30 18:59:44 +03:00
Dmitry Savvinov
f90b29c2e3
Support contracts in PartialBodyResolveFilter
...
Previously, PartialBodyResolveFilter didn't know about contracts and was
filtering out calls of such functions, leading to unstable completion in
cases like that:
fun test(x: Any?) {
require(x is String)
x.<caret>
}
However, PartialBodyResolveFilter works by pure PSI, while to determine
if function has a contract we have to resolve it.
To solve it, we do something very similar to what has been done with
Nothin-returning functions: introduce
KotlinProbablyContractedFunctionShortNameIndex, which collects all
function which *may* have a contract during indexing.
^KT-25275 Fixed
2018-07-27 16:59:24 +03:00
Dmitry Savvinov
5ab79a111d
Introduce 'mayHaveContract'-flag in stubs
...
This is needed for further commit, which supports contracts-based
smartcasts in partial body resolve mode.
NB: Stubs can be built from 3 sources:
- source code (contract presence can be checked by PSI)
- binary data (contract presence can be checked by Kotlin Metadata)
- decompiled sources
The last case is a bit of a headache, because usually bodies are omitted
in decompiled sources. To workaround it, we have to inject stubbed
contract-call in the body.
2018-07-27 16:59:24 +03:00
Alexey Sedunov
5275e19c76
Move: Do not consider type alias -> expect class change as a conflict
...
Given they have the same fqname
#KT-23594 Fixed
2018-07-27 16:08:13 +03:00
Alexey Sedunov
1c30a12d95
Move: Account for implemented modules in internal access check
...
#KT-23590 Fixed
2018-07-27 16:08:13 +03:00
Alexey Sedunov
0406d61622
Rename: Update filenames within expect/actual set (when necessary)
...
#KT-23772 Fixed
2018-07-27 16:08:13 +03:00
Mikhail Glukhikh
ddd3a0a46e
Implement liftToExpected correctly for primary constructor properties
...
Before this commit, we always tried to find expect property in this case.
However, there is at least one case when we should find parameter of
expect primary constructor instead (safe delete).
So #KT-25321 Fixed
2018-07-26 18:01:42 +03:00
Mikhail Glukhikh
14d6560e67
Add modality/visibility/inline to all expect/actual declarations in QF
...
So #KT-25539 Fixed
2018-07-26 18:01:01 +03:00
Mikhail Glukhikh
48017a81ee
Move isEquivalentTo() from KtClass to KtClassOrObject
...
This makes objects and companions with the same qualified name
compatible from find usages point of view
So #KT-25326 Fixed
So #KT-25438 Fixed
2018-07-26 18:00:26 +03:00
Mikhail Glukhikh
46cc773953
Test refactoring: header/impl -> expect/actual in safe delete tests
2018-07-26 18:00:21 +03:00
Mikhail Glukhikh
26b57c6250
MPP navigation / search: handle expect objects correctly #KT-25317 Fixed
2018-07-26 18:00:18 +03:00
Toshiaki Kameyama
4d1b8405cb
"Suspicious ==/===": do not report when comparison with null is included
...
So #KT-24001 Fixed
2018-07-25 16:15:59 +03:00
Toshiaki Kameyama
9e83506c02
Introduce intention: trimMargin <--> trimIndent #KT-25056 Fixed
2018-07-25 12:30:00 +03:00
Nikolay Krasko
7b6df0a7cc
Don't delete unresolved imports in cleanup inspection (KT-25678)
...
It looks like they were deleted because of the bug in search for deprecated
imports search.
#KT-25678 Fixed
2018-07-24 17:09:14 +03:00
Mikhail Glukhikh
cc1d9e88d5
1.3 migration: make inspections working for non-experimental coroutines
2018-07-24 10:24:18 +03:00
Toshiaki Kameyama
88a5eb24d5
"Convert lambda to reference": fix case with companion object
...
So #KT-24385 Fixed
2018-07-23 18:21:38 +03:00
Toshiaki Kameyama
0ae2054af4
"Replace if with when": do not add empty else block #KT-18681 Fixed
2018-07-23 18:21:37 +03:00
Toshiaki Kameyama
3e207fd6b2
Move lambda out: don't apply to multiple/default functional parameters
...
So #KT-24694 Fixed
2018-07-23 18:21:37 +03:00
Toshiaki Kameyama
a9c91099a4
Correct "Redundant override" inspection message #KT-25608 Fixed
2018-07-23 18:21:37 +03:00
Simon Ogorodnik
b58e35a3e5
173: Revert changes for IDEA < 181
2018-07-20 18:41:24 +03:00
Simon Ogorodnik
c608395c7c
KT-22815: Update testData
2018-07-20 18:41:11 +03:00
Simon Ogorodnik
9ec0ce6ec8
KT-22815: Show documentation for function value/type params
2018-07-20 18:41:08 +03:00
Simon Ogorodnik
e4d76382b8
KT-22815: Update testData for quick documentation
2018-07-20 18:41:04 +03:00
Simon Ogorodnik
33a6721270
KT-22815: Update quick-doc testData
2018-07-20 18:40:21 +03:00
Dmitry Petrov
acf0bb349c
Update testData for restricted expression annotations retention
2018-07-20 10:39:51 +03:00
Denis Zharkov
f72aa78eec
Fix libraries analysis for case of isReleaseCoroutines feature enabled
...
#KT-25466 In Progress
2018-07-19 16:19:04 +03:00
Nikolay Krasko
481c428881
Add version replace fix for kotlinx coroutines in Gradle (KT-25251)
...
#KT-25251 In Progress
2018-07-19 16:09:57 +03:00
Dmitry Savvinov
76c651421b
Deprecate visibility of static members inherited from Java
...
Now they are not visible by short name through companion objects, just
like classifiers in KT-21515
^KT-25333 In progress
2018-07-19 13:32:38 +03:00
Mikhael Bogdanov
56c535d505
Fix test data
2018-07-19 10:52:13 +02:00
Dmitry Petrov
a457a9f870
Update testData for IDEA tests for annotations with target EXPRESSION
2018-07-18 15:56:11 +03:00
Denis Zharkov
cc2280b95b
Fix test data after 89d99e3989
2018-07-18 11:14:46 +03:00
Yan Zhulanow
a4b3653e1c
Debugger: Navigate to the right file in MPP projects (#KT-25152, #KT-25147)
2018-07-17 20:54:29 +03:00
Nikolay Krasko
f9de91016a
Inspection for experimental coroutines imports migration (KT-25251)
...
#KT-25251 In Progress
2018-07-17 02:22:14 +03:00