Skip to content

Commit

Permalink
Explicitly enable script support in GradleDSLScriptTest
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Jan 14, 2024
1 parent 5a67eb2 commit e16e98c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/src/test/kotlin/org/javacs/kt/GradleDSLScriptTest.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
package org.javacs.kt

import org.junit.Before
import org.junit.Test
import org.junit.Assert.assertThat
import org.hamcrest.Matchers.*
import org.eclipse.lsp4j.MarkupContent

class GradleDSLScriptTest : SingleFileTestFixture("kotlinDSLWorkspace", "build.gradle.kts") {
class GradleDSLScriptTest : SingleFileTestFixture("kotlinDSLWorkspace", "build.gradle.kts", Configuration().apply {
scripts.enabled = true
scripts.buildScriptsEnabled = true
}) {
@Test fun `edit repositories`() {
val completions = languageServer.textDocumentService.completion(completionParams(file, 7, 13)).get().right!!
val labels = completions.items.map { it.label }
Expand Down

0 comments on commit e16e98c

Please sign in to comment.