/*
 * sbt
 * Copyright 2023, Scala center
 * Copyright 2011 - 2022, Lightbend, Inc.
 * Copyright 2008 - 2010, Mark Harrah
 * Licensed under Apache License 2.0 (see LICENSE)
 */

package sbt.internal.bsp

// https://build-server-protocol.github.io/docs/specification.html#build-target
object BuildTargetTag {
  val test: String = "test"
  val application: String = "application"
  val library: String = "library"
  val integrationTest: String = "integration-test"
  val benchmark: String = "benchmark"
  val noIDE: String = "no-ide"

  def fromConfig(config: String): Vector[String] = config match {
    case "test"    => Vector(test)
    case "it"      => Vector(integrationTest)
    case "compile" => Vector(library)
    case _         => Vector.empty
  }
}
