File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
server/src/main/kotlin/org/javacs/kt Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,11 @@ public data class SnippetsConfiguration(
17
17
var enabled : Boolean = true
18
18
)
19
19
20
+ public data class CodegenConfiguration (
21
+ /* * Whether to enable code generation to a temporary build directory for Java interoperability. */
22
+ var enabled : Boolean = true
23
+ )
24
+
20
25
public data class CompletionConfiguration (
21
26
val snippets : SnippetsConfiguration = SnippetsConfiguration ()
22
27
)
@@ -100,6 +105,7 @@ class GsonPathConverter : JsonDeserializer<Path?> {
100
105
}
101
106
102
107
public data class Configuration (
108
+ val codegen : CodegenConfiguration = CodegenConfiguration (),
103
109
val compiler : CompilerConfiguration = CompilerConfiguration (),
104
110
val completion : CompletionConfiguration = CompletionConfiguration (),
105
111
val diagnostics : DiagnosticsConfiguration = DiagnosticsConfiguration (),
Original file line number Diff line number Diff line change @@ -159,6 +159,12 @@ class KotlinWorkspaceService(
159
159
sf.updateExclusions()
160
160
}
161
161
162
+ // Update code generation options
163
+ get(" codegen" )?.asJsonObject?.apply {
164
+ val codegen = config.codegen
165
+ get(" enabled" )?.asBoolean?.let { codegen.enabled = it }
166
+ }
167
+
162
168
// Update code-completion options
163
169
get(" completion" )?.asJsonObject?.apply {
164
170
val completion = config.completion
You can’t perform that action at this time.
0 commit comments