Pavel V. Talanov
340fe82fa0
Minor, KotlinScriptConfigurationManager: add TODO
2016-08-16 16:49:09 +03:00
Pavel V. Talanov
10660f35d7
Add tests for script configuration machinery, namely ScriptTemplateProvider EP
...
Test highlighting and navigation depending on provided script definition
2016-08-16 16:45:59 +03:00
Ilya Chernikov
46a7c706e1
Fixes and refactorings after review
2016-08-11 09:11:11 +02:00
Ilya Chernikov
4d5b96ab8a
Change error loading script template to warning - not to show an exception...
...
because it is not an exception e.g. in case of using old gradle
2016-08-11 09:11:11 +02:00
Ilya Chernikov
c9441bd7b3
Update template(s) provider interface to support multiple templates, rename it appropriately
2016-08-11 09:08:40 +02:00
Alexey Sedunov
1b546d18ff
Override/Implement Members: Do not expand type aliases in the generated members. Retain abbreviated types during flexible type approximation
...
#KT-13244 Fixed
2016-08-10 11:45:36 +03:00
Alexey Sedunov
1a4ff598e3
Override/Implement Members: Do not make return type non-nullable if base
...
return type is explicitly nullable
#KT-13383 Fixed
#KT-13379 Fixed
2016-08-10 11:45:35 +03:00
Alexey Sedunov
f57c9279f9
Override/Implement Members: Support "Copy JavaDoc" options for library classes
...
#KT-12997 Fixed
2016-08-10 11:45:34 +03:00
Valentin Kipyatkov
6ff91d1399
KT-12793 Code completion doesn't suggest abstract protected extension methods
...
#KT-12793 Fixed
2016-08-05 19:36:52 +03:00
Ilya Chernikov
1248230c69
Fix after review, add logging for scripting-specific behavior
2016-08-03 09:51:40 +02:00
Pavel V. Talanov
fbc5d64aab
gradleScriptTemplateProvider: fix NPE
2016-08-03 09:51:40 +02:00
Ilya Chernikov
80f7dda6c7
Update gradle script resolver environment:
...
- JVM options from IDEA config to connect/run daemon with appropriate options (need to be tested)
- A lexing function to allow gradle plugin to check whether dependency-defining part of the script is actually changed
2016-08-03 09:51:40 +02:00
Pavel V. Talanov
350abbe8cd
KotlinScriptConfigurationManager, minor: Extract utility to get transform list of file to vfs roots
2016-08-03 09:51:40 +02:00
Pavel V. Talanov
500554e58c
Clarify API so that it's possible to get single KotlinScriptExternalDependencies per script file
2016-08-03 09:51:40 +02:00
Mikhail Glukhikh
6e391854a0
Data flow values refactoring: removed DataFlowValue.kind.isStable, renamed DataFlowValue.isPredictable -> DataFlowValue.isStable
2016-07-28 15:14:48 +03:00
Alexander Udalov
d945c33d5e
Move some members from OverrideResolver to OverridingUtil
2016-07-25 15:55:31 +03:00
Alexander Udalov
191f532675
Remove OverrideResolver#filterOutOverriding, simplify the only usage
2016-07-25 15:55:31 +03:00
Alexander Udalov
89c5799155
Move utilities used in IDE from OverrideResolver to descriptorUtils.kt
2016-07-25 15:55:31 +03:00
Alexey Sedunov
0a8490a068
Introduce Type Alias: Suggest initial name based on extracted type
2016-07-25 12:44:30 +03:00
Mikhail Glukhikh
9001b9bcc0
DataFlowValue & DataFlowValueFactory major refactoring, get rid of DataFlowValue.id : Any?
...
Instead, DataFlowValue now requires IdentifierInfo implementation to be created
DataFlowValue is compared using IdentifierInfo
2016-07-21 21:15:05 +03:00
Alexey Sedunov
3ba776fffa
Code Insight: Format generated declarations
...
#KT-11176 Fixed
(cherry picked from commit 3641ad6)
2016-07-20 15:39:05 +03:00
Dmitry Jemerov
4391d833b9
do not reenter indices to avoid deadlock
...
#KT-12718 Fixed
2016-07-14 23:32:05 +02:00
Ilya Chernikov
ee2c5c1b73
minor: Make script dependencies classpath processing more robust
2016-07-12 13:21:11 +02:00
Ilya Chernikov
d345d2bc95
Reduce GradleScriptTemplateProvider dependency from gradle plugin, add missing pieses to it's environment
...
Fixes #KT-12913
2016-06-30 21:32:41 +02:00
Ilya Chernikov
2ca4d635ea
Support backward compatibility with gradle-script-kotlin 0.2.0, some refactoring
2016-06-30 21:32:37 +02:00
Alexey Sedunov
f9d28bf76d
Override/Implement: Prefer not-nullable return type when overriding Java method without nullability annotation
...
#KT-12381 Fixed
(cherry picked from commit 2b87f8e)
2016-06-28 15:07:31 +03:00
Alexey Sedunov
542f8d9fd2
Move: Support quoted package names
...
#KT-12411 Fixed
(cherry picked from commit 95239e5)
2016-06-28 15:07:30 +03:00
Alexey Sedunov
ffe4e760d7
Override/Implement: Implement JavaDoc/KDoc copying
...
#KT-8682 Fixed
#KT-12735 Fixed
(cherry picked from commit f4486be)
2016-06-28 15:07:19 +03:00
Alexey Sedunov
5296b61ce9
Rename: Qualify references to members of enum companions in case of conflict with enum entries
...
#KT-10033 Fixed
(cherry picked from commit 3373d54)
2016-06-28 15:07:11 +03:00
Alexey Sedunov
14b6c1930e
Rename: Add name suggestions to Rename dialog
...
#KT-6372 Fixed
(cherry picked from commit 84ca283)
2016-06-28 15:07:02 +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
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
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
Ilya Chernikov
b0bff64cff
fixes after review
2016-06-25 22:24:50 +03:00
Ilya Chernikov
f24d954302
Remove unused support for script templates configs
2016-06-25 22:24:47 +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
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
64bb47ed37
Switch to File instead of String for classpaths in script dependencies
2016-06-25 22:24:30 +03:00
Ilya Chernikov
a60e1ab807
Fix implementation of gradle ScriptTemplateProvider extension
...
WARNING: adds dependency to idea's gradle-and-groovy-plugin to idea-core
2016-06-25 22:24:27 +03:00
Ilya Chernikov
834372a3b3
Implement extension point for providing script templates
2016-06-25 22:24:25 +03:00
Ilya Chernikov
082290f8e3
Refactor script dependencies management
2016-06-25 22:24:23 +03:00
Pavel V. Talanov
bafe8e55ce
Create SyntheticMemberDescriptor interface
...
Implement this interface by sam adapters/constructors and use it in navigation
#KT-11708 Fixed
2016-06-20 20:15:34 +03:00