Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
Renamed Scalameta LS to Metals
Browse files Browse the repository at this point in the history
  • Loading branch information
laughedelic committed Feb 10, 2018
1 parent 6c04048 commit 4c27d1e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/Config.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ object Config extends ConfigSchema {
val serverType = new Setting[String](
title = "Language Server Type",
description = "Don't change this option unless you know what you're doing",
default = ServerType.Scalameta.name,
default = ServerType.Metals.name,
order = 1,
enum = ServerType.values.map { st =>
new AllowedValue(st.name, st.description)
Expand All @@ -19,7 +19,7 @@ object Config extends ConfigSchema {

val serverVersion = new Setting[String](
title = "Language Server Version",
default = ServerType.Scalameta.defaultVersion,
default = ServerType.Metals.defaultVersion,
order = 2,
)

Expand Down
17 changes: 7 additions & 10 deletions src/main/scala/ServerType.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,12 @@ sealed trait ServerType {

case object ServerType {

case object Scalameta extends ServerType {
val name: String = "Scalameta"
val description: String = "Scalameta"
val defaultVersion: String = "5ddb92a9"
case object Metals extends ServerType {
val name: String = "metals"
val description: String = "Metals (Scalameta language server)"
val defaultVersion: String = "6f55b052"

def javaArgs(projectPath: String): Seq[String] = Seq(
// "-XX:+UseG1GC",
// "-XX:+UseStringDeduplication"
)
def javaArgs(projectPath: String): Seq[String] = Seq()

def coursierArgs(javaHome: String, version: String = defaultVersion): Seq[String] = Seq(
"--repository", "bintray:dhpcs/maven",
Expand Down Expand Up @@ -75,10 +72,10 @@ case object ServerType {

def fromConfig: ServerType = {
Config.serverType.get match {
case Scalameta.name => Scalameta
case Metals.name => Metals
case Ensime.name => Ensime
}
}

val values = Seq(Scalameta, Ensime)
val values = Seq(Metals, Ensime)
}

0 comments on commit 4c27d1e

Please sign in to comment.