From 6160121ea47178f9c7cdd285d5b7e5935db29c53 Mon Sep 17 00:00:00 2001 From: Lorenzo Gabriele Date: Thu, 10 Oct 2024 21:42:14 +0200 Subject: [PATCH] Stop considering all mill files Ammonite scripts --- metals/src/main/scala/scala/meta/internal/parsing/Trees.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metals/src/main/scala/scala/meta/internal/parsing/Trees.scala b/metals/src/main/scala/scala/meta/internal/parsing/Trees.scala index 256c7980d4f..ea065f84b7b 100644 --- a/metals/src/main/scala/scala/meta/internal/parsing/Trees.scala +++ b/metals/src/main/scala/scala/meta/internal/parsing/Trees.scala @@ -174,7 +174,7 @@ final class Trees( val skipFistShebang = if (text.startsWith("#!")) text.replaceFirst("#!", "//") else text val input = Input.VirtualFile(path.toURI.toString(), skipFistShebang) - if (path.isAmmoniteScript || path.isMill) { + if (path.isAmmoniteScript) { val ammoniteInput = Input.Ammonite(input) ammoniteInput.safeParse[MultiSource](dialect) } else {