Commit Graph

32387 Commits

Author SHA1 Message Date
Alexey Andreev a9ed789727 KT-3008 Fix CLI and JPS tests related to JS translator 2016-06-27 15:33:28 +03:00
Alexey Andreev 2d994c1a03 KT-3008 Run Google closure compiler in a separate JVM 2016-06-27 15:33:27 +03:00
Alexey Andreev 64cd0b70d7 KT-3008 Minor refactoring and clean up 2016-06-27 15:33:27 +03:00
Alexey Andreev b090b79d92 KT-3008 Add UI that allows to change module kind in IDEA Kotlin configurator 2016-06-27 15:33:26 +03:00
Alexey Andreev 496539d101 KT-3008 Add module kind attribute to Maven plugin. Fix tests from libraries subproject 2016-06-27 15:33:26 +03:00
Alexey Andreev b6b604d78f KT-3008 Fix UMD and plain module wrappers when module id is not a valid JS identifier 2016-06-27 15:33:25 +03:00
Alexey Andreev e38b83880f KT-3008 Add tests for module wrappers 2016-06-27 15:33:25 +03:00
Alexey Andreev 0cfacfa44a KT-3008 Merge JS runtime modules in one kotlin.js 2016-06-27 15:33:25 +03:00
Alexey Andreev b556b6efca KT-3008 Fix JS backend tests 2016-06-27 15:33:24 +03:00
Alexey Andreev 848d7f92fa KT-3008 Implement AMD, CommonJS and UMD wrappers. Compile stdlib and builtins modules into separate JS files and wrap them in UMD. 2016-06-27 15:33:24 +03:00
Alexey Andreev 95b78e18df KT-3008 Change the way how modules are referenced in JS 2016-06-27 15:33:23 +03:00
Alexey Andreev 2909533522 KT-3008 Add module kind. Include module kind and module dependencies in metadata 2016-06-27 15:33:23 +03:00
Nikolay Krasko 8d055f6952 Use file.modificationStamp to invalidate caches for synthetic files
It previously worked because of updating all counters. That behaviour was removed in
https://github.com/JetBrains/intellij-community/commit/3b860d69ee1b32b210ddf88b1e042dd70ea87cd9.

getUserData(FILE_OUT_OF_BLOCK_MODIFICATION_COUNT) is probably useless because copied file has
isEventSystemEnabled() == false that prevents sending notifications about PSI changes. This need additional checks.
2016-06-27 15:02:42 +03:00
Nikolay Krasko 67eca2cbb7 Minor: remove superfluous method that was necessary becuase of KT-5457 2016-06-27 15:02:42 +03:00
Michael Bogdanov abc7d5101d Fix for KT-12106: import static of reified companion object method throws IllegalAccessError
#KT-12106 Fixed
2016-06-27 12:31:31 +03:00
Mikhael Bogdanov 5df52e08cc Temporary removed increment and '+=' tests on local delegated properties 2016-06-27 12:13:28 +03:00
Pavel V. Talanov 6d04c6e102 Drop no longer used FileLibraryScope 2016-06-25 22:25:31 +03:00
Pavel V. Talanov 80de07d98f KotlinScriptConfigurationManager: refactor roots caching and use NonClasspathDirectoriesScope 2016-06-25 22:25:29 +03:00
Pavel V. Talanov 9c09b8a37d KotlinScriptConfigurationManager: do not use dumbService and 'scriptExternalImportsProvider' is no longer nullable 2016-06-25 22:25:27 +03:00
Pavel V. Talanov 2534a5fdfc KotlinScriptConfigurationManager: perform initial caching using StartupManager 2016-06-25 22:25:26 +03:00
Pavel V. Talanov 6a1096a8e9 KotlinCacheServiceImpl: cache all script dependencies as whole to provide faster completion in scripts
A lot of stuff to be fixed after
2016-06-25 22:25:24 +03:00
Pavel V. Talanov be1e8fcfda Disable templates that are available on "TOP_LEVEL" in scripts 2016-06-25 22:25:21 +03:00
Pavel V. Talanov c3df743a28 FileScopeFactory: extra imports computed via virtual file as opposed to KtFile
This fixes completion session acting as if there are no imports
2016-06-25 22:25:19 +03:00
Pavel V. Talanov e46fab5151 KotlinScriptConfigurationManager: Use invokeLater in notifyRootsChanged 2016-06-25 22:25:17 +03:00
Pavel V. Talanov c9583f3aa9 Provide (not actually correct) resolve scope for script files that have dependencies
This is needed for completion to determine dependencies of the file correctly
2016-06-25 22:25:16 +03:00
Pavel V. Talanov 2e126d3452 Allow navigating to Java sources of script dependencies
Using deprecated API seems the only working solution atm
2016-06-25 22:25:14 +03:00
Pavel V. Talanov 8ad856e1d0 Allow navigating to Kotlin library sources of script dependencies 2016-06-25 22:25:12 +03:00
Pavel V. Talanov 693eeb9f0a Split ScriptModuleInfo into script itself and its dependencies
For now include all dependencies of all scripts for every script, to be improved later
2016-06-25 22:25:10 +03:00
Pavel V. Talanov 1a9c46f34b Ide Scopes: Allow including script dependencies into search scope
This includes script dependencies into scopes for some of the IDE services
Should be revisited later to decide if given service should work for scripts
2016-06-25 22:25:08 +03:00
Pavel V. Talanov 7ededbd5e2 KotlinScriptConfigurationManager: run caching code in smart mode 2016-06-25 22:25:05 +03:00
Pavel V. Talanov 1da3efea81 Implement API to get source roots of script dependencies in KotlinScriptConfigurationManager and KotlinScriptConfigurationManager 2016-06-25 22:25:03 +03:00
Pavel V. Talanov ae61767bc7 Refactor: move KotlinScriptDependenciesIndexableSetContributor to a separate file 2016-06-25 22:25:02 +03:00
Pavel V. Talanov ad9c8eedfb Implement JavaClassesInScriptDependenciesShortNameCache to allow completion and auto-import of java classes 2016-06-25 22:25:00 +03:00
Pavel V. Talanov 9185baf13c J2K KotlinSourceFilterScope: rename file 2016-06-25 22:24:58 +03:00
Pavel V. Talanov a461dd0da2 J2K KotlinSourceFilterScope: autoconvert 2016-06-25 22:24:56 +03:00
Pavel V. Talanov ddb3327992 Minor: Remove scoping limitation in newly created indices 2016-06-25 22:24:54 +03:00
Pavel V. Talanov 8921ced9dd Indenter: fix indentation on top level in scripts 2016-06-25 22:24:52 +03:00
Ilya Chernikov b0bff64cff fixes after review 2016-06-25 22:24:50 +03:00
Ilya Chernikov 5a77d2e92b Change to single ScriptTemplateDefinition annotation and separate AcceptedAnnotations annotation on resolver 2016-06-25 22:24:48 +03:00
Ilya Chernikov f24d954302 Remove unused support for script templates configs 2016-06-25 22:24:47 +03:00
Ilya Chernikov 4f05f839a3 Add previous imports to resolving interfaces to enable effective caching implementations 2016-06-25 22:24:45 +03:00
Ilya Chernikov f30b402640 Change a parameter "context" in script templates to environment: Map<String, Any?>? 2016-06-25 22:24:43 +03:00
Ilya Chernikov bf683a63fb Implement annotation proxy generation for script dependencies resolvers 2016-06-25 22:24:41 +03:00
Ilya Chernikov 8a06eafaf1 Rename-refactor interfaces and methods of the script dependencies resolving 2016-06-25 22:24:39 +03:00
Ilya Chernikov 5fd013ef42 minor: rename a field in ScriptTemplateProvider interface 2016-06-25 22:24:37 +03:00
Ilya Chernikov 5bea5bcc37 Add script files changes monitoring, logic for initialization during index rebuilding 2016-06-25 22:24:36 +03:00
Ilya Chernikov 8dac72f465 Add support for script classfiles caching 2016-06-25 22:24:34 +03:00
Ilya Chernikov 3157421189 Fix File Manager tests after classpath/index initialization became lazy 2016-06-25 22:24:32 +03:00
Ilya Chernikov 64bb47ed37 Switch to File instead of String for classpaths in script dependencies 2016-06-25 22:24:30 +03:00
Ilya Chernikov 5e3ba36cc1 Simplify GetScriptDependencies interface 2016-06-25 22:24:28 +03:00