Vladimir Dolzhenko
6f03e42ef7
Revert back Inspection: convert initialized val to non-null type
...
Relates to ^KT-35757
Relates to ^KT-19321
2020-09-09 23:38:21 +02:00
Vladimir Dolzhenko
d324ae6cda
Fix AS 4.0 compilation
2020-09-09 17:59:49 +02:00
Toshiaki Kameyama
5c011bc954
Don't report when property is multi-line and action is MOVE
2020-09-09 22:31:56 +07:00
Toshiaki Kameyama
4569b85a16
MoveVariableDeclarationIntoWhenInspection: report it if initializer is single line even if property is multi line
...
#KT-39467 Fixed
2020-09-09 22:31:56 +07:00
Vladimir Ilmov
75d4c7e91c
Find stdlib usages test case
...
relates to #KT-39196
2020-09-09 17:30:04 +02:00
Vladimir Ilmov
8b239d89b6
SourceNavigationHelper multifile classes support
...
Use .class files as BINARY instead of .metadata.
relates to #KT-39196
2020-09-09 17:30:04 +02:00
Vladimir Dolzhenko
ac22232b8d
Register disposable startup items in PluginStartupService
2020-09-09 12:51:19 +00:00
Vladimir Dolzhenko
e5985ad98b
Rename PluginStartupService to PluginStartupApplicationService
2020-09-09 12:51:18 +00:00
Roman Golyshev
7bd9c52732
FIR Completion: Fix completion in function calls (foo.bar<caret>())
...
In such expressions, `KtCallExpression` wraps `KtSimpleNameExpression`,
so `getQualifiedExpressionForSelector()` returns `null`
Also, enable tests that are fixed by this
2020-09-09 13:14:08 +03:00
Roman Golyshev
2d4d48b401
FIR IDE: Invert the order of the scopes for completion
...
This way local declarations will be fetched first
2020-09-09 13:14:08 +03:00
Dmitriy Novozhilov
1a84ec9677
[FIR] Mark all session components respectively to they have mutable state or not
...
Also add documentation for all fir annotations
2020-09-09 12:38:35 +03:00
Dmitriy Novozhilov
41b395b0aa
[FIR] Extract mutable state from InferenceComponents
2020-09-09 12:38:35 +03:00
Dmitriy Novozhilov
912676d868
[FIR] Introduce ResolutionContext and get rid of components in Candidate
2020-09-09 12:38:34 +03:00
Dmitriy Novozhilov
19707667fd
[FIR] Cleanup detection that applicability is successful
2020-09-09 12:38:34 +03:00
Dmitriy Novozhilov
68f3d84e22
[FIR] Use CandidateApplicability from FE 1.0
2020-09-09 12:38:34 +03:00
Ilya Kirillov
2ab68b3245
Wizard: move boolean setting description to the bottom
2020-09-09 00:20:58 +03:00
Ilya Kirillov
ce00366c7f
Wizard: fix when first selected template cannot be applied
2020-09-09 00:20:58 +03:00
Ilya Kirillov
7002e86d6b
Wizard: fix path & artifactId updating on name update
...
#KT-41695 fixed
2020-09-09 00:20:56 +03:00
Dmitriy Novozhilov
a8a5ed3cd3
[FIR] Get rid of runCheck in checkers components
2020-09-08 12:51:11 +03:00
Vladimir Ilmov
aa04c0b5df
Parent call already on KotlinBuiltInDecompiler.kt:79
2020-09-08 10:59:17 +02:00
Pavel Kirpichenkov
b5aca450b1
Make cancellation checks when building resolution anchor caches
...
^KT-39734
2020-09-07 18:52:10 +03:00
Pavel Kirpichenkov
54811613f4
Minor: drop unnecessary wrapper for utility function
...
^KT-39734
2020-09-07 18:52:10 +03:00
Pavel Kirpichenkov
1ff064d98d
Make Kotlin OOCBM updater for modules internal again
...
Replace direct API access with dedicated service.
2020-09-07 18:52:10 +03:00
Pavel Kirpichenkov
9d6bdc6fc4
Support modification tracking for source-dependent LibraryInfo
...
#KT-39734
2020-09-07 18:52:10 +03:00
Pavel Kirpichenkov
6abd708d42
Preserve order entry to module info mapping in IdeaModelInfosCache
2020-09-07 18:52:10 +03:00
Pavel Kirpichenkov
5892bdf3f4
Extend import resolution for library-to-source analysis
...
Use composite importing scope for references when resolution anchors are enabled.
Composite scope provides additional descriptors from scope of resolution anchor module.
Overriding old importing scope with a new one is not possible as it breaks library
dependencies on other libraries, which are inaccessible in anchor scope (scope for sources).
KT-24309 In Progress
2020-09-07 18:52:10 +03:00
Roman Golyshev
8c876e4621
FIR IDE: Get rid of originalPosition in KtFirCompletionCandidateChecker
2020-09-07 18:46:38 +03:00
Roman Golyshev
828fc2520c
FIR IDE: Refactor KtFirCompletionCandidateChecker
...
- Move searching for the `originalEnclosingFunction`
to the `getImplicitReceivers`
2020-09-07 18:18:02 +03:00
Pavel Kirpichenkov
33ac487a42
[FIR-IDE] Fix leaking KtAnalysisSession
2020-09-07 17:40:18 +03:00
Vladimir Ilmov
45c67a90c2
(CoroutineDebugger) Disposing under IW lock.
...
#KT-41505 fixed
2020-09-07 14:50:07 +02:00
Sebastian Kaspari
01143f24a4
Add KotlinClassConstructorInfoHandler for showing parameter info of parameterized super class constructor.
...
^KT-41617 Fixed
2020-09-07 13:23:08 +02:00
Pavel Kirpichenkov
d674f519fd
[FIR-IDE] Fix completion check for generic extensions
...
Generic candidate extensions are completed in partial mode
when there is not enough information for type parameter in return position.
Partial completion mode in single candidate resolver leads to unconditionally failing candidate.
Providing noExpectedType instead of null guarantees full completion.
2020-09-07 13:38:11 +03:00
Vladimir Dolzhenko
3de32e13ea
Clean up declarationAccessorNames debug check in UnusedSymbolInspection
...
declarationAccessorNames(KtNamedDeclaration) could be more than declaration.getAccessorNames() as it relies on LC, some of them could be not accessible
^EA-237873 Fixed
2020-09-07 09:36:28 +00:00
Vladimir Dolzhenko
127257aa27
Provide setter-method for LC for private property setter
...
^KT-41694 Fixed
2020-09-07 09:36:28 +00:00
Vladimir Dolzhenko
b5b319803b
Add more diagnostics to tackle exception in KotlinFunctionParameterInfoHandler
...
Relates to #EA-221900
2020-09-07 09:36:27 +00:00
Vladimir Dolzhenko
87e70cf690
Handle project disposed in ScriptDefinitionsManager
...
^EA-237136 Fixed
2020-09-07 09:36:26 +00:00
Vladimir Dolzhenko
4e3b1f141e
Use runReadActionInSmartMode instead of runReadAction in ConfigureKotlinInProjectUtils
...
runReadActionInSmartMode has no effect if it is already run under runReadAction - therefore it could lead to IndexNotReadyException
^EA-220414 Fixed
^EA-210940 Fixed
^KT-30929 Fixed
2020-09-07 09:36:26 +00:00
Vladimir Dolzhenko
02be470e91
Check if vFile is still valid in ScriptClassRootsUpdater#updateHighlighting
...
^EA-218774 Fixed
2020-09-07 09:36:25 +00:00
Vladimir Dolzhenko
ba027a785c
Fix NPE in GradleScriptInfo
...
^EA-237746 Fixed
2020-09-07 09:36:24 +00:00
Vladimir Dolzhenko
698f51079f
Perform paste reference resolve in smart mode
...
^EA-226712 Fixed
2020-09-07 09:36:24 +00:00
cketti
7755d9fe24
Mark used parameters as disabled in parameter info popup
...
When using named arguments the IDE might be unable to map the current
argument to a parameter. In that case mark already used parameters as
disabled. That way developers can easily see which parameters have not
been used yet.
^KTIJ-128 Fixed
2020-09-05 23:17:46 +02:00
Toshiaki Kameyama
3f7aab6fae
Redundant 'asSequence' call: don't report when reciever type is Map
...
#KT-41338 Fixed
2020-09-04 22:10:34 +02:00
cketti
78493395c3
Don't mark signature as inapplicable when argument is empty/incomplete
...
This will improve the usability when using named arguments where
incomplete arguments can't be mapped to a parameter simply by position.
^KT-24172 Fixed
2020-09-04 13:11:24 +02:00
Toshiaki Kameyama
343010a833
"Unused equals expression" inspection: highlight whole expression with yellow background
...
^KT-41615 Fixed
2020-09-04 12:55:55 +02:00
Dmitriy Novozhilov
b81ec2c8f0
Fix compilation errors in bunches
2020-09-04 11:42:51 +03:00
Dmitriy Novozhilov
6906e0d82d
Move common jvm classes from :core:descriptors.jvm to :core:compiler.common.jvm
2020-09-04 11:42:51 +03:00
Dmitriy Novozhilov
696f089b3e
Make DescriptorVisibility delegate to Visibility
2020-09-04 11:42:50 +03:00
Dmitriy Novozhilov
d1fd1da56f
Rename Visibility to DescriptorVisibility
2020-09-04 11:07:42 +03:00
Dmitriy Novozhilov
64ec3fc42b
Move BuiltinSpecialProperties and JvmAbi to :core:compiler.common.jvm
2020-09-04 11:07:41 +03:00
Dmitriy Novozhilov
10fd164b77
Extract FE 1.0 dependent part from JavaToKotlinClassMap
...
Also move JavaToKotlinClassMap to :core:compiler.common.jvm
2020-09-04 11:07:41 +03:00