All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.kotlin.org.jetbrains.bsp.protocol.BazelBuildServer.kt Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 3.2.0-20241118-a099775e0-NIGHTLY
Show newest version
package org.jetbrains.bsp.protocol

import ch.epfl.scala.bsp4j.RunResult
import ch.epfl.scala.bsp4j.WorkspaceBuildTargetsResult
import org.eclipse.lsp4j.jsonrpc.services.JsonRequest
import java.util.concurrent.CompletableFuture

public interface BazelBuildServer {
  @JsonRequest("workspace/libraries")
  public fun workspaceLibraries(): CompletableFuture

  @JsonRequest("workspace/goLibraries")
  public fun workspaceGoLibraries(): CompletableFuture

  /**
   * Returns the list of all targets in the workspace that are neither modules nor libraries, but should be displayed in the UI.
   */
  @JsonRequest("workspace/nonModuleTargets")
  public fun workspaceNonModuleTargets(): CompletableFuture

  @JsonRequest("workspace/directories")
  public fun workspaceDirectories(): CompletableFuture

  @JsonRequest("workspace/invalidTargets")
  public fun workspaceInvalidTargets(): CompletableFuture

  @JsonRequest("buildTarget/runWithDebug")
  public fun buildTargetRunWithDebug(params: RunWithDebugParams): CompletableFuture

  @JsonRequest("buildTarget/mobileInstall")
  public fun buildTargetMobileInstall(params: MobileInstallParams): CompletableFuture

  @JsonRequest("buildTarget/jvmBinaryJars")
  public fun buildTargetJvmBinaryJars(params: JvmBinaryJarsParams): CompletableFuture

  @JsonRequest("workspace/buildAndGetBuildTargets")
  public fun workspaceBuildAndGetBuildTargets(): CompletableFuture
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy