From 5aedf11493d83c97cd2cad1d1ac0488b9d1f5f36 Mon Sep 17 00:00:00 2001 From: Ollie Charles Date: Fri, 21 Apr 2023 04:51:17 +0100 Subject: [PATCH] Replace `*.cabal` in Haskell `roots` with `cabal.project` (#6828) `roots` doesn't support wildcards. As such this root is dropped, and `cabal.project` is added, which is probably the best we can do for Cabal-based projects for now. --- languages.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages.toml b/languages.toml index dc4d1023..953a23fc 100644 --- a/languages.toml +++ b/languages.toml @@ -875,7 +875,7 @@ name = "haskell" scope = "source.haskell" injection-regex = "haskell" file-types = ["hs", "hs-boot"] -roots = ["Setup.hs", "stack.yaml", "*.cabal"] +roots = ["Setup.hs", "stack.yaml", "cabal.project"] comment-token = "--" language-server = { command = "haskell-language-server-wrapper", args = ["--lsp"] } indent = { tab-width = 2, unit = " " }