main.kotlin.org.jetbrains.bsp.BazelBuildServerCapabilities.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bazel-bsp Show documentation
Show all versions of bazel-bsp Show documentation
An implementation of the Build Server Protocol for Bazel. Allows clients such as IntelliJ to obtain build
specific
information in order to improve the experience of users in the IDE.
package org.jetbrains.bsp
import ch.epfl.scala.bsp4j.BuildServerCapabilities
import ch.epfl.scala.bsp4j.CompileProvider
import ch.epfl.scala.bsp4j.DebugProvider
import ch.epfl.scala.bsp4j.RunProvider
import ch.epfl.scala.bsp4j.TestProvider
// TODO: Move this to BSP repo
/**
* Use this instead of [BuildServerCapabilities] to enable Bazel-specific features.
*/
public class BazelBuildServerCapabilities(
compileProvider: CompileProvider? = null,
testProvider: TestProvider? = null,
runProvider: RunProvider? = null,
debugProvider: DebugProvider? = null,
inverseSourcesProvider: Boolean = false,
dependencySourcesProvider: Boolean = false,
dependencyModulesProvider: Boolean = false,
resourcesProvider: Boolean = false,
outputPathsProvider: Boolean = false,
buildTargetChangedProvider: Boolean = false,
jvmRunEnvironmentProvider: Boolean = false,
jvmTestEnvironmentProvider: Boolean = false,
canReload: Boolean = false,
public val workspaceLibrariesProvider: Boolean = false,
public val workspaceDirectoriesProvider: Boolean = false,
public val workspaceInvalidTargetsProvider: Boolean = false,
public val runWithDebugProvider: Boolean = false,
) : BuildServerCapabilities() {
init {
this.compileProvider = compileProvider
this.testProvider = testProvider
this.runProvider = runProvider
this.debugProvider = debugProvider
this.inverseSourcesProvider = inverseSourcesProvider
this.dependencySourcesProvider = dependencySourcesProvider
this.dependencyModulesProvider = dependencyModulesProvider
this.resourcesProvider = resourcesProvider
this.outputPathsProvider = outputPathsProvider
this.buildTargetChangedProvider = buildTargetChangedProvider
this.jvmRunEnvironmentProvider = jvmRunEnvironmentProvider
this.jvmTestEnvironmentProvider = jvmTestEnvironmentProvider
this.canReload = canReload
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy