Skip to content

Commit e16e98c

Browse files
committed
Explicitly enable script support in GradleDSLScriptTest
1 parent 5a67eb2 commit e16e98c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/src/test/kotlin/org/javacs/kt/GradleDSLScriptTest.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
package org.javacs.kt
22

3+
import org.junit.Before
34
import org.junit.Test
45
import org.junit.Assert.assertThat
56
import org.hamcrest.Matchers.*
67
import org.eclipse.lsp4j.MarkupContent
78

8-
class GradleDSLScriptTest : SingleFileTestFixture("kotlinDSLWorkspace", "build.gradle.kts") {
9+
class GradleDSLScriptTest : SingleFileTestFixture("kotlinDSLWorkspace", "build.gradle.kts", Configuration().apply {
10+
scripts.enabled = true
11+
scripts.buildScriptsEnabled = true
12+
}) {
913
@Test fun `edit repositories`() {
1014
val completions = languageServer.textDocumentService.completion(completionParams(file, 7, 13)).get().right!!
1115
val labels = completions.items.map { it.label }

0 commit comments

Comments
 (0)