Pavel Kirpichenkov
b7ea590e23
[IDEA] Add HTML render for ambiguous callable references diagnostic
...
^KT-36125 Fixed
2020-03-31 12:04:01 +03:00
Dmitry Gridin
81d35e1e61
i18n: add dynamic text getters for SelfTargetingIntention
...
#KT-37483
2020-03-30 14:58:36 +07:00
Dmitry Gridin
d9c356b041
i18n: add displayedName to ModuleTestSourceInfo
...
#KT-37483
2020-03-30 14:58:36 +07:00
Dmitry Gridin
ab07fa5f6c
i18n: fix IdeaModuleInfos
...
#KT-37483
2020-03-30 14:58:32 +07:00
Dmitry Gridin
a5cc11317e
i18n: fix KotlinSuppressableWarningProblemGroup
...
#KT-37483
2020-03-30 14:58:31 +07:00
Dmitry Gridin
986bc3fb8f
i18n: update bundle in idea-analysis
...
#KT-37483
2020-03-30 14:58:27 +07:00
Dmitry Gridin
871a6caddb
i18n: remove duplication in IdeErrorMessages
...
#KT-37483
2020-03-30 14:58:26 +07:00
Dmitry Gridin
54a3d8e3ad
i18n: update bundle for KotlinSuppressableWarningProblemGroup
...
#KT-37483
2020-03-30 14:58:25 +07:00
Dmitry Gridin
297a443fe4
i18n: fix name/displayedName for ModuleInfo
...
#KT-37483
2020-03-30 14:58:25 +07:00
Dmitriy Dolovov
9bbfe9c1ac
Rename: KonanPlatform, KonanPlatforms -> NativePlatform, NativePlatforms
2020-03-29 23:20:52 +07:00
Dmitriy Dolovov
dfbbae3991
IDE, Common: Don't create KLIB metadata factories for each new KLIB
2020-03-29 23:20:46 +07:00
Dmitriy Dolovov
5b9770a4dd
IDE, JS: Don't create KLIB metadata factories for each new KLIB library
2020-03-29 23:20:41 +07:00
Vladimir Dolzhenko
674f1d129f
Clean up of plugin-common.xml and convert components to services
2020-03-27 07:54:14 +00:00
Roman Golyshev
b0bd39e715
KT-36068 Remove redundant commitAllDocuments calls
...
- Those calls seem to be redundant since the platform already
commits all documents before invoking any intention
- Also those calls are getting in the way of `Preview Intention` action
by requiring write action, which is not granted by the platform at
the moment
2020-03-25 17:52:29 +03:00
Dmitry Savvinov
abd20e3a90
Cache Library -> LibraryInfo mapping
...
With Klibs, creation of LibraryInfo isn't that cheap now -- it usually
involves inspecting files in roots, reading manifest and such (see for
example NativePlatformKindResolution.createLibraryInfo)
2020-03-25 17:23:36 +03:00
Dmitry Savvinov
7d5396ac95
Introduce ModuleInfo -> SdkInfo cache
...
This fixes KT-35050 properly by caching this mapping and preventing
inspecting dependencies multiple times.
2020-03-25 17:23:36 +03:00
Denis Zharkov
94193c91a0
FIR: Refactor designated body transformers
...
The idea is making their mechanics more transparent and clear
Namely, we should move to the next level of designation only for declaration's content
Otherwise there might be some wrong steps when somebody just randomly
calls "transformElement" on the parent declaration.
For example, it happens for local classes when we resolve their supertypes, etc.
2020-03-25 14:49:28 +03:00
Denis Zharkov
7927ef9f66
FIR: Extract BodyResolveContext from BodyResolveTransformerComponents
...
Its content is assumed to be changing and might be injected into
body resolver
2020-03-25 14:48:53 +03:00
Dmitriy Novozhilov
2c37627b15
[FIR] Add unified diagnostics for psi and light tree
2020-03-25 11:35:43 +03:00
Dmitriy Novozhilov
1a3fef5fa1
[FIR] Switch names of FirDiagnostic and ConeDiagnostic
2020-03-25 11:35:43 +03:00
Vladimir Dolzhenko
dfd42dae1f
Revert back fetchAnalysisResultsForElement
...
Relates to #KT-37467
2020-03-24 18:58:38 +01:00
Dmitry Gridin
f92936ae12
AbstractKotlinInspection: fix suppressor
...
#KT-37576 Fixed
2020-03-24 09:35:10 +00:00
Dmitriy Dolovov
01558f48ae
KLIB: Clean-up AbstractKlibLibraryInfo API
2020-03-24 13:37:51 +07:00
Dmitriy Dolovov
c9245ef497
IDE: Port JS to use the same KLIB utilities as Native & Common
2020-03-24 13:37:38 +07:00
Dmitriy Dolovov
e81479e30b
KLIB: Avoid check for KLIBs w/o components for other platforms than Native
2020-03-24 13:37:26 +07:00
Vladimir Dolzhenko
a832c12550
Fetch analysis results if it is available
...
Relates to #KT-37467 and #KT-37515
2020-03-23 14:49:47 +00:00
Vladimir Dolzhenko
0073d260f8
Fix incremental analysis for whitespaces
...
incremental analysis could ignore whitespace iff old item was whitespace
#KT-37629 Fixed
2020-03-23 14:46:55 +00:00
Vladimir Dolzhenko
8935c600c1
Add checkCanceled on find usages execution path
...
#KT-36138 Fixed
2020-03-23 14:46:13 +00:00
Mikhail Zarechenskiy
1cf970b110
Revert "Minor. Specify type arguments explicitly"
...
This reverts commit 2e9075115b .
2020-03-23 16:39:22 +03:00
Dmitriy Dolovov
f46fc7d848
IDE: Fix i18n for KlibMetaFileType
2020-03-23 15:39:33 +07:00
Dmitriy Dolovov
f4aa0fad44
IDE: Unify creation of KLIB package fragment providers (common, native)
2020-03-23 15:39:27 +07:00
Dmitriy Dolovov
bf4a153c0c
IDE: Use CachingIdeKlibMetadataLoader in Native & Common KLIB analysis
2020-03-23 15:39:21 +07:00
Dmitriy Dolovov
5f7a6d55a8
KLIB: Fix compilation
2020-03-23 15:38:46 +07:00
Dmitry Savvinov
26ab9b4fc9
Move Klib-related logic from idea-native module
2020-03-23 15:38:40 +07:00
Dmitry Savvinov
b6d811c69c
Extract common logic of detecting klibs and creating LibraryInfo by klib
2020-03-23 15:38:19 +07:00
Dmitry Savvinov
6ccb8cd0a3
Properly check platform of klib by reading manifest
2020-03-23 15:38:11 +07:00
Vladimir Dolzhenko
f82e2db65d
Fix effective search scope for find references
...
Relates to #KT-18619
2020-03-22 10:19:33 +01:00
Vladimir Dolzhenko
e951f1a43a
Find Usages and Go to declaration of element used via import alias
...
#KT-18619 Fixed
2020-03-20 14:59:24 +00:00
Zalim Bashorov
4f042cbea5
[IDE KJS] Recognize and load correctly Kotlin/JS klibs in IDE
...
#KT-36276 Fixed
2020-03-20 01:28:48 +03:00
Zalim Bashorov
d07436c831
[IDE KJS] Move JsResolverForModuleFactory to proper place
2020-03-20 01:27:41 +03:00
Dmitriy Novozhilov
496489cdf4
[FIR] Introduce CheckerContext for call and declaration checkers
2020-03-19 23:11:17 +03:00
Dmitriy Novozhilov
39372c06cf
[FIR] Move all checkers and theirs infrastructure to separate module
2020-03-19 09:51:01 +03:00
Vladimir Dolzhenko
3cdcdbf6a8
Register Kotlin specific highlight passes via highlightingPassFactory in 193+
2020-03-18 18:08:54 +01:00
Vladimir Dolzhenko
d21be3b665
Revert back fetchAnalysisResultsForElement
...
Relates to #KT-37467
#KT-37515 Fixed
2020-03-16 17:19:01 +01:00
Dmitry Gridin
f12ed33a70
AbstractKotlinBundle: introduce withHtml
...
#KT-37483
2020-03-16 18:40:52 +07:00
Dmitry Gridin
3c812c1ad1
i18n: update bundle for IdeErrorMessages
2020-03-16 18:40:52 +07:00
Dmitry Gridin
1b9bb77b2f
i18n: fix tests
2020-03-16 18:40:51 +07:00
Dmitry Gridin
4a7160b51a
i18n: update bundle for idea-analysis
2020-03-16 18:40:50 +07:00
Dmitry Gridin
5bd44b73b2
i18n: fix bundle location
2020-03-16 18:40:50 +07:00
Dmitry Gridin
c1dc72e677
i18n: add bundle for idea/intentions
2020-03-16 18:40:50 +07:00