Skip to content

Commit 9f1a99e

Browse files
committed
Parse scripts configuration
1 parent 38d478c commit 9f1a99e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

server/src/main/kotlin/org/javacs/kt/KotlinWorkspaceService.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,13 @@ class KotlinWorkspaceService(
135135
}
136136
}
137137

138+
// Update scripts options
139+
get("scripts")?.asJsonObject?.apply {
140+
val scripts = config.scripts
141+
get("enabled")?.asBoolean?.let { scripts.enabled = it }
142+
get("buildScriptsEnabled")?.asBoolean?.let { scripts.buildScriptsEnabled = it }
143+
}
144+
138145
// Update code-completion options
139146
get("completion")?.asJsonObject?.apply {
140147
val completion = config.completion

0 commit comments

Comments
 (0)