Natalia Selezneva
97531c8ec2
Do not include buildSrc module dependencies into script dependencies (KT-30295)
...
^KT-30295 Fixed
2019-04-04 11:06:14 +03:00
Natalia Selezneva
aa99d8fcbe
Rename extension point for additional dependencies of scripts
2019-04-04 11:06:14 +03:00
Ilya Kirillov
41640e1a15
New J2K: Add dependency to idea-core in j2k
2019-04-03 11:20:36 +03:00
Burak Eregar
9ab54d0e44
Fix: String templates suggest removing curly braces for backtick escaped identifiers
2019-04-02 11:48:47 +03:00
Alexander Podkhalyuzin
742ffb98ad
Use indexes instead of slow directory search for script dependencies
...
#KT-30018 Comment
2019-04-01 17:54:28 +03:00
Natalia Selezneva
0de0321fa9
Do not call FileEditorManager.getSelectedEditor outside UI thread (KT-30130)
...
^KT-30130 Fixed
2019-04-01 14:28:17 +03:00
Natalia Selezneva
ca49e17157
Run indexing for new script dependencies if they are updated from notification
2019-03-27 00:00:11 +03:00
Natalia Selezneva
224f37ca00
Fix warning in scripts that dependencies are not available
...
^KT-30441 Fixed
2019-03-26 23:57:20 +03:00
Ilya Chernikov
c56382a62b
Move common idea and compiler parts of the scripting plugin to the new jar
2019-03-21 12:02:29 +01:00
Ilya Chernikov
f2bddce4fd
Refactor script definition loading error handling
...
reenable logging of failures
suppress loading from failed contributors
2019-03-20 21:19:24 +01:00
Nikolay Krasko
a0d015dd4d
Minor: document shortening and smart enter use resolve in write action
2019-03-20 14:23:42 +03:00
Dmitry Gridin
9659453351
Improve: intention "Introduce Import Alias" should suggest new names for the new alias
...
#KT-30456 Fixed
2019-03-19 16:42:41 +07:00
Dmitry Gridin
ff34788eb3
Minor: refactoring KotlinNameSuggester
2019-03-19 16:42:41 +07:00
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