on master help sign in
feat: add sc to filetypes for Scala (#4697)

Files ending in `.sc` are known as "Scala Scripts". The scalac compiler knows how to handle these, popular tools like [Ammonite](https://github.com/com-lihaoyi/Ammonite) and [scala-cli](https://github.com/Virtuslab/scala-cli) use them, and even some Scala build tools like [mill](https://github.com/com-lihaoyi/mill) use them as their build files (`build.sc`). This change just makes sure that they are treated as Scala files so Metals kicks in.

commit183d1fadf463093b7e11ed60dc169d512d7ae290 authorChris Kipp <ckipp@pm.me> dateThu 10 Nov 2022, 16:17 (4 years ago) parentd7136d6
1 file changed+1−1
languages.toml+1−1
languages.toml+1−1
@@ -998,7 +998,7 @@ source = { git = "https://github.com/UserNobody14/tree-sitter-dart", rev = "2d7f
998998name = "scala"
999999scope = "source.scala"
10001000roots = ["build.sbt", "pom.xml"]
1001−file-types = ["scala", "sbt"]
1001+file-types = ["scala", "sbt", "sc"]
10021002comment-token = "//"
10031003indent = { tab-width = 2, unit = " " }
10041004language-server = { command = "metals" }