Commit Graph

3320 Commits

Author SHA1 Message Date
Dmitry Gridin a3defb300a i18n: fix tests 2020-03-16 18:40:50 +07:00
Dmitry Gridin e42bec8ea2 i18n: fix text 2020-03-16 18:40:49 +07:00
Dmitry Gridin 0a3e577b6c i18n: add bundle for idea/inspections 2020-03-16 18:40:49 +07:00
Dmitry Gridin 76ac4ffb96 i18n: add bundle for idea/inspections/* 2020-03-16 18:40:49 +07:00
Dmitry Gridin 3035477e0c i18n: add bundle for idea/codeInsight 2020-03-16 18:40:49 +07:00
Dmitry Gridin 4eb50ed17c i18n: add bundle for idea/actions 2020-03-16 18:40:49 +07:00
Dmitry Gridin 1af8553360 i18n: add bundle for idea/quickfix 2020-03-16 18:40:48 +07:00
Dmitry Gridin 07861fdc6f i18n: add bundle for idea/quickfix/* 2020-03-16 18:40:48 +07:00
Dmitry Gridin a6269004c5 i18n: add bundle for idea/refactoring/ui 2020-03-16 18:40:48 +07:00
Dmitry Gridin a589d8869b i18n: add bundle for idea/refactoring/safeDelete 2020-03-16 18:40:48 +07:00
Roman Golyshev c3cbcc0842 i18n: move all kotlin bundles to resources/messages directories 2020-03-16 18:40:47 +07:00
Roman Golyshev 1dded486f1 i18n: fix bundle messages/testData messages where necessary 2020-03-16 18:40:47 +07:00
Roman Golyshev e1cb561398 i18n: add bundle for idea/refactoring/rename
- Modify `text.parameter` value to `Parameter`;
use `text.parameter.0` in previous usages
- Add @Nls and @NonNls annotations to few places
2020-03-16 18:40:47 +07:00
Roman Golyshev 4fc76e25a8 i18n: add bundle for idea/refactoring/pushDown 2020-03-16 18:40:47 +07:00
Roman Golyshev 37e1333fe1 i18n: add bundle for idea/refactoring/pullUp
- Add @NonNls to used methods from `KtPsiFactory`
2020-03-16 18:40:47 +07:00
Roman Golyshev 73de63cefc i18n: add bundle for idea/refactoring/move 2020-03-16 18:40:47 +07:00
Roman Golyshev 93493bdc09 i18n: add bundle for idea/refactoring/memberInfo 2020-03-16 18:40:47 +07:00
Dmitry Gridin 94d10c7c63 i18n: move to KotlinBundle 2020-03-16 18:40:46 +07:00
Dmitry Gridin 20ec600e2d i18n: add bundle for idea/highlighter 2020-03-16 18:40:44 +07:00
Yan Zhulanow 040204e36e i18n: Internationalize part of the 'idea' module 2020-03-16 18:40:44 +07:00
Dmitry Gridin fff9ab5ac3 i18n: add bundle for idea/findUsages 2020-03-16 18:40:43 +07:00
Dmitry Gridin 2da27a9e6a i18n: add bundle for idea/configuration 2020-03-16 18:40:43 +07:00
Yan Zhulanow 7a40274b71 i18n: Unify string naming in KotlinBundle 2020-03-16 18:40:42 +07:00
Yan Zhulanow 4cc19d3fda i18n: Add bundle for idea-jvm 2020-03-16 18:40:42 +07:00
Yan Zhulanow 830c7cef07 i18n: Add bundle for JVM debugger (evaluation) 2020-03-16 18:40:42 +07:00
Yan Zhulanow 7f80fb8b98 i18n: Add bundle for JVM debugger (coroutine) 2020-03-16 18:40:42 +07:00
Yan Zhulanow e0d5607fcd i18n: Add bundle for JVM debugger (core) 2020-03-16 18:40:41 +07:00
Yan Zhulanow 3b931514ac i18n: Extract common caching code from bundles, J2K existing bundles 2020-03-16 18:40:41 +07:00
Yan Zhulanow 207ecf757b Rename .java to .kt 2020-03-16 18:40:41 +07:00
Dmitry Gridin 3aa97643f5 i18n: add bundle for idea-core 2020-03-16 18:40:40 +07:00
Vladimir Dolzhenko 364d97e950 Invalidate partialBodyResolveCache on OCB instead of PSI modification
#KT-37466 Fixed
2020-03-16 11:14:50 +00:00
Roman Golyshev f29e665dce Add "ML completion for Kotlin" experimental feature checkbox
- This checkbox should be shown only in IDEA >= 193 and should not
be shown in AS
- ML completion is enabled with `CompletionMLRankingSettings`, which
resides in `com.intellij.stats.completion` plugin that is bundled by
default
  - The `<depends>` section is required to be able to use classes from
  this plugin inside Kotlin plugin
- `CompletionMLRankingSettings` have package-private setter for enabling
ranking completion, so we have to use reflection to enable it (it will
probably change in the future)
2020-03-13 18:09:32 +03:00
Vladimir Dolzhenko ae4629a5a6 Fetch analysis results if it is available
The general idea is to try to fetch a full analysis if it is existed in PerFileAnalysisCache instead of go to ResolveElementCache and do analysis there. Do not perform analysis if it is not in PerFileAnalysisCache.

#KT-37467 Fixed
2020-03-13 09:25:28 +01:00
Vladimir Dolzhenko 87242b419a Improvements in KotlinCopyPasteReferenceProcessor
reduced scope of nonBlockingRead to avoid long rerun of it
used smart pointers to keep valid elements over changes
moved back to non-modal progress

Relates to #KT-37414
2020-03-12 22:42:58 +01:00
Alexander Podkhalyuzin 5bb74d9840 Fixed generated text from jvm classfile, when quotes is required
#KT-34759 Fixed
2020-03-11 15:41:41 +03:00
Vladimir Dolzhenko ddba8e7691 Extend incremental analysis to object declaration
Fixed #KT-37250
2020-03-10 09:08:47 +01:00
Vladimir Dolzhenko dc6be68a41 Handle properly lambda change in incremental analysis
Fixed #KT-37273
2020-03-06 11:12:33 +01:00
Vladimir Dolzhenko 0be5a82460 Use LightJavaModule.getModule for 193
Fixed #KT-37229
2020-03-04 15:30:09 +01:00
Ilya Kirillov 97e320b57f Don't show IR_COMPILED_CLASS error in IJ when it arises in module with backend IR enabled
The problem here is that library resolver uses global project compiler
settings instead of the module ones. That behaviour is caused by more
global problem described in #KT-21246

As a temporary solution we just do not show IR_COMPILED_CLASS error in
IDE if it arises in a module which have -XuseIR or
-Xallow-jvm-ir-dependencies option provided

#KT-36907 fixed
2020-02-28 11:45:51 +03:00
Vladimir Dolzhenko 1f47c6d54f Add missed calcHashCode for ModuleSourceScope subclasses 2020-02-27 21:17:25 +01:00
Roman Artemev bb43a66716 [Metadata] Add platform dependent type transformer
- Fix forward declaration type construction
2020-02-26 14:55:54 +03:00
Roman Artemev 25a91a217e [KLIB] Fix package for NullFlexibleTypeDeserializer 2020-02-26 14:55:53 +03:00
Dmitry Savvinov 66ef49cecc Fix CCE under composite mode
This commit essentially reverts change in IdeaResolverForProject made in
423aeb9a08

The issue is that 'platform.findAnalyzerServices' may return non-
CompositeAnalyzerServices even under composite analysis mode, when
platform is single-target (e.g. 'JvmAnalyzerServices' for JVM-only)

^KT-36978
2020-02-25 15:09:49 +03:00
Ilya Kirillov 7f50dcb3a8 EA-210234: Fix invalid access to Java resolution facade
Do not try to get Java resolution facade for non-Java PSI elements
2020-02-25 13:58:28 +03:00
kvirolainen 223ed1ad60 KT-27601 review fixes 2020-02-22 08:55:50 +01:00
kvirolainen 90cfa80683 KT-27601 keep imports for extension functions used in kdoc 2020-02-22 08:55:50 +01:00
Dmitry Savvinov 423aeb9a08 Always check project.useCompositeAnalysis in findAnalyzerServices
The important things here are changes in
ResovlerElementCache/PerFileAnalysisCache. Previously, we'd always use
'CompositeAnalyzerServices' for common-platform, even with HMPP turned
off.

However, with HMPP turned off, common-platform is always coerced to
[JVM, JS, Native], no matter which platforms that project actually
targets.
So, even if project compiles only for JVM/Native, we'll detect
platform of common module as [JVM, JS, Native], build composite analyzer
services *which include all checkers from all platforms*, and then
report false-positive errors from JS checkers.

^KT-35031 Fixed
^KT-33573 Fixed
^KT-34925 Fixed
2020-02-21 20:00:21 +03:00
Nikolay Krasko 6c83e9fb85 Clean LANGUAGE_VERSION_SETTINGS after the test 2020-02-21 16:07:24 +03:00
Vladimir Dolzhenko 7053f1d00c Drop CancellationCheck usage from 193
Relates to #KT-36891
2020-02-21 13:40:48 +01:00
Vladimir Dolzhenko 7e832e50ac Move copy/paste resource bundles to Kotlin
#KT-36877 #EA-224686 Fixed
2020-02-20 14:06:11 +01:00