Natalia Selezneva
f98429c509
Preprocess script dependencies before running UnusedSymbolInspection
...
^KT-29474
2019-03-06 15:42:50 +03:00
Natalia Selezneva
47a4500eaa
Show notification that script dependencies are not ready yet
2019-03-06 15:42:49 +03:00
Natalia Selezneva
1d56f44093
Show progress for loading script dependencies even show notification is true when there are more than 3 scripts in queue
...
We are trying to update script dependencies silently when 'Reload script dependencies on file change' is off,
but in case when the queue for update is too long we need to make process visible to user and make it cancelable.
2019-03-06 15:42:49 +03:00
Natalia Selezneva
8331d9789e
Fire one 'roots changed' event after all scripts dependencies loaded
...
^KT-29474
2019-03-06 15:42:49 +03:00
Natalia Selezneva
6bc6dea916
Check project.isDisposed before attaching script reports
2019-03-06 15:42:48 +03:00
Ilya Chernikov
336f43dbf2
Reorganize files and folders in the scripting plugin
2019-03-02 08:10:16 +01:00
Ilya Chernikov
adb4d264ec
Move script definition extraction functions to the plugin
...
plus finish refactoring of these functions
2019-03-02 08:10:16 +01:00
Andrey Uskov
325ed8eb32
Change class hierarchy of KotlinSourceRootType. Deadlock during concurrent classloading fixed
...
#KT-30137 Fixed
2019-03-01 13:12:16 +03:00
Natalia Selezneva
bc1e836f01
Fix saving Kotlin Scripting Setting to xml
...
^KT-30146 Fixed
2019-03-01 09:42:43 +03:00
Natalia Selezneva
560acd631c
KtScriptInitializer doesn't has a descriptor
2019-02-28 10:59:13 +03:00
Dmitry Gridin
d0c3a28996
Move canBePossibleToDropReceiver to Companion object & fix warnings
2019-02-27 20:43:35 +03:00
Sergey Rostov
17c0422d8f
Build: got rid of @TestOnly annotations on fields and classes
2019-02-27 09:08:34 +03:00
Ilya Chernikov
d1a1594f26
Remove redundant direct usages of the ScriptDefinition in compiler
...
plus some refactoring around definition extraction
2019-02-21 15:59:48 +01:00
Toshiaki Kameyama
8e61a13809
Move lambda argument out of parentheses: fix false negative when function type is type parameter
...
#KT-26979 Fixed
2019-02-18 16:48:11 +03:00
Natalia Selezneva
d8080f205c
Always scan root for script templates in background
...
^KT-29893 Fixed
Provide AsyncScriptDefinitionsContributor.
Show a notification if the highlighting for script is requested when not all script templates are loaded
2019-02-15 16:06:54 +03:00
Natalia Selezneva
00cd6a698d
Do not run multiple script dependencies updates if dependencies weren't saved yet
...
^KT-29770 Fixed
2019-02-15 16:06:54 +03:00
Natalia Selezneva
8918a83fb4
Unify cache size for script dependencies
2019-02-15 16:06:54 +03:00
Ilya Chernikov
c6a24c03e4
Move CliScriptDefinition provider to the plugin too, fix tests
2019-02-10 13:33:22 +01:00
Vadim Brilyantov
6a657714ec
Move usage statistics to idea source root
2019-02-01 16:47:03 +03:00
Ilya Chernikov
298aaf999e
[minor] fix function name typo
2019-01-28 13:15:36 +01:00
Sergey Rostov
0f2fb4ff82
Build: remove intellijCore/annotations.jar usages
2019-01-28 13:43:08 +03:00
Vyacheslav Gerasimov
f58acbeef5
Build: implement useBootstrapStdlib flag
...
Excludes stdlib projects from build and uses bootstrap stdlib artifacts
#KT-29205
2019-01-21 21:09:40 +03:00
Sergey Rostov
883970fadb
Add explicit dependencies to nullable annotations
2018-12-26 09:07:06 +03:00
Simon Ogorodnik
ea24a3c602
KT-28898: Optimize type-alias extensions and type-alias expansions lookup
...
#KT-28898 Fixed
2018-12-25 16:49:47 +03:00
Natalia Selezneva
4e6fb84bae
Create one instance of StandardIdeScriptDefinition per project
...
ScriptModuleInfo for scripts outside source roots in compared by virtualFile and script definition.
So when we use ScriptDefinitionsManaged.getDefaultScriptDefinition we shouldn't create a new one on each call
EA-132810 - assert: DiagnoseUnknownModuleInfoReporter.report
2018-12-25 15:32:26 +03:00
Natalia Selezneva
6042a3a0f7
Scripts: fix NPE during accessing ScriptDependenciesCache
...
Getting value from SLRUMap needs write lock, because it can move value from one queue to another
EA-105195 Fixed
2018-12-25 15:32:26 +03:00
Natalia Selezneva
8ceae8bd6d
Fix 'Invalid file' exception during script dependencies update
...
Fix EA-125840 - assert: FileManagerImpl.findFile
2018-12-25 15:32:25 +03:00
Mikhail Glukhikh
93882736ed
OverrideMemberChooserObject refactoring: introduce MemberGenerateMode
2018-12-19 19:56:16 +03:00
Mikhail Glukhikh
ca3d758fba
Create expect/actual class: fix inline class generation
...
#KT-28744 Fixed
#KT-28745 Fixed
2018-12-19 19:55:56 +03:00
Vadim Brilyantov
c307d07b47
fix build for idea plugin with usage statistics
2018-12-14 20:19:16 +03:00
Nikolay Krasko
5fb90a8a81
Better caret position after Insert curly braces around variable (KT-28739)
...
Introduce helper class and move caret to it's original position.
#KT-28739 Fixed
2018-12-13 12:36:01 +03:00
Simon Ogorodnik
445c85f829
Support overriding module/library/sdk for particular light PsiClass
...
To support light R classes
2018-12-11 15:46:11 +03:00
Denis Zharkov
30c60c7b1f
Do not render nullability in UltraLightChecker when it's irrelevant
...
It's necessary because after next changes,
they become different for ultra and old light classes.
The former (ultra) is more correct but it doesn't help when
we need to compare our implementation with reference
2018-12-05 16:34:44 +03:00
Sergey Rostov
74f6c8ac5c
Move resources: remove includes from src to resources, include resource folder in custom build scripts
2018-11-30 15:01:02 +03:00
Mikhail Glukhikh
222939efe7
Create expect / actual refactoring: extract common part to utilities
2018-11-28 12:00:55 +03:00
Natalia Selezneva
2d2a073c55
Tests: replace immediate run with TransactionGuard.submitTransaction to fix write in write-unsafe context in tests
2018-11-28 11:16:26 +03:00
Toshiaki Kameyama
4abcd9a053
Make internal: don't suggest for @JvmField property inside companion object of interface #KT-27138 Fixed
2018-11-26 18:39:54 +03:00
Denis Zharkov
23c43cd124
Support retrieving class of enum entry in ultra-light classes
2018-11-26 11:36:43 +03:00
Denis Zharkov
7de8b4de4e
Support declarations returning object literals in ultra-light classes
2018-11-26 11:36:25 +03:00
Mikhail Glukhikh
f31428257d
Add a set of new tests for KT-27075 (create expected class) + some fixes
2018-11-21 15:13:01 +03:00
Mikhail Glukhikh
4ab4358d22
OverrideMemberChooserObject cleanup: remove forceAbstract (function gen)
2018-11-21 15:13:01 +03:00
Mikhail Glukhikh
2277dcc76f
Introduce quick-fix "create expected class / function / property"
...
#KT-27075 Fixed
2018-11-21 15:13:01 +03:00
Mikhail Glukhikh
46a5d76254
Create actual: add delegation to secondary constructor, if needed
...
#KT-26518 Fixed
2018-11-21 15:13:00 +03:00
Mikhail Glukhikh
90a2f70fd1
Use OverrideMemberChooserObject to generate also primary constructors
...
Relates to KT-27093 and similar problems
2018-11-21 15:13:00 +03:00
Mikhail Glukhikh
cd041cca71
Use OverrideMemberChooserObject to generate also abstract actual decls
...
Relates to KT-27093 and similar problems
2018-11-21 15:13:00 +03:00
Mikhail Glukhikh
3612c2983e
Use OverrideMemberChooserObject to generate actual decls in quick-fixes
...
This can fix a lot of issues related to inexact generation, in particular
#KT-27093 Fixed
2018-11-21 15:12:59 +03:00
Natalia Selezneva
b8086d9093
Do not start multiple background threads loading dependencies for different scripts
...
^KT-27743 Fixed
2018-11-20 08:51:03 +03:00
Ilya Chernikov
c05c46d50f
Convert to release coroutines (kotlinx-coroutines.1.0.1)
2018-11-17 19:24:34 +01:00
Natalia Selezneva
4661ab9961
Fix loading Kotlin Scripting options from kotlinScripting.xml
...
^KT-28046 Fixed
2018-11-13 08:47:19 +03:00
Natalia Selezneva
da71a35187
Update highlighting in UI thread
2018-11-13 08:47:19 +03:00