Skip to content

Commit 183d1fa

Browse files
authored
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.
1 parent d7136d6 commit 183d1fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

languages.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ source = { git = "https://github.com/UserNobody14/tree-sitter-dart", rev = "2d7f
998998
name = "scala"
999999
scope = "source.scala"
10001000
roots = ["build.sbt", "pom.xml"]
1001-
file-types = ["scala", "sbt"]
1001+
file-types = ["scala", "sbt", "sc"]
10021002
comment-token = "//"
10031003
indent = { tab-width = 2, unit = " " }
10041004
language-server = { command = "metals" }

0 commit comments

Comments
 (0)